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

Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_stats for schema and all tables

Re: dbms_stats for schema and all tables

From: sybrandb <sybrandb_at_gmail.com>
Date: 28 Mar 2007 03:33:47 -0700
Message-ID: <1175078027.831666.293100@n59g2000hsh.googlegroups.com>


On Mar 28, 12:04 pm, "Andrea" <netsecur..._at_tiscali.it> wrote:
> hi,
> i use dbms_stats for retrieve statisctics information for all tables
> of my 9i db, but when i use this command:
>
> EXEC
> DBMS_STATS.GATHER_schema_STATS(ownname=>'TIV',CASCADE=>TRUE,options=>'GATHE­R
> STALE')
>
> i don't find statistics in dba_tables (the field LAST_ANALYZED is
> empty).
> What i can do for have statistics of all tables of database?
>
> thanks very much.
>
> bye
> Andrea

Did you ever run a 'normal' GATHER? GATHER STALE will work only if a) monitoring has been enabled on the affected tables (alter table <blah> monitoring)
b) there are statistics present

--
Sybrand Bakker
Senior Oracle DBA
Received on Wed Mar 28 2007 - 05:33:47 CDT

Original text of this message

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