ORA-12012 ORA-00060 ORA-06512 While Executing Automatic Statistics
(Doc ID 2334444.1)
Last updated on FEBRUARY 21, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.4 and laterOracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
- Periodic errors "ORA-00060" deadlocks while the daily "auto optimizer stats collection" maintenance task is running to update statistics:
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_7589"
ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 148
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 7664
ORA-06512: at "SYS.DBMS_STATS", line 28795
ORA-06512: at "SYS.DBMS_STATS", line 31599 - The following recursive SQL may be involved in the deadlock
delete /*+ dynamic_sampling(4) */ from sys.wri$_optstat_histgrm_history where savtime < :1 and rownum <= NVL(:2, rownum)
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |