Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Exporting and Importing table statistics

Re: Exporting and Importing table statistics

From: A. Bardeen <abardeen1_at_yahoo.com>
Date: Fri, 25 May 2001 17:17:39 -0700
Message-ID: <F001.003105A9.20010525165027@fatcity.com>

Jared,

Yes, DBMS_STATS can be used to move statistics from one db to another for the SAME table/index. It's great for moving prod stats into a dev db for sql tuning. You can also use it to set specific values (e.g. to set NUM_ROWS to 1000000).

You might want to check out the following doc on metalink:

Note: 117203.1 "How to Use DBMS_STATS to Move Statistics to a Different Database"

One caveat, it was not designed to copy stats to a different schema owner. You won't get an error running the procedure, it just won't reset any stats. You can get around this by hacking the stats table generated by DBMS_STATS and changing the username column to the new schema owner. The column names are rather cryptic, but if I remember it's C5.

HTH,


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: A. Bardeen
  INET: abardeen1_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri May 25 2001 - 19:17:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US