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!

DBMS_STATS.PURGE_STATS(NULL); takes hours

David JamesJun 25 2014 — edited Jun 25 2014

Hello

There is a clone script that runs each morning and it normally takes a couple of hours and is now taking 5 - 6 hours.

I think I have nailed the culprit down to the following command:

DBMS_STATS.PURGE_STATS(NULL);

The actual script does the following:

exec DBMS_STATS.ALTER_STATS_HISTORY_RETENTION(7)  /// the source system has retention of 10 days

/

exec DBMS_STATS.PURGE_STATS(NULL) /// I believe this is hanging.

/


I see no errors in the DB and just wanted to reach out to the experts here to see if I should be checking something obvious.


Thanks.


11.2.0.2

RHEL 5.2

(EBS 11.5.10.2)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2014
Added on Jun 25 2014
3 comments
668 views