D17316 gc20 l03_broker_em
-
Upload
moeenuddin -
Category
Technology
-
view
793 -
download
0
Transcript of D17316 gc20 l03_broker_em
![Page 1: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/1.jpg)
3Copyright © 2006, Oracle. All rights reserved.
Using Data Guard Brokerand Enterprise Manager
![Page 2: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/2.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 3: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/3.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 4: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/4.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 5: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/5.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 5
Data Guard Broker: Configurations
The most common configuration is a primary database at one location and a standby database at another location.
Chicago
Primary site
Boston
Standby site
Oracle Net
![Page 6: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/6.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 6
Data Guard Broker: Management Model
Data Guard Broker Configuration
Primary database
Broker-controlled databases
Standby databaseStandby database
Standby databaseStandby database
Standby databaseStandby database
Standby databaseStandby database
Standby database
InstancesInstances
![Page 7: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/7.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 7
Primary site
Standby site 9
Standby site 2
Data Guard Broker: Architecture
Graphical user interfaceor
command-line interface
DMON
Archivedredo logs
Onlineredo logs
Standby site 1
OracleNet
Standbyredo logs
Archivedredo logs
Logapply
services
Data Guard Configuration
Logtransportservices
Primary database
DMON
Configurationfiles
Configurationfiles Standby
database
![Page 8: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/8.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 8
Life Cycle of a Broker Configuration
Createconfiguration
Enableconfiguration
Make state orrole changes
Update databaseproperties
Monitor and tuneconfiguration
![Page 9: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/9.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 10: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/10.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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).
![Page 11: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/11.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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.
![Page 12: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/12.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 13: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/13.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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_HOME\database
![Page 14: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/14.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 15: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/15.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 16: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/16.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 17: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/17.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 19
Using Oracle Enterprise Manager 10gGrid Control
Click “Setup and Manage” to access the Data Guard pages.
![Page 18: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/18.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 20
Data Guard Overview Page
![Page 19: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/19.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 20: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/20.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 21: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/21.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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.
![Page 22: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/22.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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
![Page 23: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/23.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 25
Using the Command-Line Interfaceof the Data Guard Broker
DGMGRL> connect sys/oracleConnected.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
![Page 24: D17316 gc20 l03_broker_em](https://reader036.fdocuments.in/reader036/viewer/2022062418/55524cd8b4c905954f8b4dfc/html5/thumbnails/24.jpg)
Copyright © 2006, Oracle. All rights reserved.3 - 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)