SymmetricDS不会将DB2 AS / 400数据同步到SQL Server

时间:2018-05-31 07:58:00

标签: ibm-midrange symmetricds

我正在尝试使用SymmetricDS在AS / 400和SQL Server中的DB2之间同步数据。我将DB2视为主节点,将SQL Server视为客户机节点。我在engine文件夹中为两个引擎配置了* .properties文件。以下是属性文件。

server-000.properties

engine.name=server-000
db.driver=com.ibm.as400.access.AS400JDBCDriver
db.url=jdbc:as400://10.132.44.10/hkrishna;naming=system;errors=full
db.user=xxxxx
db.password=xxxxxxx
registration.url=
sync.url=http://10.131.44.20:8084/sync/server-000
group.id=server
external.id=000
job.purge.period.time.ms=7200000
job.routing.period.time.ms=5000
job.push.period.time.ms=10000
job.pull.period.time.ms=10000
initial.load.create.first=true

sqlsvr-001.properties

engine.name=sqlsvr-001
db.driver=net.sourceforge.jtds.jdbc.Driver
db.url=jdbc:jtds:sqlserver://pcname:49978/symdb
db.user=xxx
db.password=xxxxx
registration.url=http://10.131.44.20:8084/sync/server-000
sync.url=http://10.131.44.20:8084/sync/server-000
group.id=sqlsvr
external.id=001
job.routing.period.time.ms=5000
job.push.period.time.ms=10000
job.pull.period.time.ms=10000

我已使用以下命令启动SymmetricDS

 sym --engine server-000 -port 8084

SymmetricDS节点已启动。以下是控制台中的日志消息。

 [server-000] - DataGapFastDetector - Full gap analysis is running
 [server-000] - DataGapFastDetector - Querying data in gaps from database took 5692 ms
 [server-000] - DataGapFastDetector - Full gap analysis is done after 5692 ms
 [server-000] - RouterService - Routing heartbeat, data.enqueue.time.ms=0, 
 data.events.insert.count=1, data.events.insert.time.ms=10714, 
 data.read.total.time.ms=1214, data.routed.count=1, 
 data.router.time.ms=5963, total.time.ms=50288
 [server-000] - RouterService - Routed 1 data events in 59816 ms

控制台中没有错误消息。但是,数据未被推送到SQL Server。 请让我知道我在这里做错了什么。我提前感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

SQL的服务器的sync.url不应该ping到与registration.url相同的URL。它应该使用连接到SQL服务器的对称的URL及其组I和外部id