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: Not quite fluff - dbms_stats

RE: Not quite fluff - dbms_stats

From: <oracle-l-bounce_at_freelists.org>
Date: Thu, 4 Mar 2004 15:17:20 -0500
Message-ID: <A186CBDC8B1D61438BC50F1A77E91F73057C1B0C@xchgbrsm1.corp.espn.pvt>


is 'analyze any' granted to the user importing the stats??

Raj



Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. select standard_disclaimer from company_requirements; QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Koivu, Lisa Sent: Thursday, March 04, 2004 1:07 PM
To: oracle-l_at_freelists.org
Subject: RE: Not quite fluff - dbms_stats

Hi Wolfgang,

Really? Here's my errors

trdev-SYS>exec sys.dbms_Stats.import_database_stats( -
> stattab=>'DATABASE_STATS', STATID=>'030404',STATOWN=>'SYSTEM');
BEGIN sys.dbms_Stats.import_database_stats( stattab=>'DATABASE_STATS', STATID=>'030404',STATOWN=>'S *
ERROR at line 1:
ORA-20000: Insufficient privileges to analyze an object within the database

ORA-06512: at "SYS.DBMS_STATS", line 4914
ORA-06512: at "SYS.DBMS_STATS", line 4943
ORA-06512: at "SYS.DBMS_STATS", line 5460
ORA-06512: at line 1


trdev-SYS>SHOW USER
USER is "SYS"
trdev-SYS>CONNECT SYSTEM_at_TRDEV
Enter password: *********
Connected.
trdev-SYS>exec sys.dbms_Stats.import_database_stats( -
> stattab=>'DATABASE_STATS', STATID=>'030404',STATOWN=>'SYSTEM');
BEGIN sys.dbms_Stats.import_database_stats( stattab=>'DATABASE_STATS', STATID=>'030404',STATOWN=>'S *
ERROR at line 1:
ORA-20000: Insufficient privileges to analyze an object within the database

ORA-06512: at "SYS.DBMS_STATS", line 4914
ORA-06512: at "SYS.DBMS_STATS", line 4943
ORA-06512: at "SYS.DBMS_STATS", line 5460
ORA-06512: at line 1


trdev-SYS>

-----Original Message-----
From: Wolfgang Breitling [mailto:breitliw_at_centrexcc.com] Sent: Thursday, March 04, 2004 11:21 AM
To: oracle-l_at_freelists.org
Subject: Re: Not quite fluff - dbms_stats

What does not work. I do it all the time.

At 08:55 AM 3/4/2004, you wrote:
>Hi everyone,
>
>Well, here I was executing the steps to copy over stats from production
>to test. Deleted my test db stats, trying to import... tried and
tried,
>database level, schema level, <ack> table level... and I learned
>something today: bug 2879839 says that this blatantly does not work.
I
>tried creating the trace files, got 135M of gook. Suppossedly this is
>fixed in 10g.
>
>Has anyone ever gotten this to work? I'm really disappointed.

Wolfgang Breitling
Oracle7, 8, 8i, 9i OCP DBA
Centrex Consulting Corporation
http://www.centrexcc.com



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

"The sender believes that this E-Mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission.  By reading the message and opening any attachments, the recipient accepts full responsibility for taking proactive and remedial action about viruses and other defects. The sender's business entity is not liable for any loss or damage arising in any way from this message or its attachments."

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Thu Mar 04 2004 - 15:40:05 CST

Original text of this message

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