Hi Waleed,

great tip to set sql_trace. See the last statement:

        analyze table "SYS"."_DEFAULT_AUDITING_OPTIONS_" COMPUTE statistics


        call     count       cpu    elapsed       disk      query    current
rows
        ------- ------  -------- ---------- ---------- ---------- ----------
----------
        Parse        1      0.00       0.00          0          0          0
0
        Execute      1      0.00       0.00          0          0          0
96
        Fetch        0      0.00       0.00          0          0          0
0
        ------- ------  -------- ---------- ---------- ---------- ----------
----------
        total        2      0.00       0.00          0          0          0
96

        Misses in library cache during parse: 1
        Optimizer goal: CHOOSE
        Parsing user id: SYS   (recursive depth: 1)

But in the data dictionary you can find only "_default_auditing_options_".

        SQL> analyze table "SYS"."_DEFAULT_AUDITING_OPTIONS_" COMPUTE
statistics;
        analyze table "SYS"."_DEFAULT_AUDITING_OPTIONS_" COMPUTE statistics
                    *
        FEHLER in Zeile 1:
        ORA-00942: table or view does not exists

        SQL> analyze table "SYS"."_default_auditing_options_" COMPUTE
statistics;
        table analyzed

This is the known bug 295035 in Oracle version 8.0.5.0.0.

Thanks to all!

Regards
Henrik


> -----Urspr�ngliche Nachricht-----
> Von: Khedr, Waleed [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 18. Mai 2001 18:17
> An: Multiple recipients of list ORACLE-L
> Betreff: RE: Problem with DBMS_UTILITY.ANALYZE_DATABASE
> 
> 
> Set sql_trace on before running it and see which sys sql fails.
> 
> Regards,
> 
> Waleed
> 
> -----Original Message-----
> Sent: Friday, May 18, 2001 10:31 AM
> To: Multiple recipients of list ORACLE-L
> 
> 
> unfortunately no other result with ... grant analyze any
> 
> > -----Urspr�ngliche Nachricht-----
> > Von: Connor McDonald [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 18. Mai 2001 15:36
> > An: Multiple recipients of list ORACLE-L
> > Betreff: Re: Problem with DBMS_UTILITY.ANALYZE_DATABASE
> > 
> > 
> > grant analyze any to sys;
> > 
> > hth
> > connor
> > 
> > --- "Bachmann, Henrik"
> > <[EMAIL PROTECTED]> wrote: > Hi there,
> > > 
> > > I have a problem to analyze my whole database as
> > > user sys:
> > > 
> > >   Oracle8 Enterprise Edition Release 8.0.5.0.0 -
> > > Production
> > >   PL/SQL Release 8.0.5.0.0 - Production
> > > 
> > >   SQL> BEGIN
> > >     2  
> > >
> > DBMS_UTILITY.ANALYZE_DATABASE('COMPUTE',NULL,NULL,NULL);
> > >     3  END;
> > >     4  /
> > >   BEGIN
> > >   *
> > >   FEHLER in Zeile 1:
> > >   ORA-20000: You have insufficient privileges for an
> > > object in this
> > > database.
> > >   ORA-06512: in "SYS.DBMS_UTILITY", Zeile 282
> > >   ORA-06512: in Zeile 2
> > > 
> > > Anybody out there who can give me a hint?
> > > 
> > > Best regards
> > > 
> > > Henrik
> > > 
[Snip]
> 
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Bachmann, Henrik
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to