==> Pre-Check
Make sure below is set to false on primary and Standby.
#primary
SQL> sho parameter dg_broker_start
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_start boolean FALSE
#standby
SQL> sho parameter dg_broker_start
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_start boolean FALSE
1. Create config files on ASM DiskGroup.
==>On primary
alter system set dg_broker_config_file1 = '+RTLDATA01/ORCL/DATAFILE/dr1ORCL.dat' scope=both sid='*';
alter system set dg_broker_config_file2 = '+RTLDATA01/ORCL/DATAFILE/dr2ORCL.dat' scope=both sid='*';
P.S. Config file name has to be DB_UNIQUE_NAME
SQL> alter system set dg_broker_config_file1 = '+RTLDATA01/ORCL/DATAFILE/dr1ORCL.dat' scope=both sid='*';
System altered.
SQL> alter system set dg_broker_config_file2 = '+RTLDATA01/ORCL/DATAFILE/dr2ORCL.dat' scope=both sid='*';
System altered.
SQL> sho parameter config
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string +RTLDATA01/ORCL/DATAFILE/dr1
ORCL.dat
dg_broker_config_file2 string +RTLDATA01/ORCL/DATAFILE/dr2
ORCL.dat
==>On Standby
alter system set dg_broker_config_file1 = '+MDRDATA01/DRORCL/DATAFILE/dr1DRORCL.dat' scope=both sid='*';
alter system set dg_broker_config_file2 = '+MDRDATA01/DRORCL/DATAFILE/dr2DRORCL.dat' scope=both sid='*';
P.S. Config file name has to be DB_UNIQUE_NAME
SQL> alter system set dg_broker_config_file1 = '+MDRDATA01/DRORCL/DATAFILE/dr1DRORCL.dat' scope=both sid='*';
System altered.
SQL> alter system set dg_broker_config_file2 = '+MDRDATA01/DRORCL/DATAFILE/dr2DRORCL.dat' scope=both sid='*';
System altered.
SQL> sho parameter config
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string +MDRDATA01/DRORCL/DATAFILE/d
r1DRORCL.dat
dg_broker_config_file2 string +MDRDATA01/DRORCL/DATAFILE/d
r2DRORCL.dat
2. Start the Dataguard broker DMON process.
On Primary and Standby,
alter system set dg_broker_start=true sid='*';
##primary
SQL> alter system set dg_broker_start=true sid='*';
System altered.
#standby##
SQL> alter system set dg_broker_start=true sid='*';
System altered.
3.Take backup of log_archive_dest_2 and run below on primary and standby
Show parameter log_archive_dest_2
##primary
SQL> alter system set log_archive_dest_2='' scope=both sid='*';
System altered.
#standby##
SQL> alter system set log_archive_dest_2='' scope=both sid='*';
System altered.
4. Connect to DGMGRL
On Primary,
node1:/app/oracle/product/12.1.0.2/db/dbs>dgmgrl
DGMGRL for Solaris: Version 12.1.0.2.0 - 64bit Production
Copyright (c) 2000, 2013, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect /
Connected as SYSDG.
DGMGRL>
5. Create configuration,
DGMGRL> CREATE CONFIGURATION '<configuration name>' AS PRIMARY DATABASE IS '<primary db_unique_name>' CONNECT IDENTIFIER IS <primary connect string>;
CREATE CONFIGURATION ORCL_DG_CONFIG AS PRIMARY DATABASE IS ORCL CONNECT IDENTIFIER IS ORCL;
DGMGRL> CREATE CONFIGURATION ORCL_DG_CONFIG AS PRIMARY DATABASE IS ORCL CONNECT IDENTIFIER IS ORCL;
Configuration "ORCL_dg_config" created with primary database "ORCL"
DGMGRL>
Verify configuration,
DGMGRL> show configuration;
Configuration - ORCL_dg_config
Protection Mode: MaxPerformance
Members:
ORCL - Primary database
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
6. Add Standby,
DGMGRL> add database <standby db_unique_name> as connect identifier is <standby connect string>;
ADD DATABASE DRORCL AS CONNECT IDENTIFIER IS DRORCL;
DGMGRL> ADD DATABASE DRORCL AS CONNECT IDENTIFIER IS DRORCL;
Database "drORCL" added
DGMGRL>
DGMGRL> show configuration;
Configuration - ORCL_dg_config
Protection Mode: MaxPerformance
Members:
ORCL - Primary database
drORCL - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
DGMGRL>
7. Enable Configuration,
DGMGRL> enable configuration;
Enabled.
DGMGRL>
6. Verify configuration,
DGMGRL>
DGMGRL> show configuration;
Configuration - ORCL_dg_config
Protection Mode: MaxPerformance
Members:
ORCL - Primary database
drORCL - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS (status updated 10 seconds ago)
DGMGRL>
DGMGRL> show database ORCL;
Database - ORCL
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
ORCL1
ORCL2
ORCL3
Database Status:
SUCCESS
DGMGRL> show database drORCL;
Database - drORCL
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds (computed 1 second ago)
Apply Lag: 0 seconds (computed 1 second ago)
Average Apply Rate: 7.00 KByte/s
Real Time Query: OFF
Instance(s):
ORCL1 (apply instance)
ORCL2
ORCL3
Database Status:
SUCCESS
#Reference Doc
12c Create Dataguard Broker Configuration - DGMGRL (Doc ID 1583588.1)
Data Guard Broker Return ORA-16664 Unable To Receive The Result From A Database (Doc ID 2138555.1)
Make sure below is set to false on primary and Standby.
#primary
SQL> sho parameter dg_broker_start
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_start boolean FALSE
#standby
SQL> sho parameter dg_broker_start
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_start boolean FALSE
1. Create config files on ASM DiskGroup.
==>On primary
alter system set dg_broker_config_file1 = '+RTLDATA01/ORCL/DATAFILE/dr1ORCL.dat' scope=both sid='*';
alter system set dg_broker_config_file2 = '+RTLDATA01/ORCL/DATAFILE/dr2ORCL.dat' scope=both sid='*';
P.S. Config file name has to be DB_UNIQUE_NAME
SQL> alter system set dg_broker_config_file1 = '+RTLDATA01/ORCL/DATAFILE/dr1ORCL.dat' scope=both sid='*';
System altered.
SQL> alter system set dg_broker_config_file2 = '+RTLDATA01/ORCL/DATAFILE/dr2ORCL.dat' scope=both sid='*';
System altered.
SQL> sho parameter config
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string +RTLDATA01/ORCL/DATAFILE/dr1
ORCL.dat
dg_broker_config_file2 string +RTLDATA01/ORCL/DATAFILE/dr2
ORCL.dat
==>On Standby
alter system set dg_broker_config_file1 = '+MDRDATA01/DRORCL/DATAFILE/dr1DRORCL.dat' scope=both sid='*';
alter system set dg_broker_config_file2 = '+MDRDATA01/DRORCL/DATAFILE/dr2DRORCL.dat' scope=both sid='*';
P.S. Config file name has to be DB_UNIQUE_NAME
SQL> alter system set dg_broker_config_file1 = '+MDRDATA01/DRORCL/DATAFILE/dr1DRORCL.dat' scope=both sid='*';
System altered.
SQL> alter system set dg_broker_config_file2 = '+MDRDATA01/DRORCL/DATAFILE/dr2DRORCL.dat' scope=both sid='*';
System altered.
SQL> sho parameter config
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string +MDRDATA01/DRORCL/DATAFILE/d
r1DRORCL.dat
dg_broker_config_file2 string +MDRDATA01/DRORCL/DATAFILE/d
r2DRORCL.dat
2. Start the Dataguard broker DMON process.
On Primary and Standby,
alter system set dg_broker_start=true sid='*';
##primary
SQL> alter system set dg_broker_start=true sid='*';
System altered.
#standby##
SQL> alter system set dg_broker_start=true sid='*';
System altered.
3.Take backup of log_archive_dest_2 and run below on primary and standby
Show parameter log_archive_dest_2
##primary
SQL> alter system set log_archive_dest_2='' scope=both sid='*';
System altered.
#standby##
SQL> alter system set log_archive_dest_2='' scope=both sid='*';
System altered.
4. Connect to DGMGRL
On Primary,
node1:/app/oracle/product/12.1.0.2/db/dbs>dgmgrl
DGMGRL for Solaris: Version 12.1.0.2.0 - 64bit Production
Copyright (c) 2000, 2013, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect /
Connected as SYSDG.
DGMGRL>
5. Create configuration,
DGMGRL> CREATE CONFIGURATION '<configuration name>' AS PRIMARY DATABASE IS '<primary db_unique_name>' CONNECT IDENTIFIER IS <primary connect string>;
CREATE CONFIGURATION ORCL_DG_CONFIG AS PRIMARY DATABASE IS ORCL CONNECT IDENTIFIER IS ORCL;
DGMGRL> CREATE CONFIGURATION ORCL_DG_CONFIG AS PRIMARY DATABASE IS ORCL CONNECT IDENTIFIER IS ORCL;
Configuration "ORCL_dg_config" created with primary database "ORCL"
DGMGRL>
Verify configuration,
DGMGRL> show configuration;
Configuration - ORCL_dg_config
Protection Mode: MaxPerformance
Members:
ORCL - Primary database
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
6. Add Standby,
DGMGRL> add database <standby db_unique_name> as connect identifier is <standby connect string>;
ADD DATABASE DRORCL AS CONNECT IDENTIFIER IS DRORCL;
DGMGRL> ADD DATABASE DRORCL AS CONNECT IDENTIFIER IS DRORCL;
Database "drORCL" added
DGMGRL>
DGMGRL> show configuration;
Configuration - ORCL_dg_config
Protection Mode: MaxPerformance
Members:
ORCL - Primary database
drORCL - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
DGMGRL>
7. Enable Configuration,
DGMGRL> enable configuration;
Enabled.
DGMGRL>
6. Verify configuration,
DGMGRL>
DGMGRL> show configuration;
Configuration - ORCL_dg_config
Protection Mode: MaxPerformance
Members:
ORCL - Primary database
drORCL - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS (status updated 10 seconds ago)
DGMGRL>
DGMGRL> show database ORCL;
Database - ORCL
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
ORCL1
ORCL2
ORCL3
Database Status:
SUCCESS
DGMGRL> show database drORCL;
Database - drORCL
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds (computed 1 second ago)
Apply Lag: 0 seconds (computed 1 second ago)
Average Apply Rate: 7.00 KByte/s
Real Time Query: OFF
Instance(s):
ORCL1 (apply instance)
ORCL2
ORCL3
Database Status:
SUCCESS
#Reference Doc
12c Create Dataguard Broker Configuration - DGMGRL (Doc ID 1583588.1)
Data Guard Broker Return ORA-16664 Unable To Receive The Result From A Database (Doc ID 2138555.1)
No comments:
Post a Comment