对ORACLE的onling redo log files的操作
--手动更改日志组
ALTER SYSTEM SWITCH LOGFILE;
--增加日志组
ALTER DATABASE ADD LOGFILE GROUP 5
('E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO04.LOG')
SIZE 8M;
--删除日志组
alter database drop logfile group 4 ;
--添加日志组成员
ALTER DATABASE ADD LOGFILE MEMBER
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO21.LOG' TO GROUP 1,
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO22.LOG' TO GROUP 2,
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO23.LOG' TO GROUP 3;
--删除日志组成员
alter database drop logfile member
'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO04.LOG' ;
ALTER DATABASE RENAME FILE command
– Shut down the database.
– Copy the online redo log files to the new location.
– Place the database in MOUNT mode.
– Execute the command.
alter database rename file
'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO15.LOG' to
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO55.LOG' ;
– Open database for normal operation.
alter database open ;
李世侠,网名caibird2005 , initdba , 战神
MySQL DBA经验6年;
Oracle DBA经验10年;
精通MySQL HA架构,复制,备份,恢复,SQL优化;
熟悉SHELL编程、Python编程、SQL&PL/SQL编程;
MySQL OCP课程讲师;
ORACLE官方认证OCM证书;
BLOG: http://www.cnblogs.com/caibird2005
http://www.initdba.cn
Wechat: caibird2005
TEL :+86-186-5881-5300 +86-180-7290-8651