DBMS_STATS hangs
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.
0