Summary of DGMGRL Commands with Example
| Command | Effect | 
| ADD DATABASE | Adds a new standby   database profile to the existing broker configuration 
 | 
| CONNECT | Connects   to the specified database using the specified username. 
 | 
| CREATE CONFIGURATION | Creates a   broker configuration and creates and adds a primary database profile to the   configuration. 
 | 
| DISABLE CONFIGURATION | Disables   broker management of a configuration so that the configuration and all of its   databases are no longer managed by the broker. 
 | 
| DISABLE DATABASE | Disables   broker management of the named standby database. 
 | 
| EDIT CONFIGURATION (Protection Mode) | Changes   the current protection mode setting for the broker configuration 
 | 
| EDIT DATABASE (Property) | Changes   the value of a property for the named database 
 | 
| EDIT DATABASE (Rename) | Changes   the name used by the broker to refer to the specified database. This command can only be done when broker management of the database that you are renaming is disabled. 
 | 
| EDIT DATABASE (State) | Changes   the state of the specified database.The state in which you want the database to be running. The possible states are: ONLINE LOG-TRANSPORT-OFF (primary database only) LOG-APPLY-OFF (standby database only) READ-ONLY (physical standby database only) OFFLINE 
 | 
| EDIT INSTANCE (AUTO PFILE) | Sets the   name of the initialization parameter file for the specified instance. 
 | 
| EDIT INSTANCE (Property) | Changes   the value of a property for the specified instance. 
 | 
| ENABLE CONFIGURATION | Enables   broker management of the broker configuration and all of its databases.DGMGRL> enable configuration; Enabled. | 
| ENABLE DATABASE | Enables   broker management of the specified database. 
 | 
| EXIT | Exits the Data Guard command-line interface. | 
| FAILOVER | Performs a database failover operation in which the standby database, to which the CLI is currently connected, fails over to the role of primary database. | 
| HELP | Displays   online help for the Data Guard command-line interface. add Adds a standby database to the broker configuration connect Connects to an Oracle database instance convert Converts a database from one type to another create Creates a broker configuration disable Disables a configuration, a database, or fast-start failover edit Edits a configuration, database, or instance enable Enables a configuration, a database, or fast-start failover exit Exits the program failover Changes a standby database to be the primary database help Displays description and syntax for a command quit Exits the program reinstate Changes a database marked for reinstatement into a viable standby rem Comment to be ignored by DGMGRL remove Removes a configuration, database, or instance show Displays information about a configuration, database, or instance shutdown Shuts down a currently running Oracle database instance start Starts the fast-start failover observer startup Starts an Oracle database instance stop Stops the fast-start failover observer switchover Switches roles between a primary and standby database Use "help <command>" to see syntax for individual commands | 
| QUIT | Quits the Data Guard command-line interface. | 
| REMOVE CONFIGURATION | Removes the broker configuration including all of its database profiles from the broker configuration file. | 
| REMOVE DATABASE | Removes   the specified standby database profile from the broker configuration. 
 | 
| REMOVE INSTANCE | Removes knowledge of an instance from an existing database profile in the broker configuration. | 
| SHOW CONFIGURATION | Displays   information about the broker configuration. 
 | 
| SHOW DATABASE | Displays   information about the specified database. 
 | 
| SHOW INSTANCE | Displays   information about the specified instance. 
 | 
| SHUTDOWN | Shuts   down a currently running Oracle database. 
 | 
| STARTUP | Starts an   Oracle instance with the same options as SQL*Plus, including mounting and   opening a database. 
 | 
| SWITCHOVER | Performs   a switchover operation in which the current primary database becomes a   standby database, and the specified standby database becomes the primary   database. 
 | 
add            Adds a standby database to the broker configuration
connect        Connects to an Oracle database instance
convert        Converts a database from one type to another
create         Creates a broker configuration
disable        Disables a configuration, a database, or fast-start failover
edit           Edits a configuration, database, or instance
enable         Enables a configuration, a database, or fast-start failover
exit           Exits the program
failover       Changes a standby database to be the primary database
help           Displays description and syntax for a command
quit           Exits the program
reinstate      Changes a database marked for reinstatement into a viable standby
rem            Comment to be ignored by DGMGRL
remove         Removes a configuration, database, or instance
show           Displays information about a configuration, database, or instance
shutdown       Shuts down a currently running Oracle database instance
start          Starts the fast-start failover observer
startup        Starts an Oracle database instance
stop           Stops the fast-start failover observer
switchover     Switches roles between a primary and standby database
Use “help <command>” to see syntax for individual commands


 
    
Leave a Reply
You must be logged in to post a comment.