--both databases (primary and standby)
ALTER SYSTEM SET dg_broker_start=true;
二、Register server with the broker
dgmgrl sys/oracle@orcl
##pri是configuration名称,随意
##第一个orcl是db_unique_name
##第二个orcl是TNSNAME
CREATE CONFIGURATION pri AS PRIMARY DATABASE IS orcl CONNECT IDENTIFIER IS orcl;
##第一个orcl_stby是db_unique_name
##第二个orcl_stby是TNSNAME
ADD DATABASE orcl_stby AS CONNECT IDENTIFIER IS orcl_stby MAINTAINED AS PHYSICAL;
ENABLE CONFIGURATION;
三、Check the configuration and database
SHOW CONFIGURATION;
SHOW DATABASE orcl;
SHOW DATABASE orcl_stby;
四、Database Switchover Configure Listener Both Primary and Standby