主机上执行
db2 UPDATE DB CFG FOR XMHIS USING HADR_LOCAL_HOST 192.168.1.2
db2 UPDATE DB CFG FOR XMHIS USING HADR_LOCAL_SVC 55001
db2 UPDATE DB CFG FOR XMHIS USING HADR_REMOTE_HOST 192.168.1.5
db2 UPDATE DB CFG FOR XMHIS USING HADR_REMOTE_SVC 55002
db2 UPDATE DB CFG FOR XMHIS USING HADR_REMOTE_INST db2admin
db2 UPDATE DB CFG FOR XMHIS USING HADR_SYNCMODE NEARSYNC
db2 UPDATE DB CFG FOR XMHIS USING HADR_TIMEOUT 120
备机上执行
db2 UPDATE DB CFG FOR XMHIS USING HADR_LOCAL_HOST 192.168.1.5
db2 UPDATE DB CFG FOR XMHIS USING HADR_LOCAL_SVC 55002
db2 UPDATE DB CFG FOR XMHIS USING HADR_REMOTE_HOST 192.168.1.2
db2 UPDATE DB CFG FOR XMHIS USING HADR_REMOTE_SVC 55001
db2 UPDATE DB CFG FOR XMHIS USING HADR_REMOTE_INST db2admin
db2 UPDATE DB CFG FOR XMHIS USING HADR_SYNCMODE NEARSYNC
db2 UPDATE DB CFG FOR XMHIS USING HADR_TIMEOUT 120