Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

===================================== Enable Dataguard broker

========================================

SQL> alter system set dg_broker_start=true scope=both sid='*';

===================================== Disable Dataguard broker


========================================

SQL> alter system set dg_broker_start=false scope=both sid='*';

===================================== Create Dataguard broker


configuration ========================================

DGMGRL> CREATE CONFIGURATION my_dg_config AS PRIMARY DATABASE IS MSDB CONNECT


IDENTIFIER IS MSDB;

===================================== Edit the Broker


configuration Protection mode ========================================

DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS {MaxProtection|MaxAvailability|


MaxPerformance};
DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXPROTECTION;
DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXAVAILABILITY;
DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXPERFORMANCE;

===================================== Add the standby database


========================================

DGMGRL> ADD DATABASE MSDG AS CONNECT IDENTIFIER IS MSDG MAINTAINED AS PHYSICAL;

===================================== Enable Dataguard broker


Configuration ========================================

DGMGRL> ENABLE CONFIGURATION;

===================================== Disable Dataguard broker


Configuration ========================================

DGMGRL> DISABLE CONFIGURATION

===================================== Remove Dataguard broker


Configuration ========================================

DGMGRL> REMOVE CONFIGURATION

===================================== Show Dataguard broker


Configuration ========================================

DGMGRL> SHOW CONFIGURATION;

===================================== Show Database broker


Configuration ========================================

DGMGRL> SHOW DATABASE 'MSDB';

===================================== Switchover with dgmgrl


========================================
DGMGRL> SWITCHOVER TO MSDB_stby;

===================================== Failover with dgmgrl


========================================

DGMGRL> FAILOVER TO MSDB_stby;

===================================== Shapshot standby


========================================

DGMGRL> CONVERT DATABASE MSDB_stby TO SNAPSHOT STANDBY;

===================================== List all configuration


options ========================================

DGMGRL> SHOW CONFIGURATION VERBOSE

===================================== List summary of the fast-


start failover ========================================

DGMGRL> SHOW FAST_START FAILOVER;

===================================== Start the fast-start


failover observer =======================================

DGMGRL> START OBSERVER [FILE=observer_configuration_file];


DGMGRL> START OBSERVER;

You might also like