Re: alter index
Posted in 1998
Sadagopan, Sathish wrote:
>
> Hi,
> Is Alter index to cluster a good idea to force contiguity and free up space
> than
> doing a dbexport/dbimport , what are the pros and cons ?
> Pl. Explain, TIA
> Sathish Sadagopan
Hi all,
Is there anybody out there who has built a small programm to
reorganize tables with a many extents ? I developed a small
script that will do the table reorganization by using
the Chunk Free Liste Table and the
ALTER FRAGMENT INIT TABLE ... IN dbspace statement. But thissilly programm is unable to reorganize fragmented tables.
Stefan Weideneder
PS: Alter Fragment Init Table is less "logical log" expensive
than ALTER INDEX TO CLUSTER. The problem is, to do the
ALTER INDEX/ALTER FRAGMENT in the correct order if you intend
to reorganize many tables of a dbspace. So you will either need
the chunk free list or you must unload/load all the tables
of your dbspace ( dbexport/dbimport should also work ).