SlideShare une entreprise Scribd logo
1  sur  28
3
Using Data Guard Broker
and Enterprise Manager




  Copyright © 2006, Oracle. All rights reserved.
Objectives


After completing this lesson, you should be able to do the
following:
 • Describe the Data Guard broker architecture
 • Describe the Data Guard broker components
 • Explain the benefits of the Data Guard broker
 • Explain Data Guard broker configurations
 • Use Enterprise Manager to manage your Data Guard
    configuration
 • Invoke DGMGRL to manage your Data Guard
    configuration




3-2               Copyright © 2006, Oracle. All rights reserved.
Features of Data Guard Broker


 • The Data Guard broker is a distributed management
   framework.
 • The broker automates and centralizes the creation,
   maintenance, and monitoring of Data Guard
   configurations.
 • With the broker, you can perform all management
   operations locally or remotely through easy-to-use
   interfaces:
      – Oracle Enterprise Manager 10g Grid Control
      – A command-line interface: DGMGRL




3-3                 Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker: Components


 • Client-side:
      – Oracle Enterprise Manager 10g Grid Control
      – DGMGRL (command-line interface)
 • Server-side: Data Guard monitor
      – DMON process
      – Configuration files




3-4                 Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker: Configurations


The most common configuration is a primary database at
one location and a standby database at another location.


          Chicago                                                    Boston



                                    Oracle Net


          Primary                                                    Standby
           site                                                        site




3-5                 Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker: Management Model

                 Data Guard Broker Configuration


                                                      Standby database
      Broker-controlled                             Standby database
         databases                                Standby database
                                                Standby database
                                             Standby database
                                           Standby database
                                         Standby database
      Primary database                 Standby database
                                     Standby database

          Instances
                                            Instances




3-6                   Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker: Architecture

       Graphical user interface
                  or
       command-line interface
       Data Guard Configuration                                          Standby site 9
                                                                        Standby site 2
                  Primary site                                         Standby site 1
                        Configuration                    Configuration
                            files                            files     Standby
                    Archived                                           database
                    redo logs
       Primary                                                                          Log
       database                                                                        apply
                                                                          Standby     services
        Online                   DMON                        DMON        redo logs
      redo logs                                                                      Archived
                                                                                     redo logs
                 Log                          Oracle
              transport                        Net
               services


3-7                         Copyright © 2006, Oracle. All rights reserved.
Life Cycle of a Broker Configuration

                              Create
                           configuration

                              Enable
                           configuration



      Make state or                                     Update database
      role changes                                        properties



                        Monitor and tune
                         configuration


3-8              Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker: Requirements


 • Enterprise Edition of Oracle Database 10g
 • Single-instance or multi-instance environment
 • COMPATIBLE must be set to 9.2.0.1.0 or higher for
   primary and standby databases.
 • Oracle Net network files must be configured for
   databases that you add to the configuration.
 • LOCAL_LISTENER on each instance must resolve to an
   address that is reachable by all members.
 • GLOBAL_DBNAME attribute must be set to a
   concatenation of:
   db_unique_name_DGMGRL.db_domain



3-9             Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker: Requirements


  • DG_BROKER_START = TRUE
  • The primary database must be in ARCHIVELOG mode.
  • All databases must be in MOUNT or OPEN mode.
  • Configure DG_BROKER_CONFIG_FILEn for any RAC
    databases.
  • START_OPTIONS for any RAC databases must be set to
    MOUNT in the Oracle Cluster Repository (OCR).




3 - 10           Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker and the SPFILE


  • You must use a server parameter file (SPFILE) for
    initialization parameters.
  • Using the SPFILE enables the Data Guard broker to
    keep its configuration file and the database SPFILE
    consistent.
  • If you use the broker, use Enterprise Manager or
    DGMGRL to update database parameter values.




3 - 11            Copyright © 2006, Oracle. All rights reserved.
3 - 12   Copyright © 2006, Oracle. All rights reserved.
Data Guard Monitor: DMON Process


  • Server-side background process
  • Part of each database instance in the configuration
  • Created when you start the broker
  • Performs requested functions and monitors the
    resource
  • Communicates with other DMON processes in the
    configuration
  • Updates the configuration file




3 - 13             Copyright © 2006, Oracle. All rights reserved.
Data Guard Monitor: Configuration File


  • Automatically created and named using a default path
    name and file name when the broker is started
  • Override default path name and file name by setting
    DG_BROKER_CONFIG_FILEn .
  • Two files at each managed site
  • Managed automatically by the DMON process
  • Default names are dr1<db_unique_name>.dat and
    dr2<db_unique_name>.dat.
  • Default locations are operating system specific:
         – Default location for UNIX and Linux: ORACLE_HOME/dbs
         – Default location for Windows: ORACLE_HOMEdatabase



3 - 14                 Copyright © 2006, Oracle. All rights reserved.
Benefits of Using the Data Guard Broker


  • Enhances the high-availability, data protection, and
    disaster protection capabilities inherent in Oracle Data
    Guard by automating both configuration and
    monitoring tasks
  • Streamlines the process for any one of the standby
    databases to replace the primary database and take
    over production processing
  • Helps you logically define and create a Data Guard
    configuration consisting of a primary database and a
    standby database
  • Enables easy configuration of additional standby
    databases


3 - 15             Copyright © 2006, Oracle. All rights reserved.
Benefits of Using the Data Guard Broker


  • Provides simplified, centralized, and extended
    management
  • Automates switchover and failover to a specified
    standby database in the broker configuration
  • Automatically communicates between the databases in
    a Data Guard configuration using Oracle Net Services
  • Provides built-in validation that monitors the health of
    all the databases in the configuration




