Sunday, 21 August 2016

How to recover from the Loss of a Datafile on a Standby Database ?



Use these following steps to recover if you lost a datafile on a standby database :

 1.  Initially Stop the Redo Apply using the ALTER DATABASE command:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

 2. Now , Start RMAN and connect both to the standby and recovery catalog using:
RMAN TARGET / CATALOG  rcat/passwd@RCAT

 3. Issue the following commands to restore and recover datafiles on the standby database:
RMAN> RESTORE DATAFILE 5;
RMAN> RECOVER DATAFILE 5;

 4. Now, Restart the SQL Apply :
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;

See Also : 

How to Prepare for DBA Interview

General Tips to Prepare for an Oracle DBA Job Interview


For more updates,  Like Us Our Facebook Page Here 



No comments:

Post a Comment