Hello,
I have a table that has grown, as they do. Over time it has had to create extents for itself. The following SQL:
SELECT SEGMENT_NAME,TABLESPACE_NAME,EXTENTS,BLOCKS FROM DBA_SEGMENTS where segment_name = 'table-name';
tells me that the table has had to extend itself 260 times. I think we could gain some performance if I use the Alter Table... Move command to get this table so it doesn't have so many extents. In an Oracle manual, they have the example of:
ALTER TABLE hr.admin_emp MOVE
STORAGE ( INITIAL 20K
NEXT 40K
MINEXTENTS 2
MAXEXTENTS 20
PCTINCREASE 0 );
I am wondering what would be the best values to enter for this table and where to find the information. I would think a new, larger initial size would be in order or I will have just as many extents as before. Along those lines I would also want to change the size of the next extent? Just trying to make an informed decision. Of course I am on a time frame as my manager told me about this last night and we have an outage on Monday. Thanks in advance for any help.
Charlie
I have a table that has grown, as they do. Over time it has had to create extents for itself. The following SQL:
SELECT SEGMENT_NAME,TABLESPACE_NAME,EXTENTS,BLOCKS FROM DBA_SEGMENTS where segment_name = 'table-name';
tells me that the table has had to extend itself 260 times. I think we could gain some performance if I use the Alter Table... Move command to get this table so it doesn't have so many extents. In an Oracle manual, they have the example of:
ALTER TABLE hr.admin_emp MOVE
STORAGE ( INITIAL 20K
NEXT 40K
MINEXTENTS 2
MAXEXTENTS 20
PCTINCREASE 0 );
I am wondering what would be the best values to enter for this table and where to find the information. I would think a new, larger initial size would be in order or I will have just as many extents as before. Along those lines I would also want to change the size of the next extent? Just trying to make an informed decision. Of course I am on a time frame as my manager told me about this last night and we have an outage on Monday. Thanks in advance for any help.
Charlie