首页 > 其他 > 详细

【练习】迁移日志组

时间:2016-12-04 13:54:27      阅读:249      评论:0      收藏:0      [点我收藏+]

迁移日志组必须在数据库mount的状态

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area  830930944 bytes
Fixed Size                  2257800 bytes
Variable Size             536874104 bytes
Database Buffers          289406976 bytes
Redo Buffers                2392064 bytes
Database mounted.

1.拷贝

[oracle@host02 ORA11GR2]$ cp /u01/app/oracle/oradata/ORA11GR2/redo01.log /u01/app/oracle/redo01.log

2.更新控制文件中redo的信息

SQL> alter database rename file /u01/app/oracle/oradata/ORA11GR2/redo01.log to /u01/app/oracle/redo01.log;

Database altered.

3.起库

SQL> alter database open;

Database altered.

 

【练习】迁移日志组

原文:http://www.cnblogs.com/tomatoes-/p/6130597.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!