--1.增加4组大的日志文件
ALTER DATABASE ADD LOGFILE GROUP 6 ('/dev/vgdata3/rbill_log6') SIZE 2560M;
ALTER DATABASE ADD LOGFILE GROUP 7 ('/dev/vgdata3/rbill_log7') SIZE 2560M;
ALTER DATABASE ADD LOGFILE GROUP 8 ('/dev/vgdata4/rbill_log8') SIZE 2560M;
ALTER DATABASE ADD LOGFILE GROUP 9 ('/dev/vgdata4/rbill_log9') SIZE 2560M;
--2.切换current到新的组
alter system switch logfile;
select * from v$log;
--3.删除旧日志
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;
alter database drop logfile group 4;
alter database drop logfile group 5;
--4.切换测试
alter system switch logfile;
alter system checkpoint
--5.备份controlfile
alter database backup controlfile to trace ;
--6.修改DB的log_buffer
alter system set log_buffer=536870912 scope=spfle;
shutdown immediate;
startup
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/598601/viewspace-608066/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/598601/viewspace-608066/