Analyze stats running long [message #591825] |
Wed, 31 July 2013 12:22 |
|
nvembu
Messages: 4 Registered: July 2013
|
Junior Member |
|
|
Hi all,
I have a Datamart DB which has a continuously increasing volume.
I run a daily optimize job, to have the data analysed using the below:-
EXECUTE dbms_stats.gather_schema_stats(ownname=> 'xxx' ,estimate_percent=> 25 , DEGREE => 4, cascade=> TRUE );
analyze table xxx.abc compute statistics;
But this optimization itself is taking nearly 4 hrs to complete and I can't afford to have the delay.
Is there a better way of running this optimization?
Please help. Thanks.
|
|
|
|
|
Re: Analyze stats running long [message #591832 is a reply to message #591825] |
Wed, 31 July 2013 13:00 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
"Best Practice" (if you believe in such things) would be to enable the stats gathering autotask, and let Uncle Oracle decide what, and how much, needs to be analyzed every day. It runs with a low priority, so it shouldn't disrupt any other work.
|
|
|
|
|
|
|
|
|