當前使用的日志是不能刪除的
SQL> col member for a
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
SQL> alter database drop logfile group
alter database drop logfile group
*
ERROR at line
ORA
ORA
Inactive的刪除後
SQL> alter database drop logfile group
Database altered
SQL> alter database add logfile group
Database altered
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
SQL> set linesize
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
切換日志組
SQL> alter system switch logfile;
System altered
SQL> alter database drop logfile group
alter database drop logfile group
*
ERROR at line
ORA
ORA
SQL> alter system switch logfile;
System altered
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
SQL> alter system checkpoint;
System altered
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
SQL> alter database drop logfile group
Database altered
SQL> alter database add logfile group
Database altered
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
From:http://tw.wingwit.com/Article/program/Oracle/201311/17226.html