Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMAN backup current controlfile for standby controlfile not restored as standby controlfile

DBA AbhishekMay 17 2016 — edited Sep 6 2016

Oracle 11203.8 on linux x86_64

Hi,


I am facing a strange issue.

While trying to restore my controlfile backed up for standby, its getting restores as controlfile_type=backup instead of standby and the database_role shows as primary instead of physical_standby.

Can anyone tell me what's going on?

Backup controlfile on primary

RMAN> backup current controlfile for standby format='/ora/bkup/DBASEA/DBASEA_standby_ctlfl.bak' tag='STANDBY_CTLFILE_BAK';

scp it to standby server:

RMAN> restore controlfile from '/ora/bkup/DBASEB/DBASEA_standby_ctlfl.bak';

Starting restore at 16-MAY-16

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=7 device type=DISK

channel ORA_DISK_1: restoring control file

channel ORA_DISK_1: restore complete, elapsed time: 00:00:01

output file name=+DATA_DBASE_32/DBASEB/control01.ctl

output file name=+FRA_DBASE_32/DBASEB/control02.ctl

Finished restore at 16-MAY-16

RMAN> alter database mount;

database mounted

released channel: ORA_DISK_1

RMAN> exit

oracle > sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 16 23:03:01 2016

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Partitioning, Automatic Storage Management and Real Application Testing options

SQL> select database_role from v$database;

DATABASE_ROLE

----------------

PRIMARY

SQL> SELECT controlfile_type FROM V$database;

CONTROL

-------

BACKUP

Thanks!
Abhishek

This post has been answered by mseberg on May 17 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2016
Added on May 17 2016
10 comments
10,266 views