创建standby controlfile的方法

来源:互联网 发布:红外循迹算法 编辑:程序博客网 时间:2024/04/28 15:08

10.2.0.5 on windows 2008 64 bit

 在主库mount或open状态下

1 alter database create  (physical /logical) standby controlfile as 'XXXX';

  在standby controlfile前面有两个选择,文档里面并没有说哪个是默认的??这个还要好好看看,后面做了实验再补充

  这种方式得到的controlfile直接拷贝到standby就可以用了

2 使用rman备份

backup format='e:\standby.ctl' current controlfile for standby;

这种方式得到的controlfile需要在standby上restore

restore standby controlfile from 'e:\STANDBY.CTL';


3 backup format=‘e:\standby2.ctl' as copy current controlfile for standby这种方式备份的controlfile直接拷贝到standby上就可以用了


0 0
原创粉丝点击