3、几个log file 事件
log file parallel write
The log file parallel write wait event has three parameters: files, blocks, and requests. In Oracle Database 10g, this wait event falls under the System I/O wait class. Keep the following key thoughts in mind when dealing with the log file parallel write wait event.
The log file parallel write event belongs only to the LGWR process.
A slow LGWR can impact foreground processes commit time.
Significant log file parallel write wait time is most likely an I/O issue
log file sync
The log file sync wait event has one parameter: buffer#. In Oracle Database 10g, this wait event falls under the Commit wait class. Keep the following key thoughts in mind when dealing with the log file sync wait event.
The log file sync wait event is related to transaction terminations (commits or rollbacks).
When a process spends a lot of time on the log file sync event, it is usually indicative of too many commits or short transactions.
The log file switch (checkpoint incomplete) wait event has no wait parameters.
In Oracle Database 10g, this wait event falls under the Configuration wait class. Keep the following key thought in mind when dealing with the log file switch (checkpoint incomplete) wait event.
Excessive log switches caused by small log files and a high transaction rate
更多的知识点可以参考 Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning
4、建议与解决方案
a、从上面的分析以及日志相关等待事件的解释来看,首要的是增加日志文件的大小(200-250MB)。可参考:调整联机重做日志大小(change redo log size) http://www.linuxidc.com/Linux/2013-03/81453.htm
b、日志文件组太多,建议减少到4-5组
c、可能的情形下,将日志存放到高速磁盘(目前是raid 5上),如存放到raid 1之上
d、采用批量提交的方式来提交事务
e、建议增加DBWn的数目
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