3 - 16             Copyright © 2006, Oracle. All rights reserved.
Data Guard Broker Interfaces


  • Oracle Enterprise Manager 10g Grid Control:
         – Contains wizards to simplify creating and managing
           standby databases
  • Command-line interface (CLI):
         – Started by entering DGMGRL at the command prompt
           where the Oracle server is installed
         – Enables you to control and monitor a Data Guard
           configuration from the CLI prompt or in scripts




3 - 17                 Copyright © 2006, Oracle. All rights reserved.
3 - 18   Copyright © 2006, Oracle. All rights reserved.
Using Oracle Enterprise Manager 10g
                     Grid Control




                                                     Click “Setup and Manage” to
                                                     access the Data Guard pages.




3 - 19           Copyright © 2006, Oracle. All rights reserved.
Data Guard Overview Page




3 - 20      Copyright © 2006, Oracle. All rights reserved.
Enterprise Manager Metrics and Alerts


  • Metrics: Units of measurement used to assess the
    health of your system
  • Thresholds: Boundary values against which monitored
    metric values are compared
  • Alert: Generated when a threshold is reached




3 - 21            Copyright © 2006, Oracle. All rights reserved.
Using Data Guard Metrics


 Enterprise Manager includes the following Data Guard
 metrics:
  • Data Guard Fast-Start Failover
  • Data Guard Fast-Start Failover
    Observer
  • Data Guard Performance
  • Data Guard Status




3 - 22            Copyright © 2006, Oracle. All rights reserved.
Managing Data Guard Metrics


  1.     Configure notification methods.
  2.     View the All Metrics page.
  3.     Set or change Data Guard metric thresholds.
  4.     View triggered metrics.




3 - 23                Copyright © 2006, Oracle. All rights reserved.
Benefits of Using Enterprise Manager


  • Enables you to manage your configuration using a
    familiar interface and event-management system
  • Automates and simplifies the complex operations of
    creating and managing standby databases through the
    use of wizards
  • Performs all Oracle Net Services configuration changes
    that are necessary to support redo transport services
    and log apply services
  • Provides a verify operation to ensure that redo
    transport services and log apply services are
    configured and functioning properly
  • Enables you to select a new primary database from a
    set of viable standby databases

3 - 24            Copyright © 2006, Oracle. All rights reserved.
Using the Command-Line Interface
             of the Data Guard Broker
  DGMGRL> connect sys/oracle
  Connected.
  DGMGRL> show configuration verbose

  Configuration
    Name:                EDRSR8P1_ORCL.oracle.com
    Enabled:             YES
    Protection Mode:     MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
      EDRSR8P1_ORCL - Primary database
      EDRSR8P1_SITE1 - Physical standby database
      EDRSR8P1_SITE2 - Logical standby database

  Current status for "EDRSR8P1_ORCL.oracle.com":
  SUCCESS

3 - 25           Copyright © 2006, Oracle. All rights reserved.
3 - 26   Copyright © 2006, Oracle. All rights reserved.
Summary


 In this lesson, you should have learned how to:
  • Describe the Data Guard broker management model
  • Describe the Data Guard broker architecture
  • Describe Data Guard broker components
  • Access Enterprise Manager
  • Invoke DGMGRL (the Data Guard CLI)




3 - 27           Copyright © 2006, Oracle. All rights reserved.
3 - 28   Copyright © 2006, Oracle. All rights reserved.

Contenu connexe

Tendances

Less02 installation
Less02 installationLess02 installation
Less02 installationAmit Bhalla
 
Less17 moving data
Less17 moving dataLess17 moving data
Less17 moving dataAmit Bhalla
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard Uwe Hesse
 
Less13 performance
Less13 performanceLess13 performance
Less13 performanceAmit Bhalla
 
Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard Fuad Arshad
 
MIgrating from Single Instance to RAC via Dataguard
MIgrating from Single Instance to RAC via DataguardMIgrating from Single Instance to RAC via Dataguard
MIgrating from Single Instance to RAC via DataguardFuad Arshad
 
My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)Gustavo Rene Antunez
 
Dataguard physical stand by setup
Dataguard physical stand by setupDataguard physical stand by setup
Dataguard physical stand by setupsmajeed1
 
Less09 managing undo data
Less09 managing undo dataLess09 managing undo data
Less09 managing undo dataImran Ali
 
MIgrating to RAC using Dataguard
MIgrating to RAC  using Dataguard MIgrating to RAC  using Dataguard
MIgrating to RAC using Dataguard Fuad Arshad
 
Data protection for oracle backup &amp; recovery for oracle databases
Data protection for oracle  backup &amp; recovery for oracle databasesData protection for oracle  backup &amp; recovery for oracle databases
Data protection for oracle backup &amp; recovery for oracle databasessolarisyougood
 
My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)Gustavo Rene Antunez
 
Exadata is still oracle
Exadata is still oracleExadata is still oracle
Exadata is still oracleugur candan
 
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCIDatabase Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCITammy Bednar
 
Architecting your own DBaaS in a Private Cloud with EM12c (WP)
Architecting your own DBaaS in a Private Cloud with EM12c (WP)Architecting your own DBaaS in a Private Cloud with EM12c (WP)
Architecting your own DBaaS in a Private Cloud with EM12c (WP)Gustavo Rene Antunez
 

Tendances (20)

Less02 installation
Less02 installationLess02 installation
Less02 installation
 
Less17 moving data
Less17 moving dataLess17 moving data
Less17 moving data
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard
 
