SQL> select member from v$logfile;
MEMBER
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/orcl/redo03.log
/u01/app/oracle/oradata/orcl/redo02.log
/u01/app/oracle/oradata/orcl/redo01.log
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC
---------- ---------- ---------- ---------- ---------- ---------- ---
STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------------- ------------- --------- ------------ ---------
1 1 1 52428800 512 1 NO
CURRENT 1849633 23-APR-12 2.8147E+14
3 1 0 52428800 512 1 YES
UNUSED 0 0
2 1 0 52428800 512 1 YES
UNUSED 0 0
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-01109: database not open
SQL> alter database drop logfile member;
alter database drop logfile member
*
ERROR at line 1:
ORA-02236: invalid file name
SQL> alter database drop logfile 1;
alter database drop logfile 1
*
ERROR at line 1:
ORA-02236: invalid file name
SQL> alter database drop logfile member 1
2 ;
alter database drop logfile member 1
*
ERROR at line 1:
ORA-02236: invalid file name
SQL> archive log start ;
Statement processed.
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-01109: database not open
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.
SQL> alter database drop logfile member '/u01/app/oracle/oradata/orcl/redo01.log';
alter database drop logfile member '/u01/app/oracle/oradata/orcl/redo01.log'
*
ERROR at line 1:
ORA-00361: cannot remove last log member
/u01/app/oracle/oradata/orcl/redo01.log for group 1
SQL> col member for a40
SQL> set linesize 1400
SQL> set linesize 140
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- ---------------------------------------- ---
3 ONLINE /u01/app/oracle/oradata/orcl/redo03.log NO
2 ONLINE /u01/app/oracle/oradata/orcl/redo02.log NO
1 ONLINE /u01/app/oracle/oradata/orcl/redo01.log NO