Database Tuning (MOSC)

MOSC Banner

DBMS_STATS hangs

edited Aug 19, 2009 10:41AM in Database Tuning (MOSC) 3 commentsAnswered
I am using the 10g automated stats-gathering (gather_database_stats_job_proc), running during the default maintenance window.   We have a vendor-supplied application that has some issues occasionally with closing a session.  The zombie session stays in a 'KILLED' status until I have to manually kill the operating system process .  The vendor is currently working this issue,.   HOWEVER, this causes another issue:  The DBMS_STATS process hangs whenver one of these sessions is in "KILLED" status, with the wait event 'Library Cache Lock'.     When I check the blocking object, its an index used by that zombie session.    

My question is, why does DMBS_STATS just hang?  It will never complete until that session is killed at o/s level.  This ends up affecting performance throughout the database.  

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center