Skip to Main Content
  • Questions
  • Activities after Weekly Data Inserts on Partition Table

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question.

Asked: June 29, 2017 - 10:34 am UTC

Last updated: June 30, 2017 - 4:28 am UTC

Version: 11g

Viewed 1000+ times

You Asked

Hi,

We have Archival DB which holds historical application data.
Weekly basis data from Primary DB gets copied to Archival DB Partition tables.

Do I need to perform any activities post data movement in Partition table like Gather Table/Index Stats or Rebuild Index or Shrink options?

and Connor said...

"like Gather Table/Index Stats"

Possibly.

You *might* have the automatic stats job running nightly - so that might take care of it for you.
You *might* need to do the stats before that, because you want clean stats immediately after you perform the operation.

"Rebuild Index"

Possibly.

You *might* have done a truncate and made some or all portions of indexes unusable.
You *might* have done a delete and the indexes are of a form so that space will not be reused by subsequent data.

"Shrink"

Possibly.

You *might* not be planning on using the freed up space ever again
You *might* not have compression
You *might* need to reclaim from datafiles
You *might* have only index access and thus a shrink offers very little.

As you can see... it's not a yes or no answer really. It's about understanding the concept and then mapping that to the usage particular to your system.


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