After defragamentation, the size of the table increases...

Hi all

I have seen this many times. But do not know why this happened. Sometimes, when move us / defragment the table. This is to increase the size kindly put some light on this... This command we used genrally is mentioned below...


ALTER table < table name > move 20 Parallels;
ALTER table < Table name > noprallel;


Regds
Rahul

I guess I would go back to the question of why you try to defragment a table in the first place (and defragmentation isn't even the right word here - at best you are repacking of the data). Unless you have decreased continuously about the size of a table or all your inserts are by direct path loads, it is really unnecessary to exercise, in order to try to predict which tables will increase slightly and that might shrink briefly a bit is a bit useless in practice. Oracle is very well and very happy, to use space for subsequent insertions deletions - there really not need to try to pack up the data. Given the way PCTFREE and PCTUSED work, assuming that you have chosen the reasonable parameters, you better let go the lines through their normal life cycle, rather than moving data between storage space.

Justin

Tags: Database

Similar Questions

  • Index rebuild required after truncate the table and load data

    Hello


    I have a situation that we truncate tables bit and then we loaded data [only content] on these tables. What you need to rebuild the index online is necessary or not?


    And another question is if we drop a few clues is the total amount of space is released or not. And re-create indexes will use the same amount of space. As I don't have disk space more? In this situation, rebuild the index online will be a better idea...

    Can you please on this...


    truncate the table some the few loading tables + reconstruction markings online is the best (or) droping little tables, a few tables loading + re-create the index is better

    Can you suggest the best way... We have a time that it currently we don't have enough space on the disk... [Option should not effect the space]

    user13095767 wrote:
    Ok. I have it...

    u want to say if we disbale the index while loading... Next, we need to spend the time to build.

    If the indexes are enabled, then rebuild again is not necessary after loading tables...

    Please answer if my understanding is correct...

    above is correct

    >

    If so, how abt the differences in the space occupied by the spaces of storage during the index rebuild and re-create... T he acquires more space if recreate us [deletion and creation] or rebuild online is preferable to an index...?

    space used is the same for all options.

  • Form doesn't work after updating the table

    I did a form and that you added prior insertion for the block trigger. And the form works perfectly well without any problems.
    Two new columns have been added to the table and must be added to the form now.
    I opened the block of data in the form wizard and made an update of the table to get the two columns. After I pressed on the "refresh" and then tried to launch the form (but has not added new columns), the trigger for prior insertion fails and begins to throw me an error that the value must be entered. (FRM:40202)

    After further analysis I also discovered that there is a null value is passed into another element. In fact when I update the Datablock Assistant I see this column on the left side to be present on the right side.

    Kindly if you could help on the same.

    Guy wrote:
    Details: I just start the form. The error appears in a pop-up window as soon as the form application opens (without any input from me)

    Hello Guy

    Pls check if you have a TIME-NEW-FORM-BIFURCATION, PREFORM, etc an EXECUTE_QUERY;

    If so, then this is the reason for the error arise...

    Please note: all lines with null, associated with the two old columns will cause the error

    Action: insert a value for columns NOT NULL...

    I hope this helps...

    Kind regards

    Abdetu...

  • HELP ME PLEASE! Dynamic PDF with the table increases each time he has saved and reopened? HELP PLEASE!

    Hi, I hope someone can help me. I created a form (dynamic pdf) with Livecycle ES 8.2.

    This document contains a table whose rows are added when the user clicks a button.

    The document in the design stage contains no more than 1/2 an A4. Here are my two problems;

    1. when the document is opened in Reader (9.3), it is formatted correctly to accept the line after line, it's default state (which can be added to by clicking on the button) is now three rows?

    2. the question whether the two additional lines are deleted or populated or if several lines are added and populated, if the document is saved and opened again with the player, he became a full page (default empty lines). If saved, it grows up to 4 pages and so on.

    Can someone help me please. I can provide a copy of my file if necessary.

    I don't know if that makes a difference, but the document is protected with a password to open in Livecycle and it also has user rights assigned to the user to be able to save a copy on their local machine (not only allowed to fill and print).

    My email is [email protected]

    Would appreciate any help that can be offered. My document is ready (accept for that matter) for me to use in my work.

    Concerning

    Bradd

    Bradd,

    Please send the form and I can take a look. If you wish to send a version of the form that is not password protected or send the password in a separate email, it is up to you.

    stwalker. [email protected]

    Steve

  • Compel the tables?

    Hi guys

    I'm having a problem with the maintenance of my paintings to 1 particular place.

    You see, I use tables for the design of my sites in dreamweaver, so I'm doing the table of 1 provision and several tables in this table.

    Now I have a table with my buttons in them, but it is a picture in a table that is the layout of the site.

    The buttons are fine when the height of my site is 800px, but when I add more things in the increase of the height, the table goes into movement centered according to height, now I don't want that to abandon its same place you the height of the table increases.

    Can someone help me?

    You must insert your cursor inside the table cell that contains the table of the bar of navigation and the valignment to 'top' through the property, the value Inspector

    the code will look like this:

    As for your text, you are apply styles to each section of text, if you continue to do this, you will end up with lots of style10, style11 etc., which is not how to use a style sheet ;-)

    Text must be set within the

    That is, tags: paragraph tags and you then style the

    tag

    for example: it is the text inside a paragraph: it will then style the text with the paragraph style by default unless you create a style for all paragraphs.

    Collaboration for equity in health in education and research (CHEER) is a research team formed in 2003, composed of one representative of each of the universities in South Africa with a Faculty of health sciences, all are involved in education focused on the community or health in rural areas. The issue of original research focused on educational strategies most appropriate that would support the health graduates choose to practice in rural and underserved areas of South Africa. Work done so far has given place to two publications and two more to be

    Select the section of text and with it highlighted in the property inspector and check the Format box and select "paragraph."

    So for styling the text inside of the

    tags, you can use something like this: (it goes in the header of the document, in order to replace the rest of your styles as style10;

    {p}

    do-size: 12px;   / * Insert here him no matter what size you need for text * /.

    color: black;

    line height 1.8em;  / * spacing between lines of text * /.

    }

  • Cannot drop the table

    The versions are Oracle 11.2.0.1.0 and Developer SQL 4.0.0.12 on Windows 7 Ultimate SP1.

    Hello

    I am training CBT Nuggets SQL basics (video #11) and cannot delete a table that I just created.  The command and the error are:

    drop table newprods;

    Error starting line: 1 at the controls.

    drop table newprods

    Error report-

    SQL error: ORA-00604: error occurred at the SQL level 1 recursive

    ORA-20000: cannot delete the object

    ORA-06512: at line 2

    00604 00000 - "an error occurred at the SQL level recursive %s.

    * Cause: An error occurred during the processing of a recursive SQL statement

    (a statement applicable to dictionary tables inside).

    * Action: If the situation described by the following error stack

    can be corrected, to do so; otherwise contact Oracle Support.

    As the HR user, I created two tables and created a FK constraint between them.  After truncating the table with this FK, I am unable to drop.  Even if I remove the FK, the error is the same.  Issing the command in SQL * Plus gives the same error.

    This is the first time that I have created a table from Oracle installation on this machine and is my first attempt to delete a table.  I did not create sequences, triggers, or views based on these newly created tables.

    Someone at - it ideas?

    See you soon

    Re: Unable to delete object?

  • Shrink the table, rebuild the index?

    I need to reduce some very large tables after the removal of lines and I want to validate the script to run. I was thinking something like this:
    run_deleting_process;
    change the movement line of table my_tableI enable;
    ALTER table my_table retractable space WATERFALL;
    change the movement line of table my_tableI disable;
    I need to rebuild the index after that?, or if I rebuild the markings, can I delete clause CASCADE of the command? It is recommended to run utltrp.sql after shrink the table?, maybe some dependent object needs to be recompiled after the reduction of a table?
    The database version is 11.1.0.7 and documentation does not specify that the index rebuild is required, but I realized it is a desition normall when the narrowing of the tables.
    Thank you

    No there is no rebuild the index after shrinkage. And if you use "cascade", your index will be supported. You do very well.

    Visit this link as well.

    http://www.orafaq.com/Forum/t/137522/2/

  • Problem with the creation of the table using the parallel Council DEC

    Hello

    We have a database table (CARDS_TAB) with the 1,083,565,232 lines and has created a replica table called T_CARDS_NEW_201111. But the count in the new array is 1,083,566,976 the difference is row of 1744. I have no idea how the new table can contain more lines compared to the original table.
    Oracle version is 11.2.0.2.0.

    The two head of table were taken after creating the table. Script that was used to create the replica table is:
    CREATE TABLE T_CARDS_NEW_201111
    TABLESPACE T_DATA_XLARGE07
    PARTITION BY RANGE (CPS01_DATE_GENERATED)
    SUBPARTITION BY LIST (CPS01_CURRENT_STATUS)
    SUBPARTITION TEMPLATE
      (SUBPARTITION T_NULL VALUES (NULL),
       SUBPARTITION T_0 VALUES (0),
       SUBPARTITION T_1 VALUES (1),
       SUBPARTITION T_3 VALUES (3),
       SUBPARTITION T_OTHERS VALUES (DEFAULT)
      )
    (
      PARTITION T_200612 VALUES LESS THAN (TO_DATE(' 2007-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_200612_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 ),
      PARTITION T_200701 VALUES LESS THAN (TO_DATE(' 2007-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_200701_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 )
    .
    .
    .
    .
    .
      PARTITION T_201211 VALUES LESS THAN (TO_DATE(' 2012-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_201211_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 ),
      PARTITION T_201212 VALUES LESS THAN (TO_DATE(' 2013-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_201212_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 )
    )
    NOCACHE
    NOPARALLEL
    MONITORING
    ENABLE ROW MOVEMENT
    AS
    SELECT /*+ PARALLEL (T,40) */ SERIAL_NUMBER     ,
      PIN_NUMBER        ,
      CARD_TYPE         ,
      DENOMINATION      ,
      DATE_GENERATED    ,
      LOG_PHY_IND       ,
      CARD_ID           ,
      OUTLET_CODE       ,
      MSISDN            ,
      BATCH_NUMBER      ,
      DATE_SOLD         ,
      DIST_CHANNEL      ,
      DATE_CEASED       ,
      DATE_PRINTED      ,
      DATE_RECHARGE     ,
      LOGICAL_ORDER_NR  ,
      DATE_AVAILABLE    ,
      CURRENT_STATUS    ,
      ACCESS_CODE        from CARDS_TAB T
    /
    Database CARDS_TAB table also has a primary key on the column Serial_number. When you try to create a primary key on the new table he throws Exception:
    ALTER TABLE T_CARDS_NEW_201111 ADD
      CONSTRAINT T_PK2_1
     PRIMARY KEY  (SERIAL_NUMBER) USING INDEX
     TABLESPACE T_INDEX_XLARGE07
     PARALLEL 10 NOLOGGING;
    
      CONSTRAINT TP_PK2_1
                 *
    ERROR at line 2:
    ORA-02437: cannot validate (T_PK2_1) - primary key violated
    Thanks in advance.

    With respect,
    Adeline Faure

    For parallel processing the documentation suggests the use automatic degree of parallelism (determined by the system running) or by choosing a power of 2 value
    Look at the post by Florian in your currently neighbor post How to remove duplicate rows from a Table to locate the violations (apparently due to parallel processing)

    Concerning

    Etbin

  • Increase in size of database extremely - need to monitor the size of the table

    Hi all

    I need help in the growth of the follow-up tables. It's that the database grows enormously from 192 G at 200 over five days, representing 5% increase in database size. The general scenario is that is that the db is growing 20% annually, but this increase in a week will cause future hardware problems.

    Please advice to find the tables that is still growing.

    Thank you
    DBA Junr.

    Hi Georges s/n, do not know if this will help you now, but I did something like this on a daily basis for about 3 years. Literally, I have the size of each segment on a daily basis for this time and can go back in the graphic history of growth. If I had the question you ask the subject that I would be able to tell you exactly what segments are developed. If you need this on a smaller time frame, you can change the data stored in the column "created_date' to all the hours I guess.

    Anyway, here's the create statement.

    create table db_segment_history
    (
      db_segment_history_id     integer not null,
      owner                 varchar2(30),
      segment_name          varchar2(81),
      partition_name        varchar2(30),
      segment_type          varchar2(18),
      created_date          date default trunc(sysdate) not null,
      tablespace_name       varchar2(30),
      header_file           number,
      header_block          number,
      bytes                 number,
      blocks                number,
      block_size            number,
      extents               number,
      initial_extent        number,
      next_extent           number,
      min_extents           number,
      max_extents           number,
      pct_increase          number,
      freelists             number,
      freelist_groups       number,
      relative_fno          number,
      buffer_pool           varchar2(7)
    );
    
    create sequence db_segment_history_seq cache 1000;
    
    create unique index xpkdb_segment_history on db_segment_history( db_segment_history_id );
    
    alter table db_segment_history add ( constraint xpkdb_segment_history primary key ( db_segment_history_id )
    using index );
    
    create unique index ak1db_segment_history on db_segment_history(
         owner, segment_name, partition_name, segment_type, created_date );
    
    create trigger db_segment_history_bir
    before insert on db_segment_history
    for each row
    begin
         select     db_segment_history_seq.nextval
         into     :new.db_segment_history_id
         from     dual;
    end;
    /
    

    This is the insert / select that I use.

    insert into db_segment_history(
         owner, segment_name, created_date,
         partition_name, segment_type, tablespace_name,
         header_file, header_block, bytes,
         blocks, block_size, extents,
         initial_extent, next_extent, min_extents,
         max_extents, pct_increase, freelists,
         freelist_groups, relative_fno, buffer_pool )
    select  owner, segment_name, trunc( sysdate ),
         partition_name, segment_type, tablespace_name,
         header_file, header_block, bytes,
         blocks, bytes/blocks block_size, extents,
         initial_extent, next_extent, min_extents,
         max_extents, pct_increase, freelists,
         freelist_groups, relative_fno, buffer_pool
    from    dba_segments
    where   tablespace_name in(
              select tablespace_name from dba_tablespaces where contents = 'PERMANENT' );
    
    commit;
    

    I hope this helps.
    Michael Cunningham

    Published by: Michael C on February 21, 2012 14:19

  • dynamically increase the size of the table

    Hello
    Anyone worked on dynamically increasing the height of the table (simple table or advanceed table)? The pointers will be great.

    Thank you

    Anatoliy

    Published by: asmirnov on February 11, 2010 16:41

    Use after the code

    OATableBean oaWebBeanTableRN = (OATableBean) oaWebBean.findChildRecursive ();
    oaWebBeanTableRN .setNumberOfRowsDisplayed ();

    -Arvind

  • Size of the table only includes not Keynote - can not enter directly px

    I inserted a table on a slide, and he made two unexpected things:

    1. it will not allow me to directly enter a width of table in pixels - as soon as I enter a value, it returns to the original value. The only way I can change the size of the table is with the up/down arrows, essentially pushing a pixel at a time.

    2. when I add an additional column, rather than tighten it in the width of the table by adjusting the size of the existing columns, it blows the table out of the slide area, and I have to manually resize the table to accommodate.

    I have looked through all the parameters of the table and just cannot find why it behaves in this manner, which is different from the other tables I've created in the past.

    1. You are right. Selecting the Table tab and reduce line and column values will shrink your table, but the table resizing is not supposed to work this way.
    2. Control-click or two fingers press the alphabetical table header and select Add column after from this menu. The new column is added in place, and the other columns shrink and walk left to accommodate the new column, while the table itself does not move.
  • Programmatically set the size of a table control (not the number of col and lines)

    Hi all

    I am trying to create a little VI, in which the user selects the number of columns and rows in a table, and after clicking on a button 'OK', the table control is displayed in the control panel (to be filled in by the user). To do this, I use the nodes property to the number of columns and lines. I have no problem with that.

    However, I want to "limit" the size of the control table (control of himself, not the dimensions of the table) and make use of vertical and horizontal table, the scroll bars. I want to avoid it is that passes type 100 user and 100 lines and appears a huge table control.

    I could tho this by using an array instead of an array, via the node property "size", but I would use an insead table a table.

    Thank you very much

    Daniel

    With a table control, you cannot set the display size to be anything other than a multiple of a complete cell.

    If you are limited to a number of lines and columns.  If you want to resize with more control you also need to resize the control within the Bay, accessible via the property 'picture Element '.

    Another option (but seems huge exaggerated) is to place your table in a secondary and set the size of the secondary to the size you need and enable scrollbars for her.  It is not an option that I would choose but if it helps...

    Have it, your description of your user interface sounds not very intuitive.  How the user knows at any time exactly what cell they access if they have to scroll backwards?

  • I'm trying to generate a table of random numbers 30. After each 5 readings a new vi must open and indicate to the user than 5 readings were made. and continue with the generation of the table again.

    because I don't have a sensor now, I am currently generating a table of random numbers 30. After each 5 readings a warning should be given to the user 5 readngs are completed. This cycle must be repeated. the size of the table is 30.

    Please help me, waiting for response as soon as possible.

    Once I have the transducer, I'll take 30 analog samples and then after each 5 smaples this wraning will be displayed din a new VI

    Use a while loop with a delay time representing your sampling interval.

    Use is equal to the count Terminal to see if 4, then 4th iteration = 5th sample.

    Use a box structure. The real deal will only run on the 4th iteration.

    In the case of true place a Subvi with your message of your choice in the front panel. Go to the properties of the VI window and set ' open the front panel when it is called.

    The condition to closing of attention is not given to your description.

    Consider that rather than usign a Subvi to do this, you can use the "dialog box one/two/three button" or "display message" live in the palette "user interface and dialogue."

    Please try it out and send your own VI. Do not provide us with a working solution.

    Kind regards

  • Purge of the records of the Table and the size of the data file

    11.2.0.4/Oracle Linux 6.4

    We want to reduce the size of the DB (file size of data), so that our RMAN backup size will be reduced. So, let's create stored procedures that will purge old data in huge tables.

    After you remove records, we will decrease the tables using the:

    change the movement line of table ITEM_MASTER enable;

    change the waterfall table retractable ITEM_MASTER space;

    ALTER table ITEM_MASTER deallocate unused;

    The commands above will reduce the file size of data (see dba_Data_files.bytes) or it will reduce the size of the segment?

    Only the segment formats will be reduced.  Oracle has never reduced the sizes of data file automatically.  You would have to reduce them.  You may not be able to reduce the size of data file if there are extensions to the 'end' (highwatermark) data files.  In this case, you will need to create a new tablespace and move all the objects for the new tablespace OR export, drop, create tablespace and import.

    Hemant K Collette

  • Given CLOB not allowing the size of the table cut!

    Hi Experts,

    Environment: 11.2.0.3. on Solaris 10.

    We have a table that contains the CLOB data and this table takes about 111 GB!

    SQL > desc INFO_MESSAGES

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    CLNT_OID NOT NULL VARCHAR2 (16)

    USR_OID NOT NULL VARCHAR2 (16)

    LAST_client_msg_ID VARCHAR2 (36)

    LAST_client_msg_DATE DATE

    LAST_client_msg CLOB

    LAST_USR_MSG_BOD_ID VARCHAR2 (36)

    DATE OF LAST_USR_MSG_DATE

    CLOB LAST_USR_MSG

    Select * of dba_segments order by bytes DESC;

    MIGRTN SYS_LOB0000111131C00008$ $ LOBSEGMENT SAMS DATA1 20690 6 1963 14528000 119013376000 <-the top row

    This segment is to table INFO_MESSAGES. I confirmed by joining in ALL_LOBs.

    This segment: SYS_LOB0000111131C00008$ $ belong to this column: LAST_USR_MSG

    The column LAST_USR_MSG were originally from huge text data, each line having approximately 4 MB in size. To reclaim the space, we have put this column of small as "data truncated" data using an update statement for the half of the rows in the table.

    as:

    Update INFO_MESSAGES set LAST_USR_MSG = "data truncated" where rownum < 25001 (this where clause was based on other criteria on a real mission but he updated 25000 lines - half of the table).

    Now after having done that, the size of the table has not changed!

    The table is still 120 GB. So what should he do to recover the space here? Should we export, truncate, and import the table - or can it be reconstructed (without causing locks and allowing application to access it or there at - it other better options?)

    Thank you

    OrauserN

    You must use dbms_redefintion, at the same time, change BASICFILE (have you been to) to SECUREFILE

    The latter LOBs will reorganize automatically.

    Demo at http://www.morganslibrary.org

    -----------

    Sybrand Bakker

    Senior Oracle DBA

Maybe you are looking for