標籤:oracle redolog
1、建立新的日誌組
1.alter database add logfile group 4 (‘/u01/app/oracle/oradata/jian/redo04.log’) size 1024k;
2.alter database add logfile group 5 (‘/u01/app/oracle/oradata/jian/redo05.log’) size 1024k;
2、切換當前日誌到新的日誌組
1.alter system switch logfile;
2.alter system switch logfile;
3、刪除舊的日誌組
1.alter database drop logfile group 1;
2.alter database drop logfile group 2;
3.alter database drop logfile group 3;
4、作業系統下刪除原日誌組1、2、3中的檔案
5、重建日誌組1、2、3
1.alter database add logfile group 1 (’/u01/app/oracle/oradata/jian/redo01.log’) size 10M;
2.alter database add logfile group 2 (’/u01/app/oracle/oradata/jian/redo02.log’) size 10M;
3.alter database add logfile group 3 (’/u01/app/oracle/oradata/jian/redo03.log’) size 10M;
6、切換日誌組
1.alter system switch logfile;
2.alter system switch logfile;
3.alter system switch logfile;
7、刪除日誌組4、5
1.alter database drop logfile group 4;
2.alter database drop logfile group 5;
8、到作業系統下刪除原日誌組4、5中的檔案
9、備份當前的最新的控制檔案
SQL> alter database backup controlfile to trace resetlogs
本文出自 “8671833” 部落格,請務必保留此出處http://8681833.blog.51cto.com/8671833/1538915