【ORA-00060】 deadlock detected while waiting for resource

jane_pop發表於2015-06-17
昨天搭建DG,在使用rman在備庫進行duplicate:
RMAN>duplicate target database standby nofilenamecheck;
的時候,一直hang住,於是參看警報日誌檔案,發現如下錯誤資訊:
Errors in file /u01/app/oracle/diag/rdbms/sdb/orcl/trace/orcl_ora_8975.trc:
ORA-00060: deadlock detected while waiting for resource
Trace dumping is performing id=[cdmp_20150617065802]
Wed Jun 17 06:58:04 2015
Errors in file /u01/app/oracle/diag/rdbms/sdb/orcl/trace/orcl_ora_8975.trc:
ORA-00060: deadlock detected while waiting for resource
Errors in file /u01/app/oracle/diag/rdbms/sdb/orcl/trace/orcl_ora_8975.trc:
ORA-00060: deadlock detected while waiting for resource
Trace dumping is performing id=[cdmp_20150617065806]

很明顯是產生了死鎖,於是檢視造成當前死鎖的會話:
SQL>select sid,serial#,username from v$session where sid in(select blocking_session from v$session);
SID    SERIAL#    USERNAME
------- ---------  ------------------
17        15              HH

找到會話資訊之後就可以直接kill掉這個session:
SQL>alter system kill session '17,15' immediate;

接著,重新執行duplicate就可以了。



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29800581/viewspace-1702433/,如需轉載,請註明出處,否則將追究法律責任。

相關文章