SQL> col member for a35
SQL> SELECT l.GROUP#,l.ARCHIVED,l.STATUS,lf.MEMBER
2 FROM V$LOG l,V$LOGFILE lf
3 WHERE l.GROUP#=lf.GROUP#
4 ORDER BY l.GROUP#;
GROUP# ARC STATUS MEMBER
---------- --- ---------------- -----------------------------------
1 NO CURRENT /ORADATA/freebase/redo01.log
2 NO INACTIVE /ORADATA/freebase/redo02.log
3 NO INACTIVE /ORADATA/freebase/redo03.log
SQL> !mv /ORADATA/freebase/redo02.log /tmp
SQL> alter system switch logfile;
System altered.
SQL> SELECT l.GROUP#,l.ARCHIVED,l.STATUS,lf.MEMBER
2 FROM V$LOG l,V$LOGFILE lf
3 WHERE l.GROUP#=lf.GROUP#
4 ORDER BY l.GROUP#;
GROUP# ARC STATUS MEMBER
---------- --- ---------------- -----------------------------------
1 NO INACTIVE /ORADATA/freebase/redo01.log
2 NO CURRENT /ORADATA/freebase/redo02.log
3 NO INACTIVE /ORADATA/freebase/redo03.log
SQL> select instance_name,status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
freebase OPEN
SQL> !ls -l /ORADATA/freebase/redo02.log
ls: /ORADATA/freebase/redo02.log: No such file or directory
[root@vrhdg1 ~]# cd /proc/405/fd/
[root@vrhdg1 fd]# ls -l 259
lrwx------ 1 oracle oinstall 64 Jun 17 14:12 259 -> /ORADATA/freebase/redo02.log (deleted)
[root@vrhdg1 fd]# kill -9 405
SQL> startup mount;
SQL> col member for a35
SQL> SELECT l.GROUP#,l.ARCHIVED,l.STATUS,lf.MEMBER
2 FROM V$LOG l,V$LOGFILE lf
3 WHERE l.GROUP#=lf.GROUP#
4 ORDER BY l.GROUP#;
GROUP# ARC STATUS MEMBER
---------- --- ---------------- -----------------------------------
1 NO INACTIVE /ORADATA/freebase/redo01.log
2 NO CURRENT /ORADATA/freebase/redo02.log
3 NO INACTIVE /ORADATA/freebase/redo03.log
SQL> !ls -l /ORADATA/freebase/redo02.log
ls: /ORADATA/freebase/redo02.log: No such file or directory
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/ORADATA/freebase/redo02.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
SQL> alter database clear logfile group 2;
alter database clear logfile group 2
*
ERROR at line 1:
ORA-01624: log 2 needed for crash recovery of instance freebase (thread 1)
ORA-00312: online log 2 thread 1: '/ORADATA/freebase/redo02.log
SQL> recover database until cancel;
ORA-00279: change 1158338 generated at 06/17/2014 14:38:15 needed for thread 1
ORA-00289: suggestion :
/u02/app/oracle/products/11.2.0.3/dbs/arch1_5_850487771.dbf
ORA-00280: change 1158338 for thread 1 is in sequence #5
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/ORADATA/freebase/system01.dbf'