Database Backup and Recovery (MOSC)

MOSC Banner

Use datafile on standby to fix a problem on the primary db.

edited Jul 4, 2017 5:04AM in Database Backup and Recovery (MOSC) 9 commentsAnswered
 Hi all,
   I have a question that related to primary and standby database in RAC.
   I know that the standby db is copy from primary, when operate on primary also effect to standby. I use hot backup at the standby db:

   ---------------------------------------------
   SQL> alter tablespace ABC begin backup;
   SQL> host cp datafile_path/adc_bk.dbf /tmp
   SQL> alter tablespace ABC end backup;
   ---------------------------------------------

   Assume that, on the primary db has a block corrupted. I use BLOCKRECOVER from RMAN:
   
   RMAN> CATALOG DATAFILECOPY '/tmp/abc_bk.dbf';     ----> this is datafile I just copy from  the standby db.
   RMAN> BLOCKRECOVER DATAFILE 7 BLOCK 130;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center