Less03 db dbca
Less03 db dbcaLess03 db dbca
Less03 db dbca
 
Less13 performance
Less13 performanceLess13 performance
Less13 performance
 
Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard
 
Less08 users
Less08 usersLess08 users
Less08 users
 
Less07 storage
Less07 storageLess07 storage
Less07 storage
 
MIgrating from Single Instance to RAC via Dataguard
MIgrating from Single Instance to RAC via DataguardMIgrating from Single Instance to RAC via Dataguard
MIgrating from Single Instance to RAC via Dataguard
 
My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
 
Dataguard physical stand by setup
Dataguard physical stand by setupDataguard physical stand by setup
Dataguard physical stand by setup
 
Less09 managing undo data
Less09 managing undo dataLess09 managing undo data
Less09 managing undo data
 
Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
 
MIgrating to RAC using Dataguard
MIgrating to RAC  using Dataguard MIgrating to RAC  using Dataguard
MIgrating to RAC using Dataguard
 
Data protection for oracle backup &amp; recovery for oracle databases
Data protection for oracle  backup &amp; recovery for oracle databasesData protection for oracle  backup &amp; recovery for oracle databases
Data protection for oracle backup &amp; recovery for oracle databases
 
My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)My First 100 days with a MySQL DBMS (WP)
My First 100 days with a MySQL DBMS (WP)
 
Exadata is still oracle
Exadata is still oracleExadata is still oracle
Exadata is still oracle
 
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCIDatabase Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
 
Less10 undo
Less10 undoLess10 undo
Less10 undo
 
Architecting your own DBaaS in a Private Cloud with EM12c (WP)
Architecting your own DBaaS in a Private Cloud with EM12c (WP)Architecting your own DBaaS in a Private Cloud with EM12c (WP)
Architecting your own DBaaS in a Private Cloud with EM12c (WP)
 

En vedette

D17316 gc20 l04_phys_em
D17316 gc20 l04_phys_emD17316 gc20 l04_phys_em
D17316 gc20 l04_phys_emMoeen_uddin
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlMoeen_uddin
 
D17316 gc20 l02_architecture
D17316 gc20 l02_architectureD17316 gc20 l02_architecture
D17316 gc20 l02_architectureMoeen_uddin
 
D17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtransD17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtransMoeen_uddin
 
Active dataguard
Active dataguardActive dataguard
Active dataguardManoj Kumar
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overviewaguswahyudi09
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentationVimlendu Kumar
 
Oracle database 12c sql worshop 1 student guide vol 2
Oracle database 12c sql worshop 1 student guide vol 2Oracle database 12c sql worshop 1 student guide vol 2
Oracle database 12c sql worshop 1 student guide vol 2Otto Paiz
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overviewmoin_azeem
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Featuresxiangrong
 
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
 

En vedette (14)

D17316 gc20 l04_phys_em
D17316 gc20 l04_phys_emD17316 gc20 l04_phys_em
D17316 gc20 l04_phys_em
 
Data guard oracle
Data guard oracleData guard oracle
Data guard oracle
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
 
D17316 gc20 l02_architecture
D17316 gc20 l02_architectureD17316 gc20 l02_architecture
D17316 gc20 l02_architecture
 
D17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtransD17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtrans
 
Upgrading To 11g
Upgrading To 11gUpgrading To 11g
Upgrading To 11g
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
Oracle database 12c sql worshop 1 student guide vol 2
Oracle database 12c sql worshop 1 student guide vol 2Oracle database 12c sql worshop 1 student guide vol 2
Oracle database 12c sql worshop 1 student guide vol 2
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overview
 
Oracle Data integrator 11g (ODI) - Online Training Course
Oracle Data integrator 11g (ODI) - Online Training Course Oracle Data integrator 11g (ODI) - Online Training Course
Oracle Data integrator 11g (ODI) - Online Training Course
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
 
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
 

Similaire à D17316 gc20 l03_broker_em

Dg broker &amp; client connectivity - High Availability Day 2015
Dg broker &amp; client connectivity -  High Availability Day 2015Dg broker &amp; client connectivity -  High Availability Day 2015
Dg broker &amp; client connectivity - High Availability Day 2015aioughydchapter
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cAlfredo Krieg
 
D17316 gc20 l01_overview
D17316 gc20 l01_overviewD17316 gc20 l01_overview
D17316 gc20 l01_overviewMoeen_uddin
 
Using Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12cUsing Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12cPete Sharman
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Fran Navarro
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionMarkus Michalewicz
 
Tendencias Storage
Tendencias StorageTendencias Storage
Tendencias StorageFran Navarro
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architectureVimlendu Kumar
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationYudi Herdiana
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architectureSimon Huang
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaSArush Jain
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cSatishbabu Gunukula
 
Coherence 12.1.2 Hidden Gems
Coherence 12.1.2 Hidden GemsCoherence 12.1.2 Hidden Gems
Coherence 12.1.2 Hidden Gemsharvraja
 

Similaire à D17316 gc20 l03_broker_em (20)

Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Less15 backups
Less15 backupsLess15 backups
Less15 backups
 
Dg broker &amp; client connectivity - High Availability Day 2015
Dg broker &amp; client connectivity -  High Availability Day 2015Dg broker &amp; client connectivity -  High Availability Day 2015
Dg broker &amp; client connectivity - High Availability Day 2015
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
 
D17316 gc20 l01_overview
D17316 gc20 l01_overviewD17316 gc20 l01_overview
D17316 gc20 l01_overview
 
Using Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12cUsing Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12c
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
 
