环境
OS:Red Hat Linux As 5
DB:10.2.0.1
1.添加日志组
alter database add logfile group 4 ('/u01/app/oracle/oradata/oracl/redo04.log') size 50m;
2.添加日志组(指定日志已经存在)
alter database add logfile group 4 ('/u01/app/oracle/oradata/oracl/redo04.log') size 50m reuse;
3.添加日志成员
alter database add logfile member '/u01/app/oracle/oradata/oracl/redo0401.log' to group 4;
4.添加日志成员(指定日志已经存在)
alter database add logfile member '/u01/app/oracle/oradata/oracl/redo0401.log' reuse to group 4;
5.删除日志组
alter database drop logfile group 4;
6.删除日志成员
alter database drop logfile member '/u01/app/oracle/oradata/oracl/redo0401.log';
7.如果要给日志组文件换一个位置,则需要依照下面步骤执行
(1)shutdown database
(2) copy the online redo log files to the new location;
(3) start database to mount;
(4)execute the command
alter database rename file '/u01/app/oracle/oradata/oracl/redo0401.log' to '/u02/app/oracle/oradata/oracl/redo0401.log';
(5)open database
-- The End --
阅读(215) | 评论(0) | 转发(0) |