SlideShare a Scribd company logo
1 of 61
Oracle Data Guard
                               Presented by
                       Satishbabu Gunukula
12+ Years of Experience in Oracle, SQLServer Database
Technologies
Oracle Certified Professional Oracle 8i,9i,10g

Oracle Certified Expert Oracle 10g RAC

   http://www.oracleracexpert.com
Agenda
     Data Guard and its benefits?
     Data Guard Architecture
     Types of Data guards and Benefits
     Advantages with different types of Data guards
     Processes and Services
     Data Guard Protection Modes
     Data Guard Role Transitions
     Data Guard Broker Architecture
     Data Guard features across versions
     Data Guard Setup
Why undertake Disaster Recovery?


     Disaster can strike at any time
     Unprepared organizations can loose
     all the critical data.
     Even prepared companies can suffer
     financial loss during system down time.
     Disasters can be natural calamities or
     man-made problems
Origin …

    Impact of Disasters
       Customers across the globe will be effected


    High Availability Challenges
       Down time -- unplanned or planned
       Setup and Maintenance cost.
       Identifying the Disaster Recovery Site (DR Site)
Why Data Guard ?
  Prior to Data Guard:
           Standby database
  What is Standby database?
    A standby database is a database replica created from a backup of
    a primary database. By applying archived redo logs from the primary
    database to the standby database, you can keep the two databases
    synchronized
  Used for :
         Disaster protection
         Protection against data corruption
         Supplemental reporting
  Data guard is one of the most effective solutions available today in
    terms of High Availability. Why?
Before Data guard…



 Oracle Data Guard ensures high availability, data protection,
   and disaster recovery for enterprise data. Data Guard
   provides a comprehensive set of services that create,
   maintain, manage, and monitor one or more standby
   databases to enable production Oracle databases to survive
   disasters and data corruptions.”
Pre-requisites:

    Same Oracle Enterprise Edition must be installed.
    primary database must run in ARCHIVELOG mode.
    Hardware and Operating System architecture must be same.
    Primary and Standby must have its own control file
    Can be configured on the same or different systems.
    Turn on FORCE LOGGING at the primary.
    SYSDBA privileges to user accounts.
Data Guard Benefits

    Disaster recovery, data protection, and high availability
    Complete data protection
    Efficient use of system resources
    Flexibility in data protection to balance availability against
     performance requirements
    Automatic gap detection and resolution
    Centralized and simple management
    Integration with Oracle Database (no separate installation)
    Automatic role transitions
Processes Involved in the Architecture

 Below are the main processes in DG configuration:
    1) Logwriter (LGWr) Process
    2) Archiver (ARCH) Process
    3) Logwriter Network Server (LNS)
    4) Fetch Archive Logs (FAL) for Client –Server mechanism
    5) Remote File Server (RFS)
    6) Managed Recovery Process (MRP) for Physical standby
    7) Logical Standby Process (LSP) for Logical Standby

 If Data Guard Broker is enabled :
    8) Data Guard Broker Monitor (DMON) process
DataGuard Architecture
Redo log Data flow

 Flow of Redo Data from Primary to Standby Database
Apply Services At High Level

    Data Guard comprises of two parts
      Redo Apply – For physical standby
      SQL Apply - for logical standby
    The Physical and logical standby databases utilize the same
     redo transport and role management services, only apply
     process is different.
    Either can be used to offload query and reporting from the
     primary database. Either can be used to execute a rolling
     database upgrade
    All standby databases are first created as physical standby
     databases during the standby database instantiation process.
     Several additional steps are required to convert a physical
     standby database to a logical standby database.
Redo Apply

   A physical standby database applies redo data received from
   the primary using Oracle media recovery.
     The Redo Apply uses a specialized process, called the
      Managed Recovery Process.
     As the RFS process is writing redo data to Standby Redo
      Logs (SRLs), MRP reads the redo data and applies it to
      the physical standby database.
     MRP is started on the physical standby database by
      mounting the database and using the following command:
     SQL> alter database recover managed standby database
      using current logfile disconnect from session;
Redo Apply

   MRP may also transparently switch to reading from a
   standby archived log if the SRL is archived before MRP can
   complete reading of the.
SQL Apply

 SQL Apply uses a collection of background processes that
   perform the task of applying changes from the primary
   database to the logical standby database.
Types of Dataguards: Physical Standby
     Physical standby
       Provides a physically identical copy of the primary
       database,
       Identical to the primary database on a block-for-block
       basis.
       The database schema, including indexes, are the same.

       Synchronized with the primary database, through Redo
       Apply.
