Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: ANALYZE command question.
Dana Stockler wrote:
>
> I am periodically running a batch job that dynamically
> generates and executes a script which executes the
> ANALYZE command on all of the tables in the database
> (except user SYS% tables).
>
> The command executed is:
>
> analyze table <tablename> compute statistics ;
>
> Is this enough to allow the cost-based query optimizer
> to do it's job well enough? Or should I be using one of the
> 'for' clauses?
>
> I have the feeling that what I'm currently doing is perhaps
> too simple. Any suggestions would be appreciated.
>
> -
> Regards,
> Dana
That is fine...
-- Connor McDonald Systems Administrator-Unix/Oracle BHP Iron Ore "You're not drunk if you can lie on the floor without holding on" - Dean MartinReceived on Tue Mar 04 1997 - 00:00:00 CST