Professional Documents
Culture Documents
Types of Standby Databases
Types of Standby Databases
SYNC - LGWR will wait until RFS gives the signal that redo entries are received at standby.
AFFIRM - RFS will again wait until redo entries are completely written to the SRLs.
LGWR SYNC
LGWR ASYNC
ARCH ASYNC
Failover - Concepts and Commands
Ways to rebuild primary database after crash
Flashback
rebuild primary using RMAN duplicate
Steps to open standby as primary when primary is crashed
alter database recover managed standby database cancel;
alter database recover managed standby database finish;
select switchover_status from v$database;
alter database commit to switchover to primary with session shutdown;
alter database open;
Rebuild a primary database using flashback
select to_char(standby_became_primary_scn) from v$database; (current primary)
startup mount(crashed primary)
flashback database to scn (output from quey 1);
alter database convert to physical standby;
shut immediate
startup mount
alter database recover managed standby database disconnect
select process,status,sequence# from v$managed_standby; (Carnation will be changed after a failover)
RMAN in dataguard configuration
Conifure controlfile autobackup on (primary and standby)
Configure backup retention policy
recover lost datafile