SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-00314: log 1 of thread 1, expected sequence# doesn't match
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/orcl/redo01.log'
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/orcl/redo001.log'
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/orcl/redo04.rdo'
SQL> alter database clear unarchived logfile group 1;
alter database clear unarchived logfile group 1
*
ERROR at line 1:
ORA-00322: log 1 of thread 1 is not current copy
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/orcl/redo04.rdo'
ORA-00322: log 1 of thread 1 is not current copy
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/orcl/redo001.log'
ORA-00322: log 1 of thread 1 is not current copy
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/orcl/redo01.log'
SQL> alter database clear unarchived logfile group 2;
Database altered.
SQL>
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-00322: log 3 of thread 1 is not current copy
ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/orcl/hxy01.log'
ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/orcl/hxy02.log'
ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/orcl/hxy03.log'
SQL> alter database clear unarchived logfile group 3;
Database altered.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-00322: log 4 of thread 1 is not current copy
ORA-00312: online log 4 thread 1: '/opt/oracle/oradata/orcl/log05.log'
ORA-00312: online log 4 thread 1: '/opt/oracle/oradata/orcl/log04.log'
ORA-00312: online log 4 thread 1: '/opt/oracle/oradata/orcl/hxy.log'
SQL> alter database clear unarchived logfile group 4;
Database altered.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
执行
recover database until cancel
之后恢复了
SQL> recover database until cancel;
Media recovery complete.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
Database altered.
各种问题可以在oracle的官方文档中找到对应的解释和解决方法