ZFS appliance
ZFS applianceZFS appliance
ZFS appliance
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
Tendencias Storage
Tendencias StorageTendencias Storage
Tendencias Storage
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
Oracle Storage a ochrana dat
Oracle Storage a ochrana datOracle Storage a ochrana dat
Oracle Storage a ochrana dat
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Coherence 12.1.2 Hidden Gems
Coherence 12.1.2 Hidden GemsCoherence 12.1.2 Hidden Gems
Coherence 12.1.2 Hidden Gems
 
11g R2 Live Part 1
11g R2 Live Part 111g R2 Live Part 1
11g R2 Live Part 1
 
Exadata Backup
Exadata BackupExadata Backup
Exadata Backup
 

Dernier

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
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
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
 
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
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
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
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
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
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Dernier (20)

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
 
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
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
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
 
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
 
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
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
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
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"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
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
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)
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 

D17316 gc20 l03_broker_em

  • 1. 3 Using Data Guard Broker and Enterprise Manager Copyright © 2006, Oracle. All rights reserved.
  • 2. Objectives After completing this lesson, you should be able to do the following: • Describe the Data Guard broker architecture • Describe the Data Guard broker components • Explain the benefits of the Data Guard broker • Explain Data Guard broker configurations • Use Enterprise Manager to manage your Data Guard configuration • Invoke DGMGRL to manage your Data Guard configuration 3-2 Copyright © 2006, Oracle. All rights reserved.
  • 3. Features of Data Guard Broker • The Data Guard broker is a distributed management framework. • The broker automates and centralizes the creation, maintenance, and monitoring of Data Guard configurations. • With the broker, you can perform all management operations locally or remotely through easy-to-use interfaces: – Oracle Enterprise Manager 10g Grid Control – A command-line interface: DGMGRL 3-3 Copyright © 2006, Oracle. All rights reserved.
  • 4. Data Guard Broker: Components • Client-side: – Oracle Enterprise Manager 10g Grid Control – DGMGRL (command-line interface) • Server-side: Data Guard monitor – DMON process – Configuration files 3-4 Copyright © 2006, Oracle. All rights reserved.
  • 5. Data Guard Broker: Configurations The most common configuration is a primary database at one location and a standby database at another location. Chicago Boston Oracle Net Primary Standby site site 3-5 Copyright © 2006, Oracle. All rights reserved.
  • 6. Data Guard Broker: Management Model Data Guard Broker Configuration Standby database Broker-controlled Standby database databases Standby database Standby database Standby database Standby database Standby database Primary database Standby database Standby database Instances Instances 3-6 Copyright © 2006, Oracle. All rights reserved.
  • 7. Data Guard Broker: Architecture Graphical user interface or command-line interface Data Guard Configuration Standby site 9 Standby site 2 Primary site Standby site 1 Configuration Configuration files files Standby Archived database redo logs Primary Log database apply Standby services Online DMON DMON redo logs redo logs Archived redo logs Log Oracle transport Net services 3-7 Copyright © 2006, Oracle. All rights reserved.
  • 8. Life Cycle of a Broker Configuration Create configuration Enable configuration Make state or Update database role changes properties Monitor and tune configuration 3-8 Copyright © 2006, Oracle. All rights reserved.
  • 9. Data Guard Broker: Requirements • Enterprise Edition of Oracle Database 10g • Single-instance or multi-instance environment • COMPATIBLE must be set to 9.2.0.1.0 or higher for primary and standby databases. • Oracle Net network files must be configured for databases that you add to the configuration. • LOCAL_LISTENER on each instance must resolve to an address that is reachable by all members. • GLOBAL_DBNAME attribute must be set to a concatenation of: db_unique_name_DGMGRL.db_domain 3-9 Copyright © 2006, Oracle. All rights reserved.
  • 10. Data Guard Broker: Requirements • DG_BROKER_START = TRUE • The primary database must be in ARCHIVELOG mode. • All databases must be in MOUNT or OPEN mode. • Configure DG_BROKER_CONFIG_FILEn for any RAC databases. • START_OPTIONS for any RAC databases must be set to MOUNT in the Oracle Cluster Repository (OCR). 3 - 10 Copyright © 2006, Oracle. All rights reserved.
  • 11. Data Guard Broker and the SPFILE • You must use a server parameter file (SPFILE) for initialization parameters. • Using the SPFILE enables the Data Guard broker to keep its configuration file and the database SPFILE consistent. • If you use the broker, use Enterprise Manager or DGMGRL to update database parameter values. 3 - 11 Copyright © 2006, Oracle. All rights reserved.
  • 12. 3 - 12 Copyright © 2006, Oracle. All rights reserved.
  • 13. Data Guard Monitor: DMON Process • Server-side background process • Part of each database instance in the configuration • Created when you start the broker • Performs requested functions and monitors the resource • Communicates with other DMON processes in the configuration • Updates the configuration file 3 - 13 Copyright © 2006, Oracle. All rights reserved.
  • 14. Data Guard Monitor: Configuration File • Automatically created and named using a default path name and file name when the broker is started • Override default path name and file name by setting DG_BROKER_CONFIG_FILEn . • Two files at each managed site • Managed automatically by the DMON process • Default names are dr1<db_unique_name>.dat and dr2<db_unique_name>.dat. • Default locations are operating system specific: – Default location for UNIX and Linux: ORACLE_HOME/dbs – Default location for Windows: ORACLE_HOMEdatabase 3 - 14 Copyright © 2006, Oracle. All rights reserved.
  • 15. Benefits of Using the Data Guard Broker • Enhances the high-availability, data protection, and disaster protection capabilities inherent in Oracle Data Guard by automating both configuration and monitoring tasks • Streamlines the process for any one of the standby databases to replace the primary database and take over production processing • Helps you logically define and create a Data Guard configuration consisting of a primary database and a standby database • Enables easy configuration of additional standby databases 3 - 15 Copyright © 2006, Oracle. All rights reserved.
  • 16. Benefits of Using the Data Guard Broker • Provides simplified, centralized, and extended management • Automates switchover and failover to a specified standby database in the broker configuration • Automatically communicates between the databases in a Data Guard configuration using Oracle Net Services • Provides built-in validation that monitors the health of all the databases in the configuration 3 - 16 Copyright © 2006, Oracle. All rights reserved.
  • 17. Data Guard Broker Interfaces • Oracle Enterprise Manager 10g Grid Control: – Contains wizards to simplify creating and managing standby databases • Command-line interface (CLI): – Started by entering DGMGRL at the command prompt where the Oracle server is installed – Enables you to control and monitor a Data Guard configuration from the CLI prompt or in scripts 3 - 17 Copyright © 2006, Oracle. All rights reserved.
  • 18. 3 - 18 Copyright © 2006, Oracle. All rights reserved.
  • 19. Using Oracle Enterprise Manager 10g Grid Control Click “Setup and Manage” to access the Data Guard pages. 3 - 19 Copyright © 2006, Oracle. All rights reserved.
  • 20. Data Guard Overview Page 3 - 20 Copyright © 2006, Oracle. All rights reserved.
  • 21. Enterprise Manager Metrics and Alerts • Metrics: Units of measurement used to assess the health of your system • Thresholds: Boundary values against which monitored metric values are compared • Alert: Generated when a threshold is reached 3 - 21 Copyright © 2006, Oracle. All rights reserved.
  • 22. Using Data Guard Metrics Enterprise Manager includes the following Data Guard metrics: • Data Guard Fast-Start Failover • Data Guard Fast-Start Failover Observer • Data Guard Performance • Data Guard Status 3 - 22 Copyright © 2006, Oracle. All rights reserved.
  • 23. Managing Data Guard Metrics 1. Configure notification methods. 2. View the All Metrics page. 3. Set or change Data Guard metric thresholds. 4. View triggered metrics. 3 - 23 Copyright © 2006, Oracle. All rights reserved.
  • 24. Benefits of Using Enterprise Manager • Enables you to manage your configuration using a familiar interface and event-management system • Automates and simplifies the complex operations of creating and managing standby databases through the use of wizards • Performs all Oracle Net Services configuration changes that are necessary to support redo transport services and log apply services • Provides a verify operation to ensure that redo transport services and log apply services are configured and functioning properly • Enables you to select a new primary database from a set of viable standby databases 3 - 24 Copyright © 2006, Oracle. All rights reserved.
  • 25. Using the Command-Line Interface of the Data Guard Broker DGMGRL> connect sys/oracle Connected. DGMGRL> show configuration verbose Configuration Name: EDRSR8P1_ORCL.oracle.com Enabled: YES Protection Mode: MaxPerformance Fast-Start Failover: DISABLED Databases: EDRSR8P1_ORCL - Primary database EDRSR8P1_SITE1 - Physical standby database EDRSR8P1_SITE2 - Logical standby database Current status for "EDRSR8P1_ORCL.oracle.com": SUCCESS 3 - 25 Copyright © 2006, Oracle. All rights reserved.
  • 26. 3 - 26 Copyright © 2006, Oracle. All rights reserved.
  • 27. Summary In this lesson, you should have learned how to: • Describe the Data Guard broker management model • Describe the Data Guard broker architecture • Describe Data Guard broker components • Access Enterprise Manager • Invoke DGMGRL (the Data Guard CLI) 3 - 27 Copyright © 2006, Oracle. All rights reserved.
  • 28. 3 - 28 Copyright © 2006, Oracle. All rights reserved.

