Professional Documents
Culture Documents
We need to check the following parameter in Primary system. No action here and proceed for "Step-
2".
dg_broker_start=true
log_archive_dest_1='LOCATION="H:\oracle\BP1\oraarch", valid_for=(ONLINE_LOGFILE,ALL_ROLES)'
log_archive_dest_state_1='ENABLE'
log_archive_format='%t_%s_%r.dbf'
log_archive_max_processes=2
log_archive_min_succeed_dest=1
log_archive_trace=0
log_file_name_convert='O12','O12'
standby_file_management='AUTO'
Step-2:
#As per "Step-2", run the following command in the Primary system in SQL Prompt and copy the
output in a notepad':
Step-3:
#As per "Step-2", the following output is copied in a notepad and verify the parameter as per the
step#1:
GISTER_FslSAPBP1DBSD))
\BP1arch
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_max_processes integer 4
log_archive_min_succeed_dest integer 1
log_archive_trace integer 0
log_file_name_convert string
SQL> show parameter standby_file_management
SQL>
Step-4:
#Take the backup of init<SID>.ora, spfile etc. Refer the screenshot attached in the word document in
primary system:
eg:
In my system:
I:\oracle\BP1\sapdata1\database
I:\oracle\BP1\sapprof (Screenshot-3)
E:\usr\sap\BP1\SYS\profile\oracle
Step-5:
Based on the above output, we need to compare the value in "Step-1" and "Step-3"as given above.
The new values need to be applied as follows. Execute it in the sql prompt of primary system.
(Sample Screenshots provided in the Annexure-1 (end of the document) for the below commands)
Step-6
We need to add the following parameter in Primary System through SQL prompt.
https://imbibhuti.wordpress.com/2013/10/15/fal_client-and-fal_server-parameters/
Step-7
We need to add the following parameter in Primary System through SQL prompt.
Step-7
Step-8
Step-9
C:\Users\bp1adm>dgmgrl /
EDIT DATABASE BP1 SET PROPERTY DelayMins='0'; (already in place. No need to modify)
EDIT DATABASE GP1 SET PROPERTY MaxFailure='100'; (For my case I am not changing currently. As per
document we need to change 100)
EDIT DATABASE GP1 set PROPERTY hostname = 'Primary'; (already in place. No need to modify)
EDIT DATABASE GP1 set PROPERTY logfilenameconvert ="'BP1','BP1'"; (Since the Source and target are
same, so No need to modify)
EDIT DATABASE BP1 set TransportLagThreshold = '0'; (As per the annexure 4 screenshot, it seems this
parameter is a must)
EDIT DATABASE BP1 set PROPERTY ApplyLagThreshold = '0'; (I just documented. Incase of any issue we
will modify)
EDIT DATABASE BP1 set PROPERTY TransportDisconnectedThreshold = '0'; (I just documented. Incase of
any issue we will modify)
EDIT DATABASE GP1_DR SET PROPERTY LogXptMode='ASYNC'; (already in place. No need to modify)
EDIT DATABASE BP1_DR SET PROPERTY DelayMins='0'; (already in place. No need to modify)
EDIT DATABASE GP1_DR SET PROPERTY MaxFailure='100'; (For my case I am not changing currently. As
per document we need to change 100)
EDIT DATABASE GP1_DR set PROPERTY hostname = 'Primary'; (already in place. No need to modify)
EDIT DATABASE GP1_DR set PROPERTY logfilenameconvert ="'BP1','BP1'"; (Since the Source and target
are same, so No need to modify)
EDIT DATABASE BP1_DR set TransportLagThreshold = '0'; (As per the annexure 4 screenshot, it seems
this parameter is a must)
EDIT DATABASE BP1_DR set PROPERTY ApplyLagThreshold = '0'; (I just documented. Incase of any issue
we will modify)
EDIT DATABASE BP1_DR set PROPERTY TransportDisconnectedThreshold = '0'; (I just documented.
Incase of any issue we will modify)
Step-12
Step-13
The “configuration status” should be “SUCCESS”. That means every configuration is configured
correctly. Else we need to troubleshoot.
Step-14
For other command for checking the DGMGRL configuration, trouble shooting, check the Annexure-3.
This should always run in the node where the primary database is running.
Annexure-1
The following are the Sample Screenshots (No action or steps here). Just an information only:
alter system set local_listener = '(ADDRESS = (PROTOCOL = TCP)(HOST = primary)(PORT = 1527))'
SCOPE=BOTH;
Standby
Annexure-2
From Primary
C:>tnsping BP1
C:>tnsping BP1.World
C:>tnsping BP1_DR
C:>tnsping BP1._DRWorld
sqlplus sys/Welcome1234$@BP1_DR.WORLD as sysdba
C:>tnsping BP1_DR
C:>tnsping BP1._DRWorld
C:>tnsping BP1
C:>tnsping BP1.World
sqlplus sys/Welcome1234$@BP1_DR.WORLD as sysdba
This should always run in the node where the primary database is running.
Annexure-4
The following is the example. We need to verify the parameter as per the Step-11 and then modify.