用於排查cache buffers chains
用於排查cache buffers chains
1. 首先定位到爭用最高的latch, 主要關注點為miss與sleep, sleep次數多,說明爭用也越嚴重。
SELECT child# "cCHILD" ,
addr "sADDR" ,
gets "sGETS" ,
misses "sMISSES" ,
sleeps "sSLEEPS"
FROM v$latch_children
WHERE name = 'cache buffers chains'
ORDER BY 5, 1, 2, 3;
2. 使用定位到的latch的地址,查詢latch保護的extents。
SELECT /*+ RULE */
e.owner || '.' || e.segment_name segment_name,
e.extent_id extent#,
x.dbablk - e.block_id + 1 block#,
x.tch,
l.child#
FROM sys.v$latch_children l,
sys.x$bh x,
sys.dba_extents e
WHERE x.hladdr = '&ADDR'
AND e.file_id = x.file#
AND x.hladdr = l.addr
AND x.dbablk BETWEEN e.block_id AND e.block_id + e.blocks -1
ORDER BY x.tch DESC ;
其實對於cache buffers chains, 從AWR與ASH報告中,TOP SQL與邏輯讀取最高的segments就基本能夠確認是哪些物件爭用最嚴重。接下來就是對SQL的優化了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70014873/viewspace-2868066/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- cache buffers chains and cache buffers lru chainsAI
- cache buffers chains vs cache buffers lru chainAI
- latch: cache buffers chainsAI
- latch:cache buffers chains案例AI
- Cache Buffers chains,存在共享模式?AI模式
- 深入理解latch: cache buffers chainsAI
- Trouble shooting latch: cache buffers chainsAI
- ORACLE等待事件latch: cache buffers chainsOracle事件AI
- 等待事件_cache_buffers_chains_latch事件AI
- latch:cache buffers chains解決步驟AI
- latch:cache buffers chains的優化思路AI優化
- buffer cache實驗6-latch:cache buffers lru chainsAI
- latch:cache buffers chains的最佳化思路AI
- latch: cache buffers chains---AWR實戰分析AI
- 模擬cache buffers chains與library cache pin等待事件AI事件
- 熱點塊競爭和解決--cache buffers chainsAI
- 使用了索引就一定能避免cache buffers chains爭用嗎索引AI
- latch: cache buffers chains故障處理總結(轉載)AI
- 解決一例latch:cache buffers chains小記AI
- 一次latch cache buffers chains問題的處理AI
- 0821Cache Buffers chains與共享模式疑問4AI模式
- 0330Cache Buffers chains與共享模式疑問AI模式
- 處理 latch_cache_buffers_chains等待事件一例AI事件
- 0330Cache Buffers chains與共享模式疑問2AI模式
- 1104Cache Buffers chains與共享模式疑問3AI模式
- 1104Cache Buffers chains與共享模式疑問4AI模式
- buffer busy waits, latch cache buffers chains, read by other session區別AISession
- latch: cache buffers chains-熱塊的簡單模擬實驗AI
- 【恩墨學院】深入剖析:關於cache buffers chains的經典案例處理詳解?AI
- Bug 3797171 cache buffers chains latch contention increased in 10g-3797171.8AI
- CACHE BUFFER CHAINSAI
- cache buffers lru chainAI
- Oracle Cache Buffer ChainsOracleAI
- Latch: cache buffer chains (%)AI
- cache buffers LRU chain latchAI
- latch free(cache buffers chain)AI
- buffer cache實驗5-latch:cache buffers chainAI
- 等待事件_cache_buffers_lru_chain_latch事件AI