Notes de l'éditeur

  1. Oracle Database 10 g : Data Guard Administration 3 -
  2. Oracle Database 10 g : Data Guard Administration 3 - Features of Data Guard Broker The Oracle Data Guard broker is a distributed management framework that automates and centralizes the creation, maintenance, and monitoring of Data Guard configurations. The following are some of the operations that the broker automates and simplifies: Automated creation of Data Guard configurations incorporating a primary database, a new or existing (physical or logical) standby database, redo transport services, and log apply services Note: Any of the databases in the configuration can be a RAC database. Adding up to eight new or existing (physical or logical, RAC or non-RAC) standby databases to each existing Data Guard configuration, for a total of one primary database, and from one to nine standby databases in the same configuration Managing an entire Data Guard configuration (including all databases, redo transport services, and log apply services) through a client connection to any database in the configuration Invoking switchover or failover with a single command to initiate and control complex role changes across all databases in the configuration Monitoring the status of the entire configuration, capturing diagnostic information, reporting statistics such as the log apply rate and the redo generation rate, and detecting problems quickly with centralized monitoring, testing, and performance tools
  3. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker: Components The Oracle Data Guard broker consists of components that reside on the client and the server in the configuration. On the client, you can use the following Data Guard components to define and manage a configuration: Oracle Enterprise Manager DGMGRL, which is the Data Guard command-line interface (CLI) On the server, Data Guard monitor is a broker component that is integrated with the Oracle database. Data Guard monitor comprises the Data Guard monitor process ( DMON ) and broker configuration files, with which you can control the databases of that configuration, modify their behavior at run time, monitor the overall health of the configuration, and provide notification of other operational characteristics. The configuration file contains profiles that describe the states and properties of the databases in the configuration. Associated with each database are various properties that the DMON process uses to control the database’s behavior. The properties are recorded in the configuration file as a part of the database’s object profile that is stored there. Many database properties are used to control database initialization parameters related to the Data Guard environment.
  4. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker: Configurations A Data Guard configuration consists of one primary database and up to nine standby databases. The databases in a Data Guard configuration are typically dispersed geographically and are connected by Oracle Net. A Data Guard broker configuration is a logical grouping of the primary and standby databases in a Data Guard configuration. The broker’s DMON process configures and maintains the broker configuration components as a unified group of resource objects that you can manage and monitor as a single unit.
  5. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker: Management Model The Data Guard broker performs operations on logical objects: Configuration of databases A single database A broker configuration consists of: A configuration object : A named collection of database profiles. A database profile is a description of a database object, including its current state, current status, and properties. Database objects : Objects corresponding to primary or standby databases Instance objects : A database object may comprise one or more instance objects if it is a RAC database. The broker supports one or more Data Guard configurations, each of which includes a profile for one primary database as well as profiles for up to nine physical, logical, RAC or non-RAC standby databases.
  6. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker: Architecture The Data Guard broker helps you create, control, and monitor a Data Guard configuration. This configuration consists of a primary database that is protected by one or more standby databases. After the broker has created the Data Guard configuration, the broker monitors the activity, health, and availability of all systems in the Data Guard configuration. The Data Guard monitor process ( DMON ) is an Oracle background process that runs on every site that is managed by the broker. When you start the Data Guard broker, a DMON process is created. When you use Enterprise Manager or the Data Guard command-line interface (CLI), the DMON process is the server-side component that interacts with the local instance and the DMON processes that are running on other sites to perform the requested function. The DMON process is also responsible for monitoring the health of the broker configuration and for ensuring that every site has a consistent copy of the configuration files in which the DMON process stores its configuration data. There are two multiplexed versions of the configuration file on each site.
  7. Oracle Database 10 g : Data Guard Administration 3 - Life Cycle of a Broker Configuration You can use the Add Standby Database Wizard in Enterprise Manager to add an existing standby database to the configuration or create a new standby database and add it to the configuration. The standby database can be either a physical or a logical database. Note: If you are creating a new database, it must be a non-RAC database. If you are using the CLI, the primary database and standby database must already exist. You must construct the standby database from backups of the primary database control files and data files, and then prepare it for recovery.
  8. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker: Requirements To use the Data Guard broker, you must comply with the following requirements: You must use the Enterprise Edition of Oracle Database 10 g . You can use a single-instance or multi-instance environment. You must set the COMPATIBLE initialization parameter to 9.2.0.1.0 or higher for the primary and standby databases. To take advantage of new Oracle Database 10 g features, set the COMPATIBLE parameter to 10.2.0.0. Enterprise Manager automatically configures the Oracle Net network files when it creates a standby database. If you configure an existing standby database in the broker configuration, you must configure the network files. You must use TCP/IP. The value of the LOCAL_LISTENER initialization parameter on each instance that is part of your Data Guard broker configuration must resolve to a listener address that is reachable by all members of the configuration. To enable the Data Guard broker CLI to restart instances during the course of broker operations, a service with a specific name must be statically registered with the local listener of each instance. The value of the GLOBAL_DBNAME attribute must be set to a concatenation of db_unique_name_DGMGRL.db_domain . Note: Oracle Enterprise Manager 10 g can manage a 9.2 Data Guard configuration.
  9. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker: Requirements (continued) You must set the DG_BROKER_START initialization parameter to TRUE . This enables the DMON process. Note: When you use Enterprise Manager to create your configuration, this parameter is automatically set to TRUE . The primary database must be in ARCHIVELOG mode . Any database that is managed by the broker (including, for a RAC database, all instances of the database) must be mounted or open. The broker cannot start an instance. If any database in your configuration is a RAC database, you must configure the DG_BROKER_CONFIG_FILE n initialization parameters for that database so that they point to the same shared files for all instances of that database. You cannot use the default values for these parameters. Note: The shared files could be files on a cluster file system, if available, or on raw devices. If any database in your configuration is a RAC database, the START_OPTIONS for that database must be set to MOUNT in the Oracle Cluster Repository (OCR) using SRVCTL , as follows: SRVCTL ADD DATABASE -d &lt;db_unique_name&gt; -o &lt;$ORACLE_HOME&gt; -s MOUNT or SRVCTL MODIFY DATABASE -d &lt;db_unique_name&gt; -o &lt;$ORACLE_HOME&gt; -s MOUNT
  10. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker and the SPFILE To ensure that the broker can update the values of parameters both in the database instance and in the configuration file, you must use the persistent server initialization parameter file (SPFILE) to control static and dynamic initialization parameters. Use of the SPFILE gives the broker a mechanism that enables it to reconcile property values that you have selected when using the broker with any related initialization parameter values that are recorded in the SPFILE. Also, the SPFILE permits persistent Data Guard settings, so that Data Guard continues to work even after the broker is disabled. When you set definitions or values for database properties in the broker configuration, the broker records the change in the configuration file and also propagates the changes to the related initialization parameters in the server parameter file in the Data Guard configuration. When the configuration is enabled, the broker keeps the database property values in the Data Guard configuration file consistent with the values of the database initialization parameters in the SPFILE. Even when the configuration is disabled, you can update database property values through the broker. The broker retains the property settings (without validating the values) and updates the database initialization parameters in the SPFILE and the in-memory settings the next time you enable the broker configuration.
  11. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker and the SPFILE (continued) For dynamic initialization parameters, the broker keeps the value of the database parameter consistent in the System Global Area (SGA) for the instance, in the Data Guard configuration files, and in the SPFILE. For static initialization parameters, the value in the SGA may differ from what is in the configuration files and in the SPFILE. Typically, the broker reconciles the differences by updating all parameter and property values the next time the database instance is stopped and restarted. Note: When using the broker (with Enterprise Manager or the CLI), do not attempt to manually set the parameters that the broker controls. If you set them manually, either you render your configuration inoperable, or the broker simply resets the parameter to the setting it has recorded at the next opportunity. If you want to change a parameter value, you must change it by using one of the broker interfaces.
  12. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Monitor: DMON Process The Data Guard monitor comprises two components: the DMON process and the configuration file. The Data Guard Monitor process ( DMON ) is an Oracle background process that is part of each database instance managed by the broker. When you start the Data Guard broker, a portion of the SGA is allocated and a DMON process is created. The amount of memory allocated is typically less than 50 KB per site; the actual amount on your system varies. When you use Enterprise Manager or the CLI, the DMON process is the server-side component that interacts with the local instance and the DMON processes running on other sites to perform the requested function. The DMON process is also responsible for monitoring the health of the broker configuration and for ensuring that every database has a consistent copy of the broker configuration files in which the DMON process stores its configuration data.
  13. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Monitor: Configuration File The DMON process maintains persistent configuration data about all the databases in the broker configuration in a broker configuration file. Every database that is part of the Data Guard broker configuration has two broker configuration files that are maintained and synchronized for each database in the broker configuration. One of the files is in use and the other acts as a backup. The configuration files are binary files and cannot be edited. When the broker is started for the first time, the configuration files are created and named automatically by using a default name. You can override this default name by setting the DG_BROKER_CONFIG_FILE n initialization parameters. You can also change the configuration file names dynamically by issuing the ALTER SYSTEM SQL statement. The configuration files contain entries that describe the state and properties of the databases in the configuration. For example, the files record the databases that are part of the configuration, the roles and properties of each of the databases, and the state of each of the databases in the configuration. Two files are maintained so that there is always a record of the last known valid state of the configuration. The broker uses the data in the configuration file to configure and start the databases, control each database’s behavior, and provide information to the CLI and Enterprise Manager.
  14. Oracle Database 10 g : Data Guard Administration 3 - Benefits of Using the Data Guard Broker By automating the tasks required to configure and monitor a Data Guard configuration, the broker enhances the high-availability, data protection, and disaster protection capabilities that are inherent in Oracle Data Guard. If the primary database fails, the broker streamlines the process for any one of the standby databases to replace the primary database and take over production processing. Using the broker, you can logically define and create a Data Guard configuration consisting of a primary database and a (physical or logical, RAC or non-RAC) standby database. The broker enables easy configuration of additional standby databases. After you create a Data Guard configuration consisting of a primary and a standby database, you can add up to eight standby databases (new or existing, physical or logical) to each Data Guard configuration.
  15. Oracle Database 10 g : Data Guard Administration 3 - Benefits of Using the Data Guard Broker (continued) The broker provides simplified, centralized, and extended management. The broker automates switchover and failover to a specified standby database in the broker configuration. The broker automatically communicates between the databases in a Data Guard configuration using Oracle Net Services. The database can be local or remote, connected by a LAN or geographically dispersed over a WAN. The broker provides built-in validation that monitors the health of all the databases in the configuration.
  16. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker Interfaces Oracle Enterprise Manager automates and simplifies the management of a Data Guard configuration. Oracle Enterprise Manager 10 g Grid Control includes the following Data Guard features: Wizard-driven creation of standby databases Wizard-driven creation of a broker configuration based on an existing primary and standby database Complete monitoring and proactive event reporting through e-mail or pagers Simplified control of the databases through their potential states. For example, with Enterprise Manager you can take a database offline, put it online, start or stop the redo transport services, start or stop the log apply services, place a standby database in read-only mode, and so on. “ Pushbutton” switchover and failover: Grid Control enables you to execute a switchover or failover between a primary and a standby database by simply clicking a button.
  17. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Broker Interfaces (continued) The DGMGRL command-line interface (CLI) includes: Configuration and setup tasks Management and control of the configuration Commands to check the status and health of the configuration Commands to execute role changes For additional information about using these interfaces, see Oracle Data Guard Broker .
  18. Oracle Database 10 g : Data Guard Administration 3 - Using Oracle Enterprise Manager 10 g Grid Control Access the Data Guard features in Grid Control by performing the following steps: 1. Click the Targets tab to go to the Targets page. 2. Click Databases to go to the Databases page. 3. On the Databases page, you can see a list of all discovered databases, including the primary database. Click the primary database to go to the primary database home page. 4. Click Maintenance. 5. Click “Setup and Manage’’ in the Data Guard section.
  19. Oracle Database 10 g : Data Guard Administration 3 - Data Guard Overview Page On the Data Guard Overview page, you can: View the protection mode and access the page to edit the protection mode View a summary showing the amount of data that the standby has not received View information about the primary database View or access pages to change information for the standby databases: Add a standby database to the broker configuration. Change the state or properties. Discontinue Data Guard broker control. Switch the role from standby to primary. Transition the standby database to the role of primary database. Access pages to view performance information for the configuration and status of online redo log files for each standby database Perform a verification process on the Data Guard configuration You can click Help to access information about using each page. Note: The Data Guard Overview page is displayed when you click “Setup and Manage” in the Data Guard section of the database Maintenance page.
  20. Oracle Database 10 g : Data Guard Administration 3 - Enterprise Manager Metrics and Alerts Metrics are units of measurement that are used to assess the health of your system. Each target comes with a predefined set of metrics. Metrics have thresholds associated with them. Thresholds are boundary values against which monitored metric values are compared. Some of the thresholds are predefined by Oracle; others are not. When a threshold is reached, an alert is generated. An alert is an indicator signifying that a particular condition has been encountered. An alert is triggered when one of the following conditions is true: A threshold is reached An alert has been cleared The availability of a monitored service changes A specific condition occurs. For example, an alert is triggered whenever an error message is written to a database alert log file. Alerts are detected through a polling-based mechanism by checking for the monitored condition from a separate process at regular, predefined intervals. You can associate an alert with a notification, with the automatic execution of a job, and so on.
  21. Oracle Database 10 g : Data Guard Administration 3 - Using Data Guard Metrics You can use Enterprise Manager to monitor the status and log file activity. In addition, Enterprise Manager automatically monitors the status and archived redo log file activity on the primary and standby databases and provides the following metrics: Data Guard Fast-Start Failover: When Fast-Start Failover is enabled, this metric generates a critical alert on the new primary database (old standby database) if a fast-start failover occurs. Data Guard Fast-Start Failover Observer: This metric shows you the current status of the Fast-Start Failover observer. A down status triggers an alert. Data Guard Performance: This metric provides alerts for performance related to redo log activity in the configuration. Data Guard Status: This metric checks the status of each database in the broker configuration and triggers a warning or critical alert if necessary. You can set up Email Services to notify you with an e-mail message if any of the metrics are triggered. Refer to the Oracle Data Guard Broker 10g Release 2 (10.2) reference manual for detailed information. Note: These metrics are seen on the primary database only.
  22. Oracle Database 10 g : Data Guard Administration 3 - Managing Data Guard Metrics You can specify that an e-mail notification be sent to you when a Data Guard metric is triggered. Use the following procedure to configure the notification: 1. Configure notification methods in Enterprise Manager. a. Click Setup at the top of the Database Home page. b. Click Notification Methods on the Setup page. c. Enter the appropriate information in the Mail Server section and click Apply. You can click Test Mail Servers to verify your configuration. 2. View the All Metrics page by clicking All Metrics in the Related Links section on the Database Home page. Then, view all the Oracle Enterprise Manager metrics, including the metrics for Data Guard. 3. Set or change Data Guard metric thresholds by clicking Metric and Policy Settings in the Related Links section on the All Metrics page to access the Metric and Policy Settings page. You can set and change the Data Guard Status metric on the Metrics Thresholds tab of the Metric and Policy Settings page. 4. View triggered metrics: If a metric condition is triggered or a threshold value is exceeded, an alert is issued. Click Data Guard on the All Metrics page to view triggered metrics. You can click the metric and then click a particular database to see details.
  23. Oracle Database 10 g : Data Guard Administration 3 - Benefits of Using Enterprise Manager Managing your Data Guard configuration with Oracle Enterprise Manager 10 g Grid Control provides the following benefits: Enables you to manage your configuration using the familiar Enterprise Manager interface and event-management system Provides a wizard that automates the complex tasks involved in creating a broker configuration Provides the Add Standby Database Wizard to guide you through the process of adding more databases Performs all Oracle Net Services configuration changes that are necessary to support redo transport services and log apply services across the configuration Provides a verify operation to ensure that redo transport services and log apply services are configured and functioning properly Enables you to select a new primary database from a set of viable standby databases when you need to initiate a role change for a switchover or failover operation
  24. Oracle Database 10 g : Data Guard Administration 3 - DGMGRL Commands The following commands are available in DGMGRL (the Data Guard CLI). Many of these commands have additional arguments that are not described here. This is simply an overview listing. ADD : Adds a standby database to the broker configuration CONNECT : Connects a given username to the specified instance CREATE : Enables you to create broker configurations DISABLE : Enables you to disable broker control of a configuration or database so that the object is no longer managed by the broker EDIT : Used to edit a configuration, database, or instance ENABLE : Enables you to enable broker control of a configuration or database EXIT/QUIT : Exits the Data Guard CLI (DGMGRL) FAILOVER : Performs a database failover operation in which one of the standby databases changes to the role of primary database. This is an unplanned transition that may result in the loss of application data. HELP : Displays online help for the commands in DGMGRL REINSTATE : Changes a disabled database into a viable standby database REMOVE : Removes a broker configuration, including all of its database profiles, a specified standby database profile, or knowledge of an instance
  25. Oracle Database 10 g : Data Guard Administration 3 - DGMGRL Commands (continued) SHOW : Displays either a brief or a detailed summary of information about the broker configuration, database, or instance. Also, it can display the dependency tree and default online states for the broker configuration, as well as the configuration log or the Oracle database alert log. SHUTDOWN : Shuts down a currently running Oracle database instance START : Starts the Fast-Start Failover Observer STARTUP : Starts an Oracle instance with several options, including mounting and opening a database STOP : Stops the Fast-Start Failover Observer SWITCHOVER : Performs a switchover operation in which the current primary database becomes a standby database and the standby database to which the CLI is currently connected becomes the primary database Note: The ALTER command has been deprecated in Oracle Database 10 g . The new EDIT command provides comparable functionality.
  26. Oracle Database 10 g : Data Guard Administration 3 -