oraclerac下調節redologfile文件大小
rac下調節redo log file 文件大小
(1)查看當前日志信息:
select * from v$logfile;
(步驟2中得路徑可以在這裡MEMBER列看到,redo文件名自己命名,比如,redo07.log)
(注意:日志組現在是6組)
(2)為各個節點添加日志文件:(每個節點添加三組日志)
1.節點1
ALTER DATABASE ADD LOGFILE THREAD 1 group 7 ‘+data/....(單引號裡面是路徑)′ size 2048m;
ALTER DATABASE ADD LOGFILE THREAD 1 group 8 ‘+data/....(單引號裡面是路徑)′ size 2048;
ALTER DATABASE ADD LOGFILE THREAD 1 group 9 ‘+data/....(單引號裡面是路徑)′ size 2048;
2.節點2
ALTER DATABASE ADD LOGFILE THREAD 2 group 10 ‘+data/....(單引號裡面是路徑)′ size 2048m;
ALTER DATABASE ADD LOGFILE THREAD 2 group 11 ‘+data/....(單引號裡面是路徑)′ size 2048m;
ALTER DATABASE ADD LOGFILE THREAD 2 group 12 ‘+data/....(單引號裡面是路徑)′ size 2048m;
(3)手動切換日志並刪除之前日志:(此步驟反復執行,一直到把group 1,2,3,4,5,6全部刪除)
查看日志文件狀態列(STATUS):
SELECT * FROM V$LOG;
只有STATUS列為inactive狀態才能被刪除:
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;
alter database drop logfile group 6;
alter system switch logfile;(切換日志可改變status列的狀態,再進行刪除)
如果不能改變狀態使用這個:alter system archive log current;
最後再:刪除之前的redo log file(操作系統層面刪除)