Maximum Protection - Maximum Availablity - Maximum Performance - Primary database - ARC0 process successfully archives the local online redo log to the local destin ation (LOG_ARCHIVE_DEST_1), ARC1 process transmits redo from the local archived redo log files (instead of t he online redo log files) to the remote standby destination (LOG_ARCHIVE_DEST_2) . Standby database: Remote file server process (RFS) will, in turn, write the redo data to an archiv ed redo log file from a standby redo log file. Log apply services use Redo Apply (MRP process) or SQL Apply (LSP process) to ap ply the redo to the standby database. 2 ARCn processes required - to separate local archival from remote archival. Achived by setting: LOG_ARCHIVE_MAX_PROCESSES initialization parameter (the default setting is 4, bu t the maximum value is 30). As on primary archive may get deleted after backup. V$ARCHIVED_LOG view to verify the redo data was received on standby destinations . ================================================================================ ===== Configuring Primary Database : Steps : Enable Archive Log. Create Password File Enable Force Logging Create Standby Redo Logs (optional) Configure the Primary Database Initialization Parameters Create a Backup of the Primary Database Create a Standby Controlfile Prepare an Initialization Parameter for the Standby Database Configure Oracle Net Components Set Oracle Net Listener remote_login_passwordfile=exclusive (# of online redo log file groups on primary + 1) * maximum # of threads In our example it is not configured for Oracle RAC and therefore only contains o ne thread. In RAC one redo thread per instance. alter database add standby logfile thread 1 group 4 ('<path of redo file>') size 50m; Backup Primary DB The RMAN backupsets will be written to a staging directory located outside of th e Flash Recovery Area; namely /u04/oracle/dg_staging. then copy the parameter file cp initprod.ora initstan.ora Configure Oracle Net Components Oracle Net listener and Oracle Net aliases must be configured on both the primar y and standby Configure: An Oracle Net listener running on the primary host An Oracle Net listener running on the standby host An Oracle Net alias on the primary that points to the standby database An Oracle Net alias on the standby that points to the primary database What is named static listener? Verify Oracle Net Listener Services $ lsnrctl services | grep '^Service' Oracle Net Aliases The primary and standby host should contain an Oracle Net alias in the tnsnames. ora file for all primary and standby net service names: LOG TRANSPORT SERVICE: log apply services role management services log transport services component of the Data Guard environment is responsible fo r automatic archiving of primary database online redo logs. It provide permissions, destinations, transmission, reception, and transmission failure resolution of archived redo logs In a Data Guard environment, the log transport services component coordinates it s activities with log apply services and role management services for switchover and failover operations. fetch archive log (FAL) client - Oracle Net name of the standby site FAL client is set on the standby site. transfer of archived redo log files automatically when it detects an archive gap on the standby database. Fetch archive log (FAL) Server (physical standby databases only) configured in parameter file of standby runs on the primary database Serves the FAL_Client request When FAL client detect some gap in archives then it send request to primary to t ransfer the missing logs. Why we use DISCONNECT keyword? What happen if not specified? To start Redo Apply in the background, include the DISCONNECT keyword. If not specified the nControl is not returned to the command prompt until recove ry is canceled by another session.