Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

After RMAN DUPLICATE is it necessary to rebuild optimizer stats

Posted on 2013-10-24
2
Medium Priority
?
463 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 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 23

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to take different types of Oracle backups using RMAN.

618 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