row cache objects latch研究
1、row cache objects latch包含多個children latch
select child#, gets, misses, sleeps
from v$latch_children
where name='row cache objects'
order by 1;
輸出結果:
CHILD# GETS MISSES SLEEPS
-------------- -------------- --------------- ----------
(略)
7 24430682 14976 4
( 略)
2、通過v$fixed_view_definition比對v$rowcache和x$kqrst
v$rowcache x$kqrst 描述
----------------- ----------------------------------- ------------------------
CACHE# KQRSTCID ROWCACHE ID編號
TYPE decode(KQRSTTYP,1,
'PARENT','SUBORDINATE') rowcache型別
SUBORDINATE# decode(KQRSTTYP,2,
KQRSTSNO,null), subordinate#編號
PARAMETER KQRSTTXT 引數名稱,其決定
rowcache記錄數量
COUNT KQRSTCSZ 在cache中各個引數的記錄數
USAGE KQRSTUSG, 記錄的有效數
FIXED KQRSTFCS 被修復的記錄數
GETS KQRSTGRQ, 資料物件請求總數量
GETMISSES KQRSTGMI, 資料物件請求miss數量
SCANS KQRSTSRQ, scan請求數量
SCANMISSES KQRSTSMI, scan失敗次數
SCANCOMPLETES KQRSTSCO, SUBORDINATE記錄列表,完全
scan掃描次數列表
MODIFICATIONS KQRSTMRQ, inserts, delete, update次數
FLUSHES KQRSTMFL, flush到磁碟的次數
DLM_REQUESTS KQRSTILR, DLM請求次數
DLM_CONFLICTS KQRSTIFR, DLM衝突次數
DLM_RELEASES KQRSTISR DLM釋放次數
KQRSTCLN latch編號
KQRSTOSZ 未知
KQRSTCLN對應child#,所以我們能知道,一個或多個child#管理單個row cache
3、檢視每個child#資訊
select kqrstcln child#, kqrsttxt RowCacheName from x$kqrst
order by 1;
LD# ROWCACHENAME
---------- --------------------------------
略
7 dc_users
7 dc_users
7 dc_users
7 dc_users
所以我們知道row cache objects latch的child#7是管理dc_users
4、如果出現latch出現sleeps值比較大,則可以通過x$kqrsts中找出row cachename,然後結合檢視miss的位置,大概定位是row cache latch競爭原因
select "WHERE", sleep_count, location
from v$latch_misses
where parent_name='row cache objects'
and sleep_count>0;
select child#, gets, misses, sleeps
from v$latch_children
where name='row cache objects'
order by 1;
輸出結果:
CHILD# GETS MISSES SLEEPS
-------------- -------------- --------------- ----------
(略)
7 24430682 14976 4
( 略)
2、通過v$fixed_view_definition比對v$rowcache和x$kqrst
v$rowcache x$kqrst 描述
----------------- ----------------------------------- ------------------------
CACHE# KQRSTCID ROWCACHE ID編號
TYPE decode(KQRSTTYP,1,
'PARENT','SUBORDINATE') rowcache型別
SUBORDINATE# decode(KQRSTTYP,2,
KQRSTSNO,null), subordinate#編號
PARAMETER KQRSTTXT 引數名稱,其決定
rowcache記錄數量
COUNT KQRSTCSZ 在cache中各個引數的記錄數
USAGE KQRSTUSG, 記錄的有效數
FIXED KQRSTFCS 被修復的記錄數
GETS KQRSTGRQ, 資料物件請求總數量
GETMISSES KQRSTGMI, 資料物件請求miss數量
SCANS KQRSTSRQ, scan請求數量
SCANMISSES KQRSTSMI, scan失敗次數
SCANCOMPLETES KQRSTSCO, SUBORDINATE記錄列表,完全
scan掃描次數列表
MODIFICATIONS KQRSTMRQ, inserts, delete, update次數
FLUSHES KQRSTMFL, flush到磁碟的次數
DLM_REQUESTS KQRSTILR, DLM請求次數
DLM_CONFLICTS KQRSTIFR, DLM衝突次數
DLM_RELEASES KQRSTISR DLM釋放次數
KQRSTCLN latch編號
KQRSTOSZ 未知
KQRSTCLN對應child#,所以我們能知道,一個或多個child#管理單個row cache
3、檢視每個child#資訊
select kqrstcln child#, kqrsttxt RowCacheName from x$kqrst
order by 1;
LD# ROWCACHENAME
---------- --------------------------------
略
7 dc_users
7 dc_users
7 dc_users
7 dc_users
所以我們知道row cache objects latch的child#7是管理dc_users
4、如果出現latch出現sleeps值比較大,則可以通過x$kqrsts中找出row cachename,然後結合檢視miss的位置,大概定位是row cache latch競爭原因
select "WHERE", sleep_count, location
from v$latch_misses
where parent_name='row cache objects'
and sleep_count>0;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/354732/viewspace-665630/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Latch: Row Cache Objects (One bug?)Object
- ORACLE Active dataguard 一個latch: row cache objects BUGOracleObject
- WAITEVENT: "latch: row cache objects" Reference Note (Doc ID 1550722.1)AIObject
- latch: row cache objects 和cursor: pin S wait on X共同出現ObjectAI
- How to Match a Row Cache Object Child Latch to its Row CacheObject
- latch 相關效能問題診斷: latch: row cache objects等待事件導致CPU負載高Object事件負載
- Metlink:How to Match a Row Cache Object Child Latch to its Row CacheObject
- oracle 'row cache objects' 等待事件解釋OracleObject事件
- ORA-600(504)(row cache objects)錯誤Object
- 基於row cache object latch研究對於sga抖動的影響Object
- cache buffers LRU chain latchAI
- Latch: cache buffer chains (%)AI
- latch: cache buffers chainsAI
- latch free(cache buffers chain)AI
- cbc latch或cache buffer chains latch系列一AI
- latch:cache buffers chains案例AI
- Cache Buffer Chain Latch等待事件AI事件
- buffer cache實驗5-latch:cache buffers chainAI
- 等待事件之Row Cache Lock事件
- latch:library cache lock等待事件事件
- cr塊和latch buffer cache chainAI
- cache buffer chain latch只讀共享?AI
- cache buffer lru chain latch等待事件AI事件
- 優化Shared Pool Latch與Library Cache Latch競爭優化
- buffer cache實驗6-latch:cache buffers lru chainsAI
- 深入理解latch: cache buffers chainsAI
- Trouble shooting latch: cache buffers chainsAI
- ORACLE等待事件latch: cache buffers chainsOracle事件AI
- latch free 中 cache buffer chain 的整理AI
- 等待事件_cache_buffers_chains_latch事件AI
- 等待事件_cache_buffers_lru_chain_latch事件AI
- hanganalyze解決row cache lock(ZT)
- WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK!AIENQ
- [ORACLE 11G]ROW CACHE LOCK 等待Oracle
- 12c設定RESULT_CACHE_MODE=MANUAL發生'Result Cache:RC Latch'型別的Latch Free等待型別
- latch:cache buffers chains解決步驟AI
- latch:cache buffers chains的優化思路AI優化
- buffer cache與相關的latch等待事件事件