Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Problem with DBMS_UTILITY.ANALYZE_DATABASE
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
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:Waleed.Khedr_at_fmr.com]
> 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:hamcdc_at_yahoo.co.uk]
> > 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"
> > <Henrik.Bachmann_at_bim-consulting.de> 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: Henrik.Bachmann_at_bim-consulting.de 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 Mon May 21 2001 - 04:26:29 CDT
![]() |
![]() |