练习迁移日志组
Posted Tomatoes
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了练习迁移日志组相关的知识,希望对你有一定的参考价值。
迁移日志组必须在数据库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.拷贝
[[email protected] 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.
以上是关于练习迁移日志组的主要内容,如果未能解决你的问题,请参考以下文章
练习增加日志组数至4组,且每组日志成员大小为50M,每组2个成员。