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: Copying stats between/amongst schemas

RE: Copying stats between/amongst schemas

From: Paul Baumgartel <treegarden_at_yahoo.com>
Date: Tue, 02 Dec 2003 18:09:34 -0800
Message-ID: <F001.005D8729.20031202180934@fatcity.com>


IIRC, you can do all of it from one session. Let's say you're copying stats from 'SOURCE_USER' to 'DEST_USER' while logged in as ADAWDOA ("a DBA account which doesn't own anything" ;-)), who owns a statistics table called XFER_STATS.

exec dbms_stats.export_schema_stats('SOURCE_USER','XFER_STATS',null, user)

exec dbms_stats.import_schema_stats('DEST_USER','XFER_STATS',null,user)


Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Paul Baumgartel
  INET: treegarden_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Dec 02 2003 - 20:09:34 CST

Original text of this message

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