今天在drop一個使用者的是時候hang住了,開始沒有在意,結果過了1個小時還沒有刪除完,這個使用者中的對象並不是很多而且也不大,於是去看了下alert日誌,結果發現如下的資訊:
ORA-00060: Deadlock detected. More info in file /u01/app/Oracle/diag/rdbms/tlgdb/tlgdb/trace/tlgdb_ora_14577.trc.
ORA-00060: Deadlock detected. More info in file /u01/app/oracle/diag/rdbms/tlgdb/tlgdb/trace/tlgdb_ora_14577.trc.
ORA-00060: Deadlock detected. More info in file /u01/app/oracle/diag/rdbms/tlgdb/tlgdb/trace/tlgdb_ora_14577.trc.
ORA-00060: Deadlock detected. More info in file /u01/app/oracle/diag/rdbms/tlgdb/tlgdb/trace/tlgdb_ora_14577.trc.
這樣資訊不斷的出現,“死結”,trc中的資訊特別的多如下是其中的一部分:
[10:37:46]DEADLOCK DETECTED ( ORA-00060 )
[10:37:46]
[10:37:46][Transaction Deadlock]
[10:37:46]
[10:37:46]The following deadlock is not an ORACLE error. It is a
[10:37:46]deadlock due to user error in the design of an application
[10:37:46]or from issuing incorrect ad-hoc SQL. The following
[10:37:46]information may aid in determining the deadlock:
[10:37:46]
[10:37:47]Deadlock graph:
[10:37:47] ---------Blocker(s)-------- ---------Waiter(s)---------
[10:37:47]Resource Name process session holds waits process session holds waits
[10:37:47]TX-000a000a-00002c81 36 16 X 36 16 S
[10:37:47]
[10:37:47]session 16: DID 0001-0024-00003E8F session 16: DID 0001-0024-00003E8F
[10:37:47]
[10:37:47]Rows waited on:
[10:37:47] Session 16: no row
[10:37:47]
[10:37:47]----- Information for the OTHER waiting sessions -----
[10:37:47]----- End of information for the OTHER waiting sessions -----
[10:37:47]
[10:37:47]Information for THIS session:
[10:37:47]
[10:37:47]----- Current SQL Statement for this session (sql_id=510jn7rgn8wyk) -----
[10:37:47]INSERT INTO "OGG01" . "GGS_STICK" (PROPERTY, VALUE) VALUES ('lv_version', :B1 )
一個insert也能死結嗎?這裡不是太清楚,知道的朋友可以指點一下,因為drop的時候hang住了,所以這裡想到了做hanganalyze分析一下,這裡採用是的3級的hanganalyze分析,當是也是roger老師提示的,具體的分析hanganalyze的知識點和分析過程可以參考http://www.killdb.com/2014/01/23/about-oracle-hanganalyze.html當然我的這個案例也被他引入了,但是MMON 是可管理性監視器(Manageability Monitor),MMON主要用於AWR,ADDM,MMON會從SGA將統計結果寫到系統資料表中。這是這個進程的作用,但是為什麼跟刪除一個使用者有關係,原因還是不清楚希望知道的朋友指點下。