drop使用者hang住解決思路

來源:互聯網
上載者:User

今天在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將統計結果寫到系統資料表中。這是這個進程的作用,但是為什麼跟刪除一個使用者有關係,原因還是不清楚希望知道的朋友指點下。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.