Data guard :Physical Standby Benefits
 Benefits:
  Disaster recovery and high availability

    Enables a robust and efficient disaster recovery and high
    availability solution
  Data protection

    Ensures no data loss, even in the face of unforeseen disasters.

    Supports all data types, and all DDL and DML operations

  Reduction in primary database workload

  Oracle Recovery Manager (RMAN) can use to off-load backups from
   the primary database saving valuable CPU and I/O cycles.
  Performance

     The Redo Apply technology applies changes using low-level
    recovery mechanisms and is most efficient method for applying
    high volumes of redo.
Types of Dataguard :Logical Standby
     Logical standby
       Contains same logical information

       physical organization and structure of the data can be different

       Synchronized with the primary database, through SQL Apply

       Can be used for queries and reporting at any time.
Logical Standby benefits

     Benefits:
     Along with disaster recovery, high availability, and data
      protection;
     Efficient use of standby hardware resources
        Additional indexes and materialized views can be created to
           improve query performance and suit specific business
           requirements.
     Reduction in primary database workload
Services Involved:
  •Log Transport Services
      Transmit redo data from the primary system to the standby
      systems in the configuration
      Enforce the database protection modes

  •Log Apply Services

      Automatically apply archived redo logs on the standby
      database
      Maintains transactional synchronization with the primary
      database
      Allows transitionally consistent read-only access to the data.

       Redo Apply for Physical standby.

      SQL Apply for Logical stand by.

    •Role Management Services

      An Oracle database operates in one of two roles: primary or
      standby
      Achieved by Switch over and Fail over operations.
Maximum Availability Architecture
Protection Modes
  There are Three protection modes
      Maximum Availability
      Maximize Protection
      Maximize Performance


  There are 3 ways of shipping redo data to a physical standby:
      LGWR SYNC

      LGWR ASYNC

      ARCH
Maximum Protection Mode

     This mode ensures that zero data loss occurs if a primary
      fails. The default is Maximum Performance.
     In case if standby unavailable then processing stops at
      primary. This the highest level of protection
     Maximum protection configuration - LGWR SYNC, SRLs

       SQL> ALTER DATABASE SET STANDBY TO MAXIMIZE
       PROTECTION;
Maximum Availability Mode

      This mode provides highest level of data protection with
       out compromising the availability of primary database
      If last standby is unavailable, processing continues at
       primary. As long as network stys up - Zero Data Loss
      Maximum availability configuration - LGWR SYNC, do
       not need SRLs

        SQL> ALTER DATABASE SET STANDBY TO
           MAXIMIZE AVAILABILITY
Maximum Performance Mode

     This mode provides the highest level of data protection that
      is possible without affection the performance of a primary
      database Highest level of performance
     This mode has least impact on system and protects from
      failure of any single component
     Maximum performance configuration - LGWR ASYNC, or
      ARCH

      SQL> ALTER DATABASE SET STANDBY TO MAXIMIZE
      PERFORMANCE;
Role Transitions:


     A database operates in one of the following mutually exclusive
      roles: primary or standby.
     Data Guard enables you to change these roles dynamically by
      issuing the SQL statements , or by using either of the Data
      Guard broker's interfaces.
      Oracle Data Guard supports the following role transitions:
        Switch over

        Failover
Switchover

    Allows the primary database to switch roles with one of its
     standby databases.
    There is no data loss during a switchover.
    After a switchover, each database continues to participate in
     the Data Guard configuration with its new role.
DataGuard Config Before Switchover
DataGuard Config AfterSwitchover
Failover


     A failover is typically used only when the primary database
      becomes unavailable, and there is no possibility of restoring it
      to service within a reasonable period of time.

     The specific actions performed during a failover vary based on
      whether a logical or a physical standby database is involved in
      the failover, the state of the Data Guard configuration at the
      time of the failover, and on the specific SQL statements used
      to initiate the failover
Failover to a Standby Database
Data guard Broker:
      The Data Guard broker is a distributed management
       framework that automates and centralizes the creation,
       maintenance, and monitoring of Data Guard configurations
      Can be administered either from Oracle Enterprise Manager
       or Broker’s CLI (DGMGRL)
      List of operations that Broker automates :
          Creating and Enabling DG configurations – both Primary
            and Physical/Logical
          Managing DG configuration from any site.

          Implementing Switchover and Failover operations
DG Broker Architecture:
Some Data Guard Features
across versions 9i,10g and
11g
DG features in Oracle 9.1:
    9i : (9.1)
     Oracle 8i Standby renamed as Oracle 9i Data Guard

     Oracle9i Data Guard broker

     No data loss

     Database Switch over

     Archive gaps automatically detected

     Background managed recovery mode.

     Standby redo logs.
