Solved

After RMAN DUPLICATE is it necessary to rebuild optimizer stats

Posted on 2013-10-24
2
434 Views
Last Modified: 2013-10-24
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
Comment
Question by:Steve Wales
2 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39598030
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
 
LVL 22

Author Closing Comment

by:Steve Wales
ID: 39598040
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now