Below Picture shows how Dataguard real time apply and Non-real time(managed) apply works
Real-time apply, which allows Data Guard to recover redo data from the current standby redo log file as it is being filled up by the RFS process.(Standby redo logs must for it)
How to enable real time apply?
For Physical Standby -
SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
For Logical Standby -
SQL>ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE
How to check real-time apply is enabled or not?
SQL> select DEST_ID,dest_name,status,type,srl,recovery_mode from v$archive_dest_status;
DEST_ID DEST_NAME STATUS TYPE SRL RECOVERY_MODE
---------- ------------------------------ --------- -------------- --- -----------------------
1 LOG_ARCHIVE_DEST_2 VALID LOCAL YES MANAGED REAL TIME APPLY
=======================================================================
Non Real-time Apply (Managed Recovery), which allows Data Guard to recover redo data from the archived redo log file as it is being filled up from the standby redo log files.
How to enable Non-real time apply?
For Physical Standby -
For Logical Standby -
SQL>ALTER DATABASE START LOGICAL STANDBY APPLY;
How to check real-time apply is enabled or not?
SQL> select DEST_ID,dest_name,status,type,srl,recovery_mode from v$archive_dest_status;
DEST_ID DEST_NAME STATUS TYPE SRL RECOVERY_MODE
---------- ------------------------------ --------- -------------- --- -----------------------
1 LOG_ARCHIVE_DEST_2 VALID LOCAL NO MANAGED
Real-time apply, which allows Data Guard to recover redo data from the current standby redo log file as it is being filled up by the RFS process.(Standby redo logs must for it)
How to enable real time apply?
For Physical Standby -
SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
For Logical Standby -
SQL>ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE
How to check real-time apply is enabled or not?
SQL> select DEST_ID,dest_name,status,type,srl,recovery_mode from v$archive_dest_status;
DEST_ID DEST_NAME STATUS TYPE SRL RECOVERY_MODE
---------- ------------------------------ --------- -------------- --- -----------------------
1 LOG_ARCHIVE_DEST_2 VALID LOCAL YES MANAGED REAL TIME APPLY
=======================================================================
Non Real-time Apply (Managed Recovery), which allows Data Guard to recover redo data from the archived redo log file as it is being filled up from the standby redo log files.
How to enable Non-real time apply?
For Physical Standby -
SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
For Logical Standby -
SQL>ALTER DATABASE START LOGICAL STANDBY APPLY;
How to check real-time apply is enabled or not?
SQL> select DEST_ID,dest_name,status,type,srl,recovery_mode from v$archive_dest_status;
DEST_ID DEST_NAME STATUS TYPE SRL RECOVERY_MODE
---------- ------------------------------ --------- -------------- --- -----------------------
1 LOG_ARCHIVE_DEST_2 VALID LOCAL NO MANAGED
No comments:
Post a Comment