DB2高可用hadr搭建参数配置

主机上执行
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

上一篇:java – OpenJPA脏读提示


下一篇:java – 批量选择记录Spring JDBCTemplate