oracle troubleshooting waits for locks/Enqueues other than 'TM','TX' and 'UL'

hurp_oracle發表於2014-12-30

Troubleshooting Waits for Locks / Enqueues Other than 'TM', 'TX' and 'UL' (文件 ID 1905157.1)
適用範圍:
7i以後的任何平臺,任何版本;
目的:
本章節的目的是當面對非普通鎖(TM\TX\UL)時我們如何處理;
注:enqueues分兩種,一種是普通鎖也可叫做User Type Locks (TM, TX and UL Enqueues),另一種是非普通鎖被定義為system enqueues 
以下3種enqueue 型別被定義為users type locks
  • TM - DML (Table Manipulation) Enqueue called against a base table or partition for various table / partition operations that need to be co-ordinated.
  • TX - Transaction Enqueue used to protect transaction information.
  • UL - User Lock Enqueue used when an application makes use of the DBMS_LOCK package.
本意旨在討論system enqueues鎖,
如下是system enqueues的部分佇列相關的文件, 這裡並不是很全,但已經包含了大部分常見佇列;
1.
DX Distributed Transaction Enqueue: 'enq: DX - contention'
這個DX enqueue是用來保護分散式事物,如果你有問題在在此佇列上爭用,檢視誰holding the dx lock 並檢視它等待什麼,使用這此資訊來定為潛在的爭用區域,導向一個問題原因;出現這個等待的時候,將顯示為 'enq: DX - contention' ,如下是目前已知的相關的問題點,我們可以參考:
Document 1275884.1 High CPU by Sessions Holding DX Enqueue; Others Waiting 'enq: DX - contention'
Document 730423.1 Select With Local Function and Remote Tables Using a Dblink Hangs Due To Enq DX
Document 9773415.8 Bug 9773415 - GTX may deadlock with foreground on DX lock
Document 8477973.8 Bug 8477973 - Multiple open DB links / ORA-2020 / distributed deadlock / ORA-600 possible using DB Links


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

相關文章