關於log file sync等待事件的描述
我們在處理資料庫問題的時候,總會遇到log file sync的等待事件。對於這個等待事件,看到一個相對比較清晰的描述。貼出來供參考。
按照時間軸展開LGWR程式對線上REDO日誌的寫入操作:
1)使用者提交COMMIT命令;
2)前臺觸發LGWR程式,LGWR等待CPU佇列;
3)LGWR提交I/O請求,進入SLEEP狀態;
4)I/O過程;
5)I/O完成,LGWR被推入CPU佇列;
6)LGWR在CPU上執行,返回資訊給前臺;
7)COMMIT命令完成,前臺獲得返回資訊,進入CPU佇列
所以,可以推斷,導致高log file sync的等待有可能有以下的情況:
1.事務(commit或rollback)等待太久
2.CPU資源爭用
3.REDO儲存卷I/O能力緩慢
4.過大的日誌快取。
具體問題需要具體去分析。
按照時間軸展開LGWR程式對線上REDO日誌的寫入操作:
1)使用者提交COMMIT命令;
2)前臺觸發LGWR程式,LGWR等待CPU佇列;
3)LGWR提交I/O請求,進入SLEEP狀態;
4)I/O過程;
5)I/O完成,LGWR被推入CPU佇列;
6)LGWR在CPU上執行,返回資訊給前臺;
7)COMMIT命令完成,前臺獲得返回資訊,進入CPU佇列
所以,可以推斷,導致高log file sync的等待有可能有以下的情況:
1.事務(commit或rollback)等待太久
2.CPU資源爭用
3.REDO儲存卷I/O能力緩慢
4.過大的日誌快取。
具體問題需要具體去分析。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23850820/viewspace-2093096/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- log file sync等待事件事件
- 【等待事件】log file sync事件
- log file sync" 等待事件事件
- "log file sync"等待事件-2事件
- "log file sync"等待事件-1事件
- 等待事件 log file sync 小解事件
- log file sync等待事件總結事件
- log file sync等待事件處理思路事件
- 【TUNE_ORACLE】等待事件之日誌等待“log file sync”Oracle事件
- 【WAIT】 log file sync等待事件說明AI事件
- 【RAC】RAC 效能分析 - 'log file sync' 等待事件事件
- RAC 資料庫中的'log file sync' 等待事件資料庫事件
- log file sync等待事件的成因及優化方法事件優化
- Oracle之 等待事件log file sync + log file parallel write (awr優化)Oracle事件Parallel優化
- [20201204]關於等待事件Log File Sync.txt事件
- log file sync(日誌檔案同步) 與 Log file parallel write 等待事件Parallel事件
- log file switch相關等待事件事件
- Oracle 11g 遇到log file sync嚴重等待事件Oracle事件
- _use_adaptive_log_file_sync設定 降低log_file_sync等待APT
- oracle等待事件3構造一個Direct Path write等待事件和構造一個Log File Sync等待事件Oracle事件
- LOG FILE SWITCH等待事件事件
- [20161228]奇怪log file sync等待事件.txt事件
- redo的等待log file sync和log file parallel write和redo size設定Parallel
- gc 等相關等待事件描述GC事件
- log file switch (checkpoint incomplete)等待事件事件
- 【等待事件】log file switch (checkpoint incomplete)事件
- 【等待事件之二】log 相關的等待事件
- log file sync 和 log file parallel writeParallel
- 一個os thread startup、log file sync等待的故障回顧thread
- Oracle資料庫由dataguard備庫引起的log file sync等待Oracle資料庫
- 【TUNE_ORACLE】等待事件之日誌等待“log file parallel write”Oracle事件Parallel
- 【新炬網路名師大講堂】關於LOG FILE SYNC的解惑
- 【效能調整】等待事件(五)log相關等待事件
- Oracle db file parallel write 和 log file parallel write 等待事件 說明OracleParallel事件
- _use_adaptive_log_file_syncAPT
- 關於DFS lock handle等待事件事件
- 最近遇到log file sync等待時間,測試了一下非同步提交非同步
- 關於等待事件"read by other session"事件Session