Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

DGMGRL Command Tips

Oracle Database Tips by Donald BurlesonDecember 9, 2015

Oracle Data Guard - Data Guard Broker

Managing Data Guard Using DGMGRL

Data Guard manager greatly simplifies the otherwise complicated tasks of log management, role management, and data protection modes. It can be used to monitor the overall health of the entire configuration as well as an individual site. This section will investigate the use of the CLI interface of Data Guard manager to administer a configuration.

The information presented will start with the creation of a configuration followed by more complicated tasks such as log management, switchover, failover and manipulating data protection modes. As always, Oracle documentation remains the largest single source of information on this topic.

Data Guard Configuration Management

As explained earlier, a configuration contains the primary and standby sites. In this section, the pre-requisites and procedures to create a configuration will be presented.

One requirement of creating a configuration using the CLI interface is that the standby databases participating in the configuration should exist. CLI interface cannot be used to create a standby database.

Assume that the primary database "appsdb", physical Oracle instance "stdbydb" and logical Oracle instance "logstdby" already exist. To create a configuration, ensure that the broker is running on the primary and all participating standby databases. On the primary site, start the CLI environment and connect to the primary database.

DGMGRL>connect sys/<sys password>

An account with the SYSDBA privilege will have to be used.

Use the CREATE CONFIGURATION command to create a configuration. The following code snippet shows the usage of this statement in Oracle9i:

CREATE CONFIGURATION 'appsconfig' AS PRIMARY SITE IS 'appsdb'
RESOURCE IS 'appsdb' HOSTNAME IS 'jrpr01' INSTANCE NAME IS 'appsdb'
SERVICE NAME IS 'appsprimary' SITE IS MAINTAINED AS PHYSICAL;

Oracle will validate the HOSTNAME and INSTANCE NAME from the v$instance view. Arguments Configuration, Site and Resource are user–defined labels. The service name should match the SQL*Net service name for the primary database on all hosts participating in the configuration. There should be an identical service-naming scheme on all the host machines within a configuration.

The last argument, SITE MAINTAINED AS, signifies the type of Oracle instance that this primary database will assume after the switchover operation. When a primary database is marked as physical, it cannot be turned into a logical Oracle instance by switching it over with a standby database. The CREATE CONFIGURATION statement has been simplified in Oracle10g:

 

Data Guard Configuration Tips

Data Guard Configuration attributes


Viewing Configuration and Site Attributes

DGMGRL> SHOW RESOURCE VERBOSE 'appsdb' ON SITE 'appsdb';
Resource
  Name:             appsdb
  Manager Type:     internal
   Standby Type:     PHYSICAL
Online States:
  ONLINE
  PHYSICAL-APPLY-READY
  PHYSICAL-APPLY-ON
  READ-ONLY
  LOGICAL-APPLY-READY
  LOGICAL-APPLY-ON
  READ-WRITE
  READ-WRITE-XPTON
Properties:
  INTENDED_STATE                  = 'READ-WRITE-XPTON'
  ENABLED                         = 'yes'
  IGNORE_STATUS                   = 'no'
  LogXptMode                      = 'ARCH'
  Dependency                      = ''
  Alternate                       = ''
  DelayMins                       = '0'

 


The above text is an excerpt from the book: Oracle Data Guard Handbook


��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.