Vous êtes sur la page 1sur 3

14/12/2017 DGMGRL Command Tips

��

Search BC Oracle Sites


Custom Search DGMGRL Command Tips

Search Oracle Database Tips by Donald BurlesonDecember 9, 2015

Home
E-mail Us
Oracle Articles
New Oracle Articles Oracle Data Guard - Data Guard Broker
Managing Data Guard Using DGMGRL

Oracle Training Data Guard manager greatly simplifies the otherwise complicated tasks of log
Oracle Tips management, role management, and data protection modes. It can be used to
Oracle Forum
monitor the overall health of the entire configuration as well as an individual site.
Class Catalog
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
Remote DBA by more complicated tasks such as log management, switchover, failover and
Oracle Tuning manipulating data protection modes. As always, Oracle documentation remains
Emergency 911 the largest single source of information on this topic.
RAC Support
Apps Support Data Guard Configuration Management
Analysis
Design As explained earlier, a configuration contains the primary and standby sites. In
Implementation this section, the pre-requisites and procedures to create a configuration will be
Oracle Support presented.

One requirement of creating a configuration using the CLI interface is that the
standby databases participating in the configuration should exist. CLI interface
SQL Tuning cannot be used to create a standby database.
Security
Oracle UNIX
Assume that the primary database "appsdb", physical Oracle instance "stdbydb"
and logical Oracle instance "logstdby" already exist. To create a configuration,
Oracle Linux
ensure that the broker is running on the primary and all participating standby
Monitoring
databases. On the primary site, start the CLI environment and connect to the
Remote support primary database.
Remote plans
Remote services DGMGRL>connect sys/<sys password>
Application Server
An account with the SYSDBA privilege will have to be used.
Applications
Oracle Forms Use the CREATE CONFIGURATION command to create a configuration. The
Oracle Portal following code snippet shows the usage of this statement in Oracle9i:
App Upgrades
CREATE CONFIGURATION 'appsconfig' AS PRIMARY SITE IS 'appsdb'
SQL Server
RESOURCE IS 'appsdb' HOSTNAME IS 'jrpr01' INSTANCE NAME IS 'appsdb'
Oracle Concepts SERVICE NAME IS 'appsprimary' SITE IS MAINTAINED AS PHYSICAL;
Software Support
Remote Support Oracle will validate the HOSTNAME and INSTANCE NAME from the
Development v$instance view. Arguments Configuration, Site and Resource are user–defined
Implementation
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.
Consulting Staff
Consulting Prices The last argument, SITE MAINTAINED AS, signifies the type of Oracle
Help Wanted!
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:

http://www.dba-oracle.com/t_oracledataguard_267_dgmgrl_commands.htm 1/3
14/12/2017 DGMGRL Command Tips

Oracle Posters Data Guard Configuration Tips


Oracle Books
Oracle Scripts Data Guard Configuration attributes
Ion
Excel-DB
Viewing Configuration and Site Attributes
Don Burleson Blog
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

Burleson is the American Team

http://www.dba-oracle.com/t_oracledataguard_267_dgmgrl_commands.htm 2/3
14/12/2017 DGMGRL Command Tips

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 - 2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by


Conversational

http://www.dba-oracle.com/t_oracledataguard_267_dgmgrl_commands.htm 3/3

Vous aimerez peut-être aussi