Enhancements in 9.2:
   9i : (9.2)
      Logical Standby Database

      Data protection modes (Max
       Protection/Availability/Performance)

      Cascading Redo Log Destinations

      Data Guard Broker
        Supports up to 9 Physical and Logical Standby databases
        For Failover and Switchover operations


      New Key words for REMOTE_ARCHIVE_ENABLE
       (Send/Receive)
Data guard Enhancements in 10g :
      Fast –start Failover

      Logical standby

      LGWR ASYNC Redo Transport Enhancement

      Real Time Apply

      Rolling Upgrade
Dataguard Enhancements in 11g :
      Improved Data Protection

      High Availability

      Manageability

      Increased ROI
Improved Data Protection

       Faster redo transport

     Advanced Compression
    log_archive_dest= ‘service=dbname ASYNC
   COMPRESSION= ENABLE’

       Redo Compression
       edit the broker property Redo Compression=Enable

       Lost–Write Protection
Higher Availability:
       Faster Redo apply and SQL apply

       Faster failover and switch over

       Enhanced Fast -start failover

       Transient logical standby

       NEW GC HA console
Manageability:
       SQL Apply –more automation

       Better RMAN integration

       Better Security

       Mixed Windows/linux

       Enhanced DG Broker
Increased ROI
      snapshot standby

      Active Data guard

      Enhanced Rolling upgrade

      Real –time query

      Fast incremental backup
Snapshot Standby:
Active Data guard




        Offload readonly queries to physical standby
        Offload increamental backups to physical standby
Rolling Database Upgrades
      The Rolling upgrade process involves upgrading the
       logical standby database to the next release
      The patch set upgrade can be performed with near
       zero database downtime.
Setup Overview :
   Step 1:   Prepare the Primary for Standby
   Step 2:   Configure Primary parameters
   Step 3:   Configure Primary listener and tnsnames
   Step 4:   Copy the necessary files and create Standby controlfile
   Step 5:   Configure the Standby Parameters
   Step 6:   Configure Standby listener and tnsnames
   Step 7:   Startup the Standby Site and Apply redo
Primary Database Req for DataGuard
 FORCE LOGGING must be enabled:
   SQL> Select name, database_role from v$database;
   SQL> select force_logging from v$database;
   SQL> alter database force logging;

 Database must be in ARCHIVELOG mode and automatic archiving
   must be enabled:
   SQL> archive log list
Configure Primary parameters
 control_files='/oradata/orclDB/control01.ctl,
         ‘/oradata/orclDB/control02.ctl' '

 log_archive_config='DG_CONFIG=(orclDB,orclstd)' scope=both;

 log_archive_dest_1='LOCATION=/oradata/orclDB/arch
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)‘

 log_archive_dest_2='SERVICE=orclstd
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR
    ASYNC REOPEN=10'
Configure Primary parameters
 control_files='/oradata/orclDB/control01.ctl,
         ‘/oradata/orclDB/control02.ctl' '

 log_archive_config='DG_CONFIG=(orclDB,orclstd)' scope=both;

 log_archive_dest_1='LOCATION=/oradata/orclDB/arch
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)‘

 log_archive_dest_2='SERVICE=orclstd
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR
    ASYNC REOPEN=10'
Configure Primary Listener.ora
  SID_LIST_LISTENER =
   (SID_LIST =
        (SID_DESC =
       (GLOBAL_DBNAME = orclDB.aligntech.com)
       (ORACLE_HOME = /oracle/v10204)
       (SID_NAME = orclDB)
     )
    )
Configure Primary tnsnames.ora
 orclDB = (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT =
    1521))
   (CONNECT_DATA = (SERVER = DEDICATED)
     (SERVICE_NAME = orclDB.aligntech.com) ) )

 orclstd = (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT =
    1521))
   (CONNECT_DATA =
     (SERVER = DEDICATED) (SERVICE_NAME =
    orclDB.aligntech.com) ) )
Create Standby Controlfile
  Shutdown the Primary database and copy the necessary files to
    standby site

  SQL> STATUP MOUNT

  SQL>ALTER DATABASE CREATE STANDBY CONTROLFILE AS
    '/oradata/orclDB/stdby01.ctl';

  Copy the standby control file to standby site
Configure Standby parameters
    control_files='/oradata/orclDB/stdby01.ctl,
    /oradata/orclDB/stdby02.ctl'

    log_archive_config='DG_CONFIG=(orclstd,orclDB)‘

    log_archive_dest_1='LOCATION=/oradata/orclDBt/arch
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)’

    log_archive_dest_2='SERVICE=orclDB
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR
    ASYNC REOPEN=10'
