RAC環境Library Cache Lock的處理方法(zt)
我要監控某個Job,該session 處於 Library cache lock 等待中
資料庫有2個節點
SQL> select inst_id from gv$instance;
INST_ID
----------
2
1
SQL> select inst_id,sid,serial#,event ,p1raw,machine,status from gv$session where username='BX5685';
INST_ID SID SERIAL# EVENT P1RAW MACHINE STATUS
---------- ---------- ---------- ------------------------------ ---------------- -------------------- ---------------
1 4538 39833 library cache lock C000000346FBA458 bdhp4462 ACTIVE
在Node1上面查詢
SQL> select * from dba_kgllock where kgllkreq > 0;
KGLLKUSE KGLLKHDL KGLLKMOD KGLLKREQ KGLLKTYPE
---------------- ---------------- ---------- ---------- ------------
C0000004789EF9D0 C000000346FBA458 0 2 Lock
SQL> select kglnaown, kglnaobj from x$kglob where kglhdadr = 'C000000346FBA458';
KGLNAOWN KGLNAOBJ
-------------------- --------------------
IDWSU1 PROD_ASSOC_DNORM
SQL> select kglhdadr, kglnaown, kglnaobj from x$kglob where kglnaobj = 'PROD_ASSOC_DNORM' and KGLNAOWN='IDWSU1';
KGLHDADR KGLNAOWN KGLNAOBJ
---------------- -------------------- --------------------
C000000346FBA458 IDWSU1 PROD_ASSOC_DNORM
在Node2上面查詢
SQL> select kglhdadr, kglnaown, kglnaobj from x$kglob where kglnaobj = 'PROD_ASSOC_DNORM' and KGLNAOWN='IDWSU1';
KGLHDADR KGLNAOWN KGLNAOBJ
------------------------------ -------------------- ------------------------------
C000000443267070 IDWSU1 PROD_ASSOC_DNORM
C00000035C33E248 IDWSU1 PROD_ASSOC_DNORM
SQL> col event format a30
select sid, serial#,s.event, sql_text from dba_kgllock w, v$session s, v$sqlarea a
where w.kgllkuse = s.saddr and w.kgllkhdl='C000000443267070'
and s.sql_address = a.address and s.sql_hash_value = a.hash_value;
SQL> 2 3 4
SID SERIAL# EVENT SQL_TEXT
---------- ---------- ------------------------------ --------------------------------------------------
4774 36583 db file scattered read ALTER TABLE PROD_ASSOC_DNORM ENABLE CONSTRAINT PROD_ASSOC_DNORM_PK USING INDEX STORAGE ( INITIAL 419 4304 NEXT 4194304 PCTINCREASE 0 ) TABLESPACE CDW_R EFERENCE01M LOCAL
很明顯了,節點1的session 在等待節點2 的session 進行alter table操作那麼節點1的 Job 也只能等待節點2的session完成了才能繼續工作。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/628922/viewspace-733963/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC 環境Library Cache Lock的處理方法
- 'library cache lock'等待事件的處理方法事件
- library cache lock\pin的查詢與處理
- zt_如何平面解決library cache lock和library cache pin
- 常用定位library cache lock的方法
- zt_library cache pin和lock等待分析
- 定位Library Cache pin,Library Cache lock等待的解決方法
- zt_如何使用event 10049分析定位library cache lock and library cache pin
- oracle11g之v$libcache_locks處理library cache lock及library cache pinOracle
- Library Cache Pin 及 Library Cache Lock分析
- library cache lock和library cache pin理解
- Rac 環境中分割槽表建立index hang(row cache lock)Index
- library cache pin和library cache lock的診斷分析
- LIBRARY CACHE LOCK 等待事件事件
- library cache lock和library cache pin區別總結
- On AIX RAC中global cache cr rquest的的處理方法AI
- oracle library cache之library cache lock_library cache pin wait event釋義OracleAI
- latch:library cache lock等待事件事件
- oracle異常:library cache lockOracle
- 短連線 引起的 library cache lock
- 查詢library cache lock的源頭
- 徹底搞清楚library cache lock的成因和解決方法
- Library cache pin問題的處理過程
- enq:Library cache lock/pin等待事件ENQ事件
- library cache lock 阻塞程式查詢
- Library cache lock/pin詳解(轉)
- LIBRARY CACHE LOCK WAITS AND NO BLOCKER FOUNDAIBloC
- library cache pin/lock的解決辦法
- 尋找 library cache lock 等待事件的session事件Session
- 徹底搞清楚library cache lock的成因和解決方法(轉)
- 徹底搞清楚library cache lock的成因和解決方法(1)
- 徹底搞清楚library cache lock的成因和解決方法(2)
- 徹底搞清楚library cache lock的成因和解決方法(3)
- 徹底搞清楚library cache lock的成因和解決方法(5)
- 徹底搞清楚library cache lock的成因和解決方法(4)
- 徹底搞清楚library cache lock的成因和解決方法(6)
- 徹底搞清楚library cache lock的成因和解決方法(8)
- 徹底搞清楚library cache lock的成因和解決方法(7)