ITPub博客

首页 > 数据库 > Oracle > Log file switch(Private strand flush not complete)

Log file switch(Private strand flush not complete)

原创 Oracle 作者:zhenglinsong 时间:2016-06-01 17:34:43 0 删除 编辑

同事说,在业务高峰期,数据库出现Log file switch(Private strand flush not complete)

取AWR可以看到

 

 

每秒日志量接近2M,每个事物日志接近2.6M,TOP里面出现

Log file switch(Private strand flush not complete)

 

这个的原因是:

When you switch logs, all private strands have to be flushed to the current log before the switch is allowed to proceed.

 

当你做日志切换时,所有的private strands需要被刷新到当前日志组 ,才可以做切换动作.

 

我做了如下操作模拟这个等待事件:

 

从告警日志可以看到如下信息:

 

Wed Jun 01 16:47:41 2016

Thread 1 cannot allocate new log, sequence 31

Private strand flush not complete

  Current log# 2 seq# 30 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG

Thread 1 advanced to log sequence 31

  Current log# 3 seq# 31 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG

 

 

解决办法:可以把日志组加大到2G一个,避免切换频繁。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31134212/viewspace-2112423/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-04-21

  • 博文量
    29
  • 访问量
    41413