1、創建2個新的日志組 alter database add logfile group 4 ('D:/ORACLE/ORADATA/ORADB/REDO04_1.LOG') size 1024k; alter database add logfile group 5 ('D:/ORACLE/ORADATA/ORADB/REDO05_1.LOG') size 1024k;
2、切換當前日志到新的日志組 alter system switch logfile; alter system switch logfile;
3、刪除舊的日志組 alter database drop logfile group 1; alter database drop logfile group 2; alter database drop logfile group 3;
4、操作系統下刪除原日志組1、2、3中的文件
5、重建日志組1、2、3 alter database add logfile group 1 ('D:/ORACLE/ORADATA/ORADB/REDO01_1.LOG') size 10M; alter database add logfile group 2 ('D:/ORACLE/ORADATA/ORADB/REDO02_1.LOG') size 10M; alter database add logfile group 3 ('D:/ORACLE/ORADATA/ORADB/REDO03_1.LOG') size 10M;
6、切換日志組 alter system switch logfile; alter system switch logfile; alter system switch logfile;
7、刪除中間過渡用的日志組4、5 alter database drop logfile group 4; alter database drop logfile group 5;
8、到操作系統下刪除原日志組4、5中的文件
9、備份當前的最新的控制文件 SQL> connect internal SQL> alter database backup controlfile to trace resetlogs