码迷,mamicode.com
首页 > 其他好文 > 详细

【练习】迁移日志组

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

标签:class   close   host   iat   alt   started   nbsp   color   数据库   

迁移日志组必须在数据库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.

 

【练习】迁移日志组

标签:class   close   host   iat   alt   started   nbsp   color   数据库   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!