Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Deeps.

Asked: January 20, 2017 - 6:26 pm UTC

Last updated: January 21, 2017 - 4:01 am UTC

Version: oracle 11g

Viewed 1000+ times

You Asked

Hi Tom,
we have purged data from very big table and purging is still going on . We are going to migrate that table into partition one . But the data already purged need to be reorg.
My question is do we re org indexes before partition or else we are anyhow creating partition so index creation with partition will re org them .

please suggest ?

and Connor said...

If you are restructuring a table, defer index maintenance until all the restructure is completed. Otherwise, you'll most probably be doubling up on effort (and hence duration) somewhere.

It's common practice to set (or allow) indexes to be/become unusable, complete the restructure operations, and then rebuild them.

Obviously if you need to keep applications running during the restructure, that's quite a different exercise.

Is this answer out of date? If it is, please let us know via a Comment