ORA-00338 STANDBY LOG归档失败处理方法

vi alert_posp.log

Errors in file /u01/app/oracle/diag/rdbms/posp_master/posp/trace/posp_arc4_11567.trc:
ORA-00338: log 22 of thread 1 is more recent than control file
ORA-00312: online log 22 thread 1: '/u01/app/oracle/oradata/posp/standby22b.log'
ORA-00338: log 22 of thread 1 is more recent than control file
ORA-00312: online log 22 thread 1: '/u01/app/oracle/oradata/posp/standby22a.log'

SQL> select * from v$standby_log;
ERROR:
ORA-00310: archived log contains sequence 77459; sequence 77457 required
ORA-00334: archived log: '/u01/app/oracle/oradata/posp/standby22b.log'

用客户端工具查看日志组号

select group#,type,member from v$logfile;

清理这个有问题的日志组:

ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 22;

猜你喜欢

转载自blog.csdn.net/cuiyan1982/article/details/81165040