Professional Documents
Culture Documents
Troubleshooting HADR Issues in SAP ASE 16.0 Environment - SRS
Troubleshooting HADR Issues in SAP ASE 16.0 Environment - SRS
Symptom
Environment
Resolution
• There are several RMA Agent commands you can execute to get more information about HADR
environment:
1. sap_version all /* Displays versions of ASE/RS/RMA Agent in both, Primary & Standby,
sites */
2. sap_set /* Displays all the settings in the environment, including ports, host names, and
user names */
3. sap_status path /* Displays status of replication */
4. sap_status task /* Displays the asynchronous task status */
5. sap_status resource /* Monitors the Replication Server device usage and queue backlog
and SAP ASE transaction log size and backlog */
6. sap_status route /* Displays the sequence of queues, servers and threads in the
replication path */
7. sap_status synchronization /* Displays synchronization status */
• The best way to provide this information is to collect them into a text file.
• Use the following process to capture them:
1. Create file HADR_CMD.sql which contains the following command
sap_version all
go
sap_set
go
sap_status
go
sap_status resource
go
sap_status task
go
sap_status path
go
sap_status route
go
sap_status synchronization
go
Note: Sometimes, information between the primary node and secondary node are out
of sync so it is necessary to check both nodes.
2. Execute file HADR_CMD.sql with program isql on primary node, and capture result in a
text file HADR_CMD_PRIM_RESULT.txt
3. Execute file HADR_CMD.sql with program isql on secondary node, and capture result in a
text file HADR_CMD_SEC_RESULT.txt
In case of errors, review the commands in HADR_CMD.sql and ensure they are
correctly copied without any typo.
If the cause of the error is not identified, then report it to SAP Support.
• Review logs
• In ASE 16.0 SP03 and higher, use RMA command, sap_collect_log to collect ASE/RS/RMA logs
of different hosts to one local directory $SYBASE/DM/collected_logs:
• If RMA command, sap_collect_log is not available, the log files location for version ASE 16.0 are:
• Replication Server log files
$SYBASE/DM/<CID>_REP_<logical_site>/<CID>_REP_<logical_site>.log
$SYBASE/DM/RMA-16_0/instances/AgentContainer/logs/RMA_*.log
$SYBASE/ASE-16_0/install/*.log
admin who
go
admin who_is_down
go
admin who, sqm
go
admin who, sqt
go
admin disk_space, mb
go
admin stats, mem_detail_stats
go
sp_who
go
use <database>
go
sp_config_rep_agent <database>
go
sp_helpdb <database>
go
$SYBASE/<SIDFM>/log/dev_sybdbfm
• SYBHA.PFL
Documentation/Known issues
See Also
• KBA 2305518 - Troubleshooting HADR issues in ASE 15.7 Business Suite environment
• KBA 2175528 - FAQ HADR with SAP Replication Server certified for Business Suite
• KBA 2616427 - How to gather all log files in HADR ASE 16.0 SP03 and higher
Keywords
Sybase, HADR, troubleshooting, DR Agent, RMA, setuphadr, active, standby, sap_status, materialize
Products
Other Components
Component Description
2379871 How to refresh the latency calculation time in a HADR environment - SRS
2089569 How to re-materialize master or SID databases - SAP ASE and SRS
Performing a Teardown