- Copy the standby controlfile from the primary server to either node of the standby RAC.
- Startup the standby database to nomount state.
- Restore controlfile
- Restore the standby control file prepared by yourself.
- Restore the standby controlfile prepared by RMAN. As we mentioned in the step (08/14), in general case during duplication, RMAN will duplicate the controlfile into database, but sometimes won't, in such case, you must restore the controlfile by yourself. Just restore the controlfile that prepared by RMAN.
[oracle@primary01 ~]$ scp /tmp/standby.ctl standby01:/tmp/standby.ctl
[oracle@standby01 ~]$ srvctl stop database -d comp
[oracle@standby01 ~]$ srvctl start database -d comp -o nomount
[oracle@standby01 ~]$ rman target /
...
RMAN> restore controlfile from '/tmp/standby.ctl';
Starting restore at 09-NOV-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=33 instance=standb1 device type=DISK
channel ORA_DISK_1: copied control file copy
output file name=+DATA/compdb/controlfile/current.260.761849575
Finished restore at 09-NOV-12
In 10g database, you must indicate the destination in "to" clause like this:
RMAN> restore controlfile to '/u01/app/oracle/oradata/standb/control01.ctl' from '/tmp/standby.ctl';
RMAN> restore controlfile to '/u01/app/oracle/oradata/standb/control02.ctl' from '/tmp/standby.ctl';
RMAN> restore controlfile to '/u01/app/oracle/oradata/standb/control03.ctl' from '/tmp/standby.ctl';
RMAN> restore controlfile from '/u01/app/oracle/product/11.2.0/db_1/dbs/cntrlstandb1.dbf';
Starting restore at 09-NOV-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=32 instance=standb1 device type=DISK
channel ORA_DISK_1: copied control file copy
output file name=+DATA/compdb/controlfile/current.260.761849575
Finished restore at 09-NOV-12