控制文件相关的等待事件:control file sequential read / control file parallel write
偶尔发现数据库中发生如下等待事件,随查询文档整理出来: control file sequential read Reading from the control file. This happens in many cases. For example, while: 1、Making a backup of the control files2、Sharing information (between instances) from the control file 3、Reading other blocks from the control files4、Reading the header block Wait Time: The wait time is the elapsed time of the read Parameter Description file#
等待事件:log file parallel write
等待事件log file parallel write是等待redo records写入redo log file完成,是数据库正常活动的一部分,将redo buffer中的redo records拷贝到当前的redo log file中。 log file parallel write的参数: P1 = files(Number of files written to.) 如果每个联机日志组有一个或多个日志成员,那么这些日志成员(log member)是被并行写入redo records的。该参数显示的就是每组写日志成员的数目。 (If you have more than one log member per group then the files are written to in parallel(if possible).This is
等待事件:log file sync
dbsnak在微博里这样描述等待事件log file sync和log file parallel write的关系: 前台进程a通知LGWR要刷log buffer了,这时候a就开始等待log file sync,LGWR接到a的请求后开始等待OS把log buffer写回redo log,这时候LGWR就开始等待log file parallel write,OS写完了通知LGWR,中止log file parallel write等待,接着LGWR通知a,中止log file sync等待 --- 这就是上述两种等待的区别。 有上面这个形象的例子,可以明白等待事件log file sync和log file parallel write是同时存在的,均是等待LGWR进程将log buffer中的redo