短連線 引起的 library cache lock
當然啦,我做的例子是生成大量硬解析,但是沒撲捉到... ...
產生大量硬解析
可以看出產生大量硬解析
生產上awr定位到library cache lock ,但是硬解析,軟解析 都不高,透過ash看 估計會有listener log證明短連結
這裡0002是鎖的級別
library cache的2表示排它
把4F變成10進製為79,79可以從 x$kglob看出內容來... ...具體我也不知道怎麼看... ...
點選(此處)摺疊或開啟
-
SQL> select * from v$event_name where name like '%library cache lock%';
-
EVENT# EVENT_ID NAME PARAMETER1 PARAMETER2 PARAMETER3 WAIT_CLASS_ID WAIT_CLASS# WAIT_CLASS
-
---------- ---------- ----------------------------- ---------------- -------------- -------------------- ------------- ----------- -----------
-
215 2032051689 latch: library cache lock address number tries 3875070507 4 Concurrency
- 218 916468430 library cache lock handle address lock address 100*mode+namespace 3875070507 4 Concurrency
點選(此處)摺疊或開啟
-
declare
-
sql_text varchar2(100);
-
begin
-
for i in 1..1000000 loop
-
sql_text:='select * from c_lob where id = '|| i;
-
execute immediate sql_text;
-
end loop;
-
end;
- /
點選(此處)摺疊或開啟
-
select sql_text , loads , sql_id from v$sqlarea where sql_text like \'select * from c_lob%\';
-
SQL_TEXT LOADS SQL_ID
-
-------------------------------------------------- ---------- -------------
-
select * from c_lob where id = 209423 1 dktj3b33zw00a
-
select * from c_lob where id = 207585 1 5g9df2pcws016
-
select * from c_lob where id = 207612 1 gja66w9u1c01u
-
select * from c_lob where id = 206835 1 b7rt5h6jq801w
-
select * from c_lob where id = 207988 1 6htq7p5w5n027
-
select * from c_lob where id = 209590 1 8ng18qzu1s03k
-
select * from c_lob where id = 209165 1 8hu0kgz4nn04j
-
select * from c_lob where id = 209260 1 g9z59f95bs04m
-
select * from c_lob where id = 206630 1 1pzkydhctc04r
-
select * from c_lob where id = 207512 1 9qk6ds1c98056
-
select * from c_lob where id = 209344 1 9y4jz38r4805c
-
select * from c_lob where id = 209820 1 bwg31uu36s05q
-
select * from c_lob where id = 207768 1 60vf33utu006z
-
select * from c_lob where id = 206886 1 c331qsru3c075
-
select * from c_lob where id = 206733 1 0wj91s3z1807k
-
select * from c_lob where id = 210217 1 33s4dfj36w07p
-
select * from c_lob where id = 209693 1 77bn43xr4w092
-
select * from c_lob where id = 207251 1 a059jv7s6w09d
-
select * from c_lob where id = 209236 1 4uym4m49un0ba
-
select * from c_lob where id = 209948 1 0vw5abak7c0bk
-
select * from c_lob where id = 209025 1 bmk3w6gj8w0cr
-
select * from c_lob where id = 207735 1 5pk7nbq2k80d7
-
select * from c_lob where id = 208757 1 7u49nupubn0f9
-
select * from c_lob where id = 210170 1 a9xx1vza6c0h7
-
select * from c_lob where id = 208784 1 9b7fqasa8n0kr
-
select * from c_lob where id = 207274 1 0afz1hv6qn0rm
-
select * from c_lob where id = 208213 1 2qkbhxp0yw0ry
-
select * from c_lob where id = 206514 1 07cp95um100tw
-
select * from c_lob where id = 207736 1 am2k774t3s0ut
-
select * from c_lob where id = 208651 1 f5kzzvq46s0w1
-
select * from c_lob where id = 206858 1 7cumd57a540w4
-
select * from c_lob where id = 209514 1 5nmf9va04w0wv
-
select * from c_lob where id = 208768 1 5gz1upuwsn0y4
-
select * from c_lob where id = 207470 1 7rccz6cwzh0y7
-
select * from c_lob where id = 210164 1 f0d6vfbqs40y7
-
select * from c_lob where id = 209615 1 bqs2d4aptn103
-
select * from c_lob where id = 207870 1 gmt5jampz412b
-
select * from c_lob where id = 206788 1 9yfs2vgxk412k
-
select * from c_lob where id = 209007 1 2by5fnka5012p
-
select * from c_lob where id = 208521 1 fzbpuv0fhh12t
-
select * from c_lob where id = 208686 1 ck3vywzus8133
-
select * from c_lob where id = 208925 1 az44y96c7w133
-
select * from c_lob where id = 207125 1 7gwm2qk0q413x
-
select * from c_lob where id = 210649 1 gu2h2479h414q
-
select * from c_lob where id = 210549 1 g03qxnjf0c14t
-
select * from c_lob where id = 208669 1 c75w1kbwzh14y
-
select * from c_lob where id = 206864 1 b1839t9s30159
- select * from c_lob where id = 210696 1 0qtzxm7zs016h
- ... ...
生產上awr定位到library cache lock ,但是硬解析,軟解析 都不高,透過ash看 估計會有listener log證明短連結
這裡0002是鎖的級別
library cache的2表示排它
把4F變成10進製為79,79可以從 x$kglob看出內容來... ...具體我也不知道怎麼看... ...
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-1433729/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Library Cache Pin 及 Library Cache Lock分析
- library cache lock和library cache pin理解
- 大量"library cache lock"事件導致資料庫無法連線事件資料庫
- library cache pin和library cache lock的診斷分析
- LIBRARY CACHE LOCK 等待事件事件
- 定位Library Cache pin,Library Cache lock等待的解決方法
- 常用定位library cache lock的方法
- library cache lock和library cache pin區別總結
- oracle library cache之library cache lock_library cache pin wait event釋義OracleAI
- latch:library cache lock等待事件事件
- oracle異常:library cache lockOracle
- 查詢library cache lock的源頭
- zt_如何平面解決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'等待事件的處理方法事件
- 深入理解shared pool共享池之library cache的library cache lock系列四
- 由row cache lock等待事件引起的效能問題事件
- library cache lock\pin的查詢與處理
- RAC 環境Library Cache Lock的處理方法
- zt_如何使用event 10049分析定位library cache lock and library cache pin
- 一次library cache lock 問題分析
- 【TUNE_ORACLE】等待事件之“library cache lock”Oracle事件
- zt_library cache pin和lock等待分析
- oracle 10049 event之library cache lockOracle
- 俺也談談 library cache lock 等待事件事件
- Shared pool的library cache lock/pin及硬解析
- RAC環境Library Cache Lock的處理方法(zt)
- [20240824]跟蹤library cache lock library cache pin使用gdb.txt
- sql version count引發cursor:pin s wait x及library cache latch library cache lockSQLAI
- [20240920]跟蹤library cache lock library cache pin使用gdb.txt
- [Oracle]--Library cache lock 故障解決一例Oracle
- 0317Library Cache Pin/Lock Wait EventsAI
- Library cache pin/lock 在Oracle 10g的增強Oracle 10g