datapatch reports error "ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_AQ" after appying PSU/RU
(Doc ID 2603604.1)
Last updated on APRIL 17, 2023
Applies to:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
While running datapatch with Apr19 RU 190416 applied,it runs for a longer than usual time (over 30 mins) then eventually ORA-04021 errors.
Workaround is to put the DB and all containers in restricted mode, reapply failed patches with Datapatch and restart DB.
CREATE OR REPLACE PACKAGE BODY dbms_aq wrapped
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_AQ
alter package SYS.DBMS_UTILITY compile body reuse settings
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_UTILITY
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_AQ
alter package SYS.DBMS_UTILITY compile body reuse settings
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_UTILITY
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 |