Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

What is the impact if Stats Gather runs in business hours.

IndianDBAOct 16 2010 — edited Oct 18 2010
Hi

I have a Production Database in which Stats gather is running every alternative day as per the business requirement.

This Stats gather job starts at 7 PM. As data growing in this Database Time taken for this Job also increasing.

Now a days, This job is taking more than 14 hours to Analyze the Production Schema! It is completing at

9 AM in next day by the time business time starts.


Below is the script which we are using.

EXEC DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'${schema_name}',estimate_percent=>'',method_opt => 'FOR ALL COLUMNS SIZE
AUTO',cascade => TRUE,options=>'GATHER');


1. Is it recommended to run the stats gather in business hours?
2. How can We tune this Schema gather, so that this will take less time.

Appreciate the help.

Thanks in Advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2010
Added on Oct 16 2010
7 comments
1,057 views