• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

After RMAN DUPLICATE is it necessary to rebuild optimizer stats

This is more of a general knowledge question than for any particular business requirement I currently have.

Been thinking lately about optimizer statistics after duplicating a database via RMAN.

After completing the duplicate, is it necessary to regather stats for the database?

My gut feeling is no, but I've been digging through the Documentation this morning and haven't found anything specific on it, and Mr Google hasn't been able to find me anything concrete on it either.

Anyone with any specific insights on this (and references to docs would be nice to have too if you have them).

Thanks
0
Steve Wales
Asked:
Steve Wales
1 Solution
 
slightwv (䄆 Netminder) Commented:
Depends on how accurate the stats were when the copy was created.

RMAN will copy/restore the datafiles themselves.  It isn't an export/import where objects are built/loaded as it goes.  It's a 'copy' of what you had at the time RMAN did it's thing.

So, bad stats before, then bad stats after.
0
 
Steve WalesSenior Database AdministratorAuthor Commented:
I always keep my production stats up to date.  I figured as much (hence my comment about my gut feel on the matter).

Thanks for the confirmation.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now