latch: cache buffers chains
檢視等待事件的時候,幾乎每次都有 latch: cache buffers chains
該等待事件的主要原因通常多個session重複訪問一個或多個資料塊,很大程度上和邏輯讀有關,所以要關注v$sql中buffer_gets/executions很大的語句,
因數每一個邏輯讀需要一個latch get操作及一個cpu操作,這樣的sql消耗cpu資源比較嚴重,這也是為什麼說常見的表現是CPU使用率較高的原因。
說的再直白一點,基本上可以確定是因為這個系統效能較差的SQL引起的!
根據SQL_ID 可以找到具體的sql語句和真正的執行計劃
解決辦法:
1、最佳化nested loop join,如果有可能使用hash join代替nested loop join。也可以利用對熱塊索引進行hash分割槽,或者使用hash簇的方式減緩熱塊現象。
2、調整表的pctfree值,將資料儘可能的分佈到多個塊中
3、調整應用來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2016659/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 用於排查cache buffers chainsAI
- mutex,latch,lock,enqueue hash chains latch基礎概念MutexENQAI
- Oracle Cache Buffer ChainsOracleAI
- latch:library cache lock等待事件事件
- [20190319]shared pool latch與library cache latch的簡單探究.txt
- [20210512]shared pool latch與library cache latch的簡單探究.txt
- 【BUFFER】Oracle buffer cache之 latch 學習記錄Oracle
- PostgreSQL的shared_buffers和系統OS cache的關係SQL
- [20200211]檢視v$db_object_cache的CHILD_LATCH欄位.txtObject
- Indirect Buffers
- [20210520]11g shared pool latch與library cache mutex的簡單探究.txtMutex
- Protocol Buffers 系列 (1) - 什麼是Protocol Buffers?Protocol
- [20210521]11g shared pool latch與library cache mutex的簡單探究4.txtMutex
- [20210520]11g shared pool latch與library cache mutex的簡單探究3.txtMutex
- Oracle Least Recently Used ChainsOracleASTAI
- sudoku 數獨 XY-ChainsAI
- Protocol Buffers 3 學習Protocol
- PostgreSQL的wal_buffersSQL
- ORACLE LOCK,LATCH,PINOracle
- Oracle Latch 說明Oracle
- hiccup和Latch off
- Protocol Buffers 在 iOS 中的使用ProtocoliOS
- Android開發 - 掌握ConstraintLayout(六)鏈條(Chains)AndroidAI
- [20220311]完善ash_wait_chains指令碼.txtAI指令碼
- latch等待事件彙總事件
- Latch free等待事件(轉)事件
- Systematic Latch Contention Troubleshooting in OracleOracle
- Latch free等待事件四(轉)事件
- Latch free等待事件三(轉)事件
- [20190416]process allocation latch.txt
- Latch的spin及sleep(zt)
- 【FPGA基礎】Latch基礎FPGA
- Latch free等待事件二(轉)事件
- [20211111]補充完善ash_wait_chains指令碼.txtAI指令碼
- library cache pin和library cache lock(一)
- library cache pin和library cache lock (zt)
- library cache pin和library cache lock(二)
- Guava CacheGuava
- Spring CacheSpring