select * from dba_segments where extents > 10;And if a table or index has more than 10 extents then rebuild it to fit into one extent. A table can only be rebuilt by import/export utility. But to do it we need a downtime from application team because database will be unavailable. We can proceed with the below mentioned steps to complete the activity successfully.
1. Export the table with argument COMPRESS=YThe entire index can be rebuilt without preventing others from still using it.
2. Drop the table
3. Import the table.
Change the storage parameters to make the ‘next’ storage parameter larger (possibly double it). The initial storage value cannot be changed and later on rebuild the index
Please correct me if I am wrong, Friends.........
Well that might have been true ... if it was 1995 and you were running Oracle7 using dictionary managed tablespaces on a server with 4Mb RAM and a shared pool of 256Kb...
ReplyDeleteWith LMT it's not true all the way. And moreover B*tree Indexes with LMT rarely fragmented.
ReplyDelete