[oracle@ ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Fri Nov 9 14:30:17 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> alter session set container=PDBBURI;
Session altered.
SQL> select table_name from dba_tables;
select table_name from dba_tables
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 2
ORA-04024: self-deadlock detected while trying to mutex pin cursor 0x401BF05148
12.2.0.1 Active DataGuard AKA ADG ORA-4024 self-deadlock detected while trying to mutex pin cursor (Doc ID 2438982.1)
Oracle Database - Enterprise Edition - Version 12.2.0.1 and later Information in this document applies to any platform.
SYMPTOMS
On 12.2.0.1 version standby database
After performing some grant statements on primary database, and then attempting to access v$database on ADG failed with below error:
ERROR: ORA-00604: error occurred at recursive SQL level 3 ORA-04024: self-deadlock detected while trying to mutex pin cursor 0x700010057F9CCD0 ORA-00604: error occurred at recursive SQL level 4 ORA-04024: self-deadlock detected while trying to mutex pin cursor 0x700010057F9CCD0 ORA-04021: timeout occurred while waiting to lock obje
Trace file of ORA-4021 shows problem happened on obj$ row cache:
Bug 27716177 - ADG: ORA-04021:ORA-04024:ROW CACHE ENQUEUE AGAINST DC_OBJECTS:OBJ$ <==closed as following duplicate unpublished bug BUG 28423598 - GOLDENGATE AUTH CAUSES ACTIVE DG TO BE UNUSABLE UNTIL BOUNCE