Configure Standby parameters
    log_archive_dest_state_1='enable'
    log_archive_dest_state_2='enable'

    FAL_CLIENT='orclstd'
    FAL_SERVER='orclDB'

    standby_archive_dest='/oradata/orclDB/arch'
    standby_file_management='auto'
    remote_login_passwordfile='EXCLUSIVE'
Configure Standby Listener.ora
  SID_LIST_LISTENER =
   (SID_LIST =
       (SID_DESC =
         (GLOBAL_DBNAME = orclDB.aligntech.com)
         (ORACLE_HOME = /oracle/v10204)
         (SID_NAME = orclDB)
     )
   )
Configure Standby tnsnames.ora
 orclDB = (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT =
    1521))
   (CONNECT_DATA = (SERVER = DEDICATED)
     (SERVICE_NAME = orclDB.aligntech.com) ) )

 orclstd = (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT =
    1521))
   (CONNECT_DATA = (SERVER = DEDICATED)
     (SERVICE_NAME = orclDB.aligntech.com) )
Standby tnsnames.ora
 orclDB = (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT =
    1521))
   (CONNECT_DATA = (SERVER = DEDICATED)
     (SERVICE_NAME = orclDB.aligntech.com) ) )

 orclstd = (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT =
    1521))
   (CONNECT_DATA = (SERVER = DEDICATED)
     (SERVICE_NAME = orclDB.aligntech.com) )
Mount Standby Database and Apply redo
 Keep the database in Standby mode
     SQL>STARTUP MOUNT;

 Start Redo Apply
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY
    DATABASE DISCONNECT FROM SESSION;

 The DISCONNECT FROM SESSION option used to run
   background session to apply Redo
Some important Dictionary Views
 – V$ARCHIVE_DEST_STATUS
 – V$ARCHIVE_GAP
 – V$MANAGED_STANDBY
 – V$STANDBY_LOG
 – DBA_LOGSTDBY_EVENTS
 – DBA_LOGSTDBY_LOG
 – DBA_LOGSTDBY_NOT_UNIQUE
 – DBA_LOGSTDBY_PARAMETERS
 – DBA_LOGSTDBY_PROGRESS
 – DBA_LOGSTDBY_SKIP
 – DBA_LOGSTDBY_SKIP_TRANSACTION
 – DBA_LOGSTDBY_UNSUPPORTED
 – V$DATAGUARD_STATUS
 – V$LOGSTDBY
 – V$LOGSTDBY_STATS
Thank you.

More Related Content

What's hot

Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on ExadataAnil Nair
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsAnil Nair
 
Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerZohar Elkayam
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slidesMohamed Farouk
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningBobby Curtis
 
Presentation upgrade, migrate & consolidate to oracle database 12c &amp...
Presentation   upgrade, migrate & consolidate to oracle database 12c &amp...Presentation   upgrade, migrate & consolidate to oracle database 12c &amp...
Presentation upgrade, migrate & consolidate to oracle database 12c &amp...solarisyougood
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slidesMohamed Farouk
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceAnil Nair
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020Anil Nair
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONMarkus Michalewicz
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewMarkus Michalewicz
 
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and AdministerOracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and AdministerAndrejs Karpovs
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuningSimon Huang
 
MAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the CloudMAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the CloudMarkus Michalewicz
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Andrejs Prokopjevs
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architectureVimlendu Kumar
 

What's hot (20)

Oracle GoldenGate
Oracle GoldenGate Oracle GoldenGate
Oracle GoldenGate
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard Broker
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
 
Presentation upgrade, migrate & consolidate to oracle database 12c &amp...
Presentation   upgrade, migrate & consolidate to oracle database 12c &amp...Presentation   upgrade, migrate & consolidate to oracle database 12c &amp...
Presentation upgrade, migrate & consolidate to oracle database 12c &amp...
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
 
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and AdministerOracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
Oracle E-Business Suite R12.2.5 on Database 12c: Install, Patch and Administer
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
 
MAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the CloudMAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the Cloud
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 

Similar to Data Guard Architecture & Setup

Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuardBorsaniya Vaibhav
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2Mario Redón Luz
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to ZZohar Elkayam
 
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Jade Global
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Jade Global
 
DataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineDataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineNavneet Upneja
 
Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databasemabessisindu
 
Oracle Data Guard for Beginners
Oracle Data Guard for BeginnersOracle Data Guard for Beginners
Oracle Data Guard for BeginnersPini Dibask
 
IOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - Data Guard for BeginnersIOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - Data Guard for BeginnersPini Dibask
 
Golden gate disaster recovery  tips
Golden gate disaster recovery  tipsGolden gate disaster recovery  tips
Golden gate disaster recovery  tipskolleru
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1Ram Naani
 
twp-oracledatabasebackupservice-2183633
twp-oracledatabasebackupservice-2183633twp-oracledatabasebackupservice-2183633
twp-oracledatabasebackupservice-2183633Arush Jain
 
Migration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication TechnologyMigration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication TechnologyDonna Guazzaloca-Zehl
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationYudi Herdiana
 
Využijte svou Oracle databázi naplno
Využijte svou Oracle databázi naplnoVyužijte svou Oracle databázi naplno
Využijte svou Oracle databázi naplnoMarketingArrowECS_CZ
 
D17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emD17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emMoeen_uddin
 

Similar to Data Guard Architecture & Setup (20)

Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
 
Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
 
Data guard oracle
Data guard oracleData guard oracle
Data guard oracle
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to Z
 
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
 
DataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineDataGuard - Oracle's Time Machine
DataGuard - Oracle's Time Machine
 
dgintro (1).ppt
dgintro (1).pptdgintro (1).ppt
dgintro (1).ppt
 
Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
 
Oracle Data Guard for Beginners
Oracle Data Guard for BeginnersOracle Data Guard for Beginners
Oracle Data Guard for Beginners
 
IOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - Data Guard for BeginnersIOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - Data Guard for Beginners
 
Golden gate disaster recovery  tips
Golden gate disaster recovery  tipsGolden gate disaster recovery  tips
Golden gate disaster recovery  tips
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
twp-oracledatabasebackupservice-2183633
twp-oracledatabasebackupservice-2183633twp-oracledatabasebackupservice-2183633
twp-oracledatabasebackupservice-2183633
 
Migration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication TechnologyMigration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication Technology
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
Využijte svou Oracle databázi naplno
Využijte svou Oracle databázi naplnoVyužijte svou Oracle databázi naplno
Využijte svou Oracle databázi naplno
 
D17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emD17316 gc20 l03_broker_em
D17316 gc20 l03_broker_em
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
 

More from Satishbabu Gunukula

Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxSatishbabu Gunukula
 
Oracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxOracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxSatishbabu Gunukula
 
Cloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxCloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxSatishbabu Gunukula
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)Satishbabu Gunukula
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsSatishbabu Gunukula
 
One database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cOne database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cSatishbabu Gunukula
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)Satishbabu Gunukula
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeSatishbabu Gunukula
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesSatishbabu Gunukula
 
Sql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSatishbabu Gunukula
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACSatishbabu Gunukula
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application clusterSatishbabu Gunukula
 

More from Satishbabu Gunukula (15)

Oracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptxOracle Database 23c Security New Features.pptx
Oracle Database 23c Security New Features.pptx
 
Oracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptxOracle Data Pump Enhancements in Oracle 21c.pptx
Oracle Data Pump Enhancements in Oracle 21c.pptx
 
Cloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptxCloning an Oracle Home or Oracle Install.pptx
Cloning an Oracle Home or Oracle Install.pptx
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methods
 
One database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12cOne database solution for your enterprise business - Oracle 12c
One database solution for your enterprise business - Oracle 12c
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Why virtual private catalog?
Why virtual private catalog?Why virtual private catalog?
Why virtual private catalog?
 
Install oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle homeInstall oracle binaris or clonse oracle home
Install oracle binaris or clonse oracle home
 
Oracle golden gate 12c New Features
Oracle golden gate 12c New FeaturesOracle golden gate 12c New Features
Oracle golden gate 12c New Features
 
Sql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paperSql server mission_critical_performance_tdm_white_paper
Sql server mission_critical_performance_tdm_white_paper
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 

Recently uploaded

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 

Recently uploaded (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 

Data Guard Architecture & Setup

  • 1. Oracle Data Guard Presented by Satishbabu Gunukula 12+ Years of Experience in Oracle, SQLServer Database Technologies Oracle Certified Professional Oracle 8i,9i,10g Oracle Certified Expert Oracle 10g RAC  http://www.oracleracexpert.com
  • 2. Agenda  Data Guard and its benefits?  Data Guard Architecture  Types of Data guards and Benefits  Advantages with different types of Data guards  Processes and Services  Data Guard Protection Modes  Data Guard Role Transitions  Data Guard Broker Architecture  Data Guard features across versions  Data Guard Setup
  • 3. Why undertake Disaster Recovery?  Disaster can strike at any time  Unprepared organizations can loose all the critical data.  Even prepared companies can suffer financial loss during system down time.  Disasters can be natural calamities or man-made problems
  • 4. Origin …  Impact of Disasters  Customers across the globe will be effected  High Availability Challenges  Down time -- unplanned or planned  Setup and Maintenance cost.  Identifying the Disaster Recovery Site (DR Site)
  • 5. Why Data Guard ? Prior to Data Guard:  Standby database What is Standby database? A standby database is a database replica created from a backup of a primary database. By applying archived redo logs from the primary database to the standby database, you can keep the two databases synchronized Used for :  Disaster protection  Protection against data corruption  Supplemental reporting Data guard is one of the most effective solutions available today in terms of High Availability. Why?
  • 6. Before Data guard… Oracle Data Guard ensures high availability, data protection, and disaster recovery for enterprise data. Data Guard provides a comprehensive set of services that create, maintain, manage, and monitor one or more standby databases to enable production Oracle databases to survive disasters and data corruptions.”
  • 7. Pre-requisites:  Same Oracle Enterprise Edition must be installed.  primary database must run in ARCHIVELOG mode.  Hardware and Operating System architecture must be same.  Primary and Standby must have its own control file  Can be configured on the same or different systems.  Turn on FORCE LOGGING at the primary.  SYSDBA privileges to user accounts.
  • 8. Data Guard Benefits  Disaster recovery, data protection, and high availability  Complete data protection  Efficient use of system resources  Flexibility in data protection to balance availability against performance requirements  Automatic gap detection and resolution  Centralized and simple management  Integration with Oracle Database (no separate installation)  Automatic role transitions
  • 9. Processes Involved in the Architecture Below are the main processes in DG configuration: 1) Logwriter (LGWr) Process 2) Archiver (ARCH) Process 3) Logwriter Network Server (LNS) 4) Fetch Archive Logs (FAL) for Client –Server mechanism 5) Remote File Server (RFS) 6) Managed Recovery Process (MRP) for Physical standby 7) Logical Standby Process (LSP) for Logical Standby If Data Guard Broker is enabled : 8) Data Guard Broker Monitor (DMON) process
  • 11. Redo log Data flow Flow of Redo Data from Primary to Standby Database
  • 12. Apply Services At High Level  Data Guard comprises of two parts  Redo Apply – For physical standby  SQL Apply - for logical standby  The Physical and logical standby databases utilize the same redo transport and role management services, only apply process is different.  Either can be used to offload query and reporting from the primary database. Either can be used to execute a rolling database upgrade  All standby databases are first created as physical standby databases during the standby database instantiation process. Several additional steps are required to convert a physical standby database to a logical standby database.
  • 13. Redo Apply A physical standby database applies redo data received from the primary using Oracle media recovery.  The Redo Apply uses a specialized process, called the Managed Recovery Process.  As the RFS process is writing redo data to Standby Redo Logs (SRLs), MRP reads the redo data and applies it to the physical standby database.  MRP is started on the physical standby database by mounting the database and using the following command:  SQL> alter database recover managed standby database using current logfile disconnect from session;
  • 14. Redo Apply MRP may also transparently switch to reading from a standby archived log if the SRL is archived before MRP can complete reading of the.
  • 15. SQL Apply SQL Apply uses a collection of background processes that perform the task of applying changes from the primary database to the logical standby database.
  • 16. Types of Dataguards: Physical Standby  Physical standby Provides a physically identical copy of the primary database, Identical to the primary database on a block-for-block basis. The database schema, including indexes, are the same. Synchronized with the primary database, through Redo Apply.
  • 17. Data guard :Physical Standby Benefits Benefits:  Disaster recovery and high availability Enables a robust and efficient disaster recovery and high availability solution  Data protection Ensures no data loss, even in the face of unforeseen disasters. Supports all data types, and all DDL and DML operations  Reduction in primary database workload  Oracle Recovery Manager (RMAN) can use to off-load backups from the primary database saving valuable CPU and I/O cycles.  Performance  The Redo Apply technology applies changes using low-level recovery mechanisms and is most efficient method for applying high volumes of redo.
  • 18. Types of Dataguard :Logical Standby  Logical standby Contains same logical information physical organization and structure of the data can be different Synchronized with the primary database, through SQL Apply Can be used for queries and reporting at any time.
  • 19. Logical Standby benefits  Benefits:  Along with disaster recovery, high availability, and data protection;  Efficient use of standby hardware resources  Additional indexes and materialized views can be created to improve query performance and suit specific business requirements.  Reduction in primary database workload
  • 20. Services Involved: •Log Transport Services Transmit redo data from the primary system to the standby systems in the configuration Enforce the database protection modes •Log Apply Services Automatically apply archived redo logs on the standby database Maintains transactional synchronization with the primary database Allows transitionally consistent read-only access to the data.  Redo Apply for Physical standby. SQL Apply for Logical stand by. •Role Management Services An Oracle database operates in one of two roles: primary or standby Achieved by Switch over and Fail over operations.
  • 22. Protection Modes There are Three protection modes  Maximum Availability  Maximize Protection  Maximize Performance There are 3 ways of shipping redo data to a physical standby:  LGWR SYNC  LGWR ASYNC  ARCH
  • 23. Maximum Protection Mode  This mode ensures that zero data loss occurs if a primary fails. The default is Maximum Performance.  In case if standby unavailable then processing stops at primary. This the highest level of protection  Maximum protection configuration - LGWR SYNC, SRLs SQL> ALTER DATABASE SET STANDBY TO MAXIMIZE PROTECTION;
  • 24. Maximum Availability Mode  This mode provides highest level of data protection with out compromising the availability of primary database  If last standby is unavailable, processing continues at primary. As long as network stys up - Zero Data Loss  Maximum availability configuration - LGWR SYNC, do not need SRLs SQL> ALTER DATABASE SET STANDBY TO MAXIMIZE AVAILABILITY
  • 25. Maximum Performance Mode  This mode provides the highest level of data protection that is possible without affection the performance of a primary database Highest level of performance  This mode has least impact on system and protects from failure of any single component  Maximum performance configuration - LGWR ASYNC, or ARCH SQL> ALTER DATABASE SET STANDBY TO MAXIMIZE PERFORMANCE;
  • 26. Role Transitions:  A database operates in one of the following mutually exclusive roles: primary or standby.  Data Guard enables you to change these roles dynamically by issuing the SQL statements , or by using either of the Data Guard broker's interfaces.  Oracle Data Guard supports the following role transitions:  Switch over  Failover
  • 27. Switchover  Allows the primary database to switch roles with one of its standby databases.  There is no data loss during a switchover.  After a switchover, each database continues to participate in the Data Guard configuration with its new role.
  • 30. Failover  A failover is typically used only when the primary database becomes unavailable, and there is no possibility of restoring it to service within a reasonable period of time.  The specific actions performed during a failover vary based on whether a logical or a physical standby database is involved in the failover, the state of the Data Guard configuration at the time of the failover, and on the specific SQL statements used to initiate the failover
  • 31. Failover to a Standby Database
  • 32. Data guard Broker:  The Data Guard broker is a distributed management framework that automates and centralizes the creation, maintenance, and monitoring of Data Guard configurations  Can be administered either from Oracle Enterprise Manager or Broker’s CLI (DGMGRL)  List of operations that Broker automates :  Creating and Enabling DG configurations – both Primary and Physical/Logical  Managing DG configuration from any site.  Implementing Switchover and Failover operations
  • 34. Some Data Guard Features across versions 9i,10g and 11g
  • 35. DG features in Oracle 9.1: 9i : (9.1)  Oracle 8i Standby renamed as Oracle 9i Data Guard  Oracle9i Data Guard broker  No data loss  Database Switch over  Archive gaps automatically detected  Background managed recovery mode.  Standby redo logs.
  • 36. Enhancements in 9.2: 9i : (9.2)  Logical Standby Database  Data protection modes (Max Protection/Availability/Performance)  Cascading Redo Log Destinations  Data Guard Broker  Supports up to 9 Physical and Logical Standby databases  For Failover and Switchover operations  New Key words for REMOTE_ARCHIVE_ENABLE (Send/Receive)
  • 37. Data guard Enhancements in 10g :  Fast –start Failover  Logical standby  LGWR ASYNC Redo Transport Enhancement  Real Time Apply  Rolling Upgrade
  • 38. Dataguard Enhancements in 11g :  Improved Data Protection  High Availability  Manageability  Increased ROI
  • 39. Improved Data Protection  Faster redo transport  Advanced Compression log_archive_dest= ‘service=dbname ASYNC COMPRESSION= ENABLE’  Redo Compression edit the broker property Redo Compression=Enable  Lost–Write Protection
  • 40. Higher Availability:  Faster Redo apply and SQL apply  Faster failover and switch over  Enhanced Fast -start failover  Transient logical standby  NEW GC HA console
  • 41. Manageability:  SQL Apply –more automation  Better RMAN integration  Better Security  Mixed Windows/linux  Enhanced DG Broker
  • 42. Increased ROI  snapshot standby  Active Data guard  Enhanced Rolling upgrade  Real –time query  Fast incremental backup
  • 44. Active Data guard  Offload readonly queries to physical standby  Offload increamental backups to physical standby
  • 45. Rolling Database Upgrades  The Rolling upgrade process involves upgrading the logical standby database to the next release  The patch set upgrade can be performed with near zero database downtime.
  • 46. Setup Overview : Step 1: Prepare the Primary for Standby Step 2: Configure Primary parameters Step 3: Configure Primary listener and tnsnames Step 4: Copy the necessary files and create Standby controlfile Step 5: Configure the Standby Parameters Step 6: Configure Standby listener and tnsnames Step 7: Startup the Standby Site and Apply redo
  • 47. Primary Database Req for DataGuard FORCE LOGGING must be enabled: SQL> Select name, database_role from v$database; SQL> select force_logging from v$database; SQL> alter database force logging; Database must be in ARCHIVELOG mode and automatic archiving must be enabled: SQL> archive log list
  • 48. Configure Primary parameters control_files='/oradata/orclDB/control01.ctl, ‘/oradata/orclDB/control02.ctl' ' log_archive_config='DG_CONFIG=(orclDB,orclstd)' scope=both; log_archive_dest_1='LOCATION=/oradata/orclDB/arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES)‘ log_archive_dest_2='SERVICE=orclstd VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR ASYNC REOPEN=10'
  • 49. Configure Primary parameters control_files='/oradata/orclDB/control01.ctl, ‘/oradata/orclDB/control02.ctl' ' log_archive_config='DG_CONFIG=(orclDB,orclstd)' scope=both; log_archive_dest_1='LOCATION=/oradata/orclDB/arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES)‘ log_archive_dest_2='SERVICE=orclstd VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR ASYNC REOPEN=10'
  • 50. Configure Primary Listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orclDB.aligntech.com) (ORACLE_HOME = /oracle/v10204) (SID_NAME = orclDB) ) )
  • 51. Configure Primary tnsnames.ora orclDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclDB.aligntech.com) ) ) orclstd = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclDB.aligntech.com) ) )
  • 52. Create Standby Controlfile Shutdown the Primary database and copy the necessary files to standby site SQL> STATUP MOUNT SQL>ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/oradata/orclDB/stdby01.ctl'; Copy the standby control file to standby site
  • 53. Configure Standby parameters control_files='/oradata/orclDB/stdby01.ctl, /oradata/orclDB/stdby02.ctl' log_archive_config='DG_CONFIG=(orclstd,orclDB)‘ log_archive_dest_1='LOCATION=/oradata/orclDBt/arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES)’ log_archive_dest_2='SERVICE=orclDB VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR ASYNC REOPEN=10'
  • 54. Configure Standby parameters log_archive_dest_state_1='enable' log_archive_dest_state_2='enable' FAL_CLIENT='orclstd' FAL_SERVER='orclDB' standby_archive_dest='/oradata/orclDB/arch' standby_file_management='auto' remote_login_passwordfile='EXCLUSIVE'
  • 55. Configure Standby Listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orclDB.aligntech.com) (ORACLE_HOME = /oracle/v10204) (SID_NAME = orclDB) ) )
  • 56. Configure Standby tnsnames.ora orclDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclDB.aligntech.com) ) ) orclstd = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclDB.aligntech.com) )
  • 57. Standby tnsnames.ora orclDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclDB.aligntech.com) ) ) orclstd = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orclDB.aligntech.com) )
  • 58. Mount Standby Database and Apply redo Keep the database in Standby mode SQL>STARTUP MOUNT; Start Redo Apply SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; The DISCONNECT FROM SESSION option used to run background session to apply Redo
  • 59. Some important Dictionary Views – V$ARCHIVE_DEST_STATUS – V$ARCHIVE_GAP – V$MANAGED_STANDBY – V$STANDBY_LOG – DBA_LOGSTDBY_EVENTS – DBA_LOGSTDBY_LOG – DBA_LOGSTDBY_NOT_UNIQUE – DBA_LOGSTDBY_PARAMETERS – DBA_LOGSTDBY_PROGRESS – DBA_LOGSTDBY_SKIP – DBA_LOGSTDBY_SKIP_TRANSACTION – DBA_LOGSTDBY_UNSUPPORTED – V$DATAGUARD_STATUS – V$LOGSTDBY – V$LOGSTDBY_STATS
  • 60.