![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Alarmed by the extent discussion some days ago, I checked the number of extents of all "my" tables in all databases. The result was terrifying: there are a lot of tables with over 20 extents and even some tables with more than 100 extents. So, what can I do to get rid of fragmentation? I know of dbexport and dbimport. How about: ALTER INDEX <idx> TO CLUSTER and back again? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Use: ALTER TABLE <table name> INIT IN <dbspace name you can use the same dbspace, where your table is created originally. The whole table will be rebuilt and number of extents will be minimized. You can use: ALTER TABLE <table name> MODIFY NEXT SIZE <new number prior running ALTER FRAGMENT clause to ensure sane values for next extent sizes. Note that on IDS 7.31 and prior values over 2 GB have no effect (at least on Sun machines). |
![]() |
| Thread Tools | |
| Display Modes | |
| |