log file switch (checkpoint incomplete)
主要的问题在于log文件切换时由于checkpoint未完成,而发生等待事件“log file switch”,该等待事件会影响LGWR进程的写入,从而还会产生一些锁等待。所以优先考虑解决该等待事件,再做进一步观察。
1. 目前日志使用情况:
SQL>select group#,bytes/1024/1024,status, members from V$log;
GROUP# BYTES/1024/1024 STATUS MEMBERS
------------------------- ---------------- ----------
1 50 CURRENT 1
2 50 ACTIVE 1
3 50 ACTIVE 1
SQL>select group#,member from V$logfile;
GROUP# MEMBER
------------------------------------------------------------------------------------------
3/home/oracle/app/oradata/pera205/redo03.log
2/home/oracle/app/oradata/pera205/redo02.log
1/home/oracle/app/oradata/pera205/redo01.log
下面的步骤为重设redolog的步骤,该步骤可以在线做,不影响业务的正常使用:
2.扩展4组512M.
alterdatabase add logfile group 4('/home/oracle/app/oradata/pera205/redo04.log') size 512M;
alter database add logfile group 5 ('/home/oracle/app/oradata/pera205/redo05.log')size 512M;
alter database add logfile group 6 ('/home/oracle/app/oradata/pera205/redo06.log')size 512M;
alter database add logfile group 7 ('/home/oracle/app/oradata/pera205/redo07.log')size 512M;
删除原来3组
必须状态是INACTIVE才能删除.ACTIVE和CURRENT不能删除。
alter database drop logfile group 1;
alterdatabase drop logfile group 2;
alterdatabase drop logfile group 3;
在后面的观察该等待事件不再出现。