如何在awr裡面檢視 log file sync是否是由使用者commit太多造成
阿新 • • 發佈:2019-02-03
根據Tanel Põder:
Reasons for log file sync waits
• Commits wait for log file sync by default
• User commits
• There’s an user commits statistic in v$sesstat
• DDL(如,create table ,但是drop table不會有,可以觀察 v$sysstat裡面的user commits,或者10046 trace裡面的等待事件)
• Resulting recursive transactions commit
• Recursive data dictionary DML
• Rollbacks wait too!
• User rollbacks
• User/application issued a rollback command
• Transaction rollbacks
• We had an internal rollback (because of some failure)
• Space allocation/ASSM problems, cancelled queries, killed sessions
在v$sysstat視圖裡面的表現就是
user commits
user rollbacks
transaction rollbacks
如果這樣推斷,那麼在awr裡面可以觀察這三個統計資訊的數值來做參開是否由於使用者原因造成log file sync waits