alter index to cluster
Posted in 1999
Topics: Storage & Space Management, Clustering, Grid & MACH11
I had a table which had 22 extents. I altered the unique index to cluster
through isql. Now, oncheck -pT reports that the table has 20 extents.
Shouldn't it be just 1? When I do a dbschema on the table the index is
listed as 'unique cluster index,' so why are there 20 extents?
When the 'alter table' re-built the table there wasn't enough
contiguous free space to take the table as one extent!
Top Cat wrote in message <7o6q24$26f$1@nnrp02.primenet.com>...
>I had a table which had 22 extents. I altered the unique index to cluster
>through isql. Now, oncheck -pT reports that the table has 20 extents.
>Shouldn't it be just 1? When I do a dbschema on the table the index is
>listed as 'unique cluster index,' so why are there 20 extents?
>
>
>
Your idea is bad. Cluster's index is not resolve count of extents.
Problem is definition table. Try it:
1) dbschema -d my_dtb -t my_table -ss > my_script.sql
2) unload to "file.unl" select * from my_table
3) drop my_table
4) modify my_script.sql ( you must modified value first and next extent ).
5) create my_table with clausule first, next extent ( in file
my_script.sql ).
6) load from.... insert into ...
You must calculated value "first extents" from count all extents. Table
systables
contain actual value first and next extent. Attention !! Informix engine
modify
value "next extent" with every next allocate ( when last extent is full ).
You set value "next extent" as 10% first extent.
Cluster's index is used only for static table ( table which is not modified
or table is modified the least ). Sentences are sorted physical by index's
columns.
Lucy
Top Cat wrote in message <7o6q24$26f$1@nnrp02.primenet.com>...
>I had a table which had 22 extents. I altered the unique index to cluster
>through isql. Now, oncheck -pT reports that the table has 20 extents.
>Shouldn't it be just 1? When I do a dbschema on the table the index is
>listed as 'unique cluster index,' so why are there 20 extents?
>
>
>