Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: In search of script to generate analyze command
Patrick Burns wrote:
> I am in search of a generic script that will run everyday in our
> nightly cycle and write to an sql file an analyze statement if a
> certain percentage of the rows have changed, 20%. Then every weekend
> use dbms_stats to analyze the tables and indexes.
>
> I have seen these types of things in this group but can't seem to find
> one around.
Oracle version? If 9i+, then allow dbms_stats to execute when your data
is stale etc.
Received on Wed Oct 20 2004 - 15:07:58 CDT
![]() |
![]() |