对称表不同步

发布于 2025-02-09 22:57:19 字数 327 浏览 1 评论 0 原文

我接管了一个使用Symmetricds在目标和源之间同步表的项目。目前,来自源的表尚未同步到目标。 我已经在线搜索,但没有帮助。

我已经检查了SYM_OUTONGY_BATCH和SYM_INCOMING_BATCH表,但无法弄清楚那里的信息。

我还查询了Sync_trigger表。我将查询作为下面的链接的结果。

如果您对我可以看的地方有一个想法,请告诉我。我可以运行查询并给您结果。 sync_trigger结果

I took over a project that uses SymmetricDs to sync tables between a target and a source. The tables from the source aren't syncing to the target at the moment.
I have searched online but found no help.

I have checked the sym_outgoing_batch and sym_incoming_batch tables but can't figure out the use of the information there.

I also queried the sync_trigger table. I have the result of the query as a link below.

If you have an idea on where I could look, please let me know. I can run queries and give you the result.sync_trigger result

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最冷一天 2025-02-16 22:57:19

这些行不按以下行为“ - 位置!='ok'”,查看是否有任何情况下的状态不在状态下,如果有导致同步停止

-- SQL QUERY

-- Symmetric DS : MONITOR : HEARTBEAT / INCOMING / OUTGOING / MONITOREVENTS

SELECT node_id, host_name, getdate() as dtNOW ,heartbeat_time FROM [tablename].[dbo].[sd_node_host] with (NOLOCK) where  heartbeat_time > '2022-01-01'

--SELECT * FROM [tablename].[dbo].[sd_context] with (NOLOCK)

SELECT * FROM [tablename].[dbo].[sd_outgoing_batch] with (NOLOCK)
--where status != 'OK'
order by create_time desc

SELECT * FROM [tablename].[dbo].[sd_incoming_batch] with (NOLOCK)
--where status != 'OK'
order by create_time desc

-- Symmetric DS : MONITOR

SELECT * FROM [tablename].[dbo].[sd_monitor_event] with (NOLOCK) WHERE is_resolved != 1

SELECT * FROM [tablename].[dbo].[sd_monitor_event] with (NOLOCK)

编辑的

情况下,这是Symmetricds用户指南的链接。

基本上意味着它已准备就绪复制。您是否曾经设置过它,或者这是您想开始的新设置?

编辑2引擎配置

主要

engine.name=<SDS_MAIN>

db.driver=net.sourceforge.jtds.jdbc.Driver
db.url=jdbc:jtds:sqlserver://<IP>:1433/<DB>;useCursors=true;bufferMaxMemory=10240;lobBuffer=5242880
db.user=***********
db.password=***********

registration.url=
sync.url=ttp://<IP>:<PORT>/sync/<SDS_MAIN>

group.id=<GID>
external.id=000

auto.registration=true
initial.load.create.first=true

sync.table.prefix=sym
#start.initial.load.extract.job=false

compression.level=-1
compression.strategy=0

儿童

engine.name=<SDS_CHILD>

db.driver=net.sourceforge.jtds.jdbc.Driver
db.url=jdbc:jtds:sqlserver://<IP>:1433/<DB>;useCursors=true;bufferMaxMemory=10240;lobBuffer=5242880
db.user=***********
db.password=***********

registration.url=http://<IP>:<PORT>/sync/<SDS_MAIN>
sync.url=http://<IP>:<PORT>/sync/<SDS_CHILD>

group.id=<GID>
external.id=100

auto.registration=true
initial.load.create.first=true

sync.table.prefix=sym
start.initial.load.extract.job=false

compression.level=-1
compression.strategy=0

Uncomment these lines "--where status != 'OK'" to see if anything is NOT in OK state if there is that is causing the SYNC to STOP

-- SQL QUERY

-- Symmetric DS : MONITOR : HEARTBEAT / INCOMING / OUTGOING / MONITOREVENTS

SELECT node_id, host_name, getdate() as dtNOW ,heartbeat_time FROM [tablename].[dbo].[sd_node_host] with (NOLOCK) where  heartbeat_time > '2022-01-01'

--SELECT * FROM [tablename].[dbo].[sd_context] with (NOLOCK)

SELECT * FROM [tablename].[dbo].[sd_outgoing_batch] with (NOLOCK)
--where status != 'OK'
order by create_time desc

SELECT * FROM [tablename].[dbo].[sd_incoming_batch] with (NOLOCK)
--where status != 'OK'
order by create_time desc

-- Symmetric DS : MONITOR

SELECT * FROM [tablename].[dbo].[sd_monitor_event] with (NOLOCK) WHERE is_resolved != 1

SELECT * FROM [tablename].[dbo].[sd_monitor_event] with (NOLOCK)

EDIT

here is the link for the symmetricds user guide.

https://www.symmetricds.org/doc/3.13/html/user-guide.html#_outgoing_batch

basically NE means it is ready for replication. Did you ever have it set up or is this a new setup that you are trying to get started?

EDIT 2 ENGINE CONFIGS

MAIN

engine.name=<SDS_MAIN>

db.driver=net.sourceforge.jtds.jdbc.Driver
db.url=jdbc:jtds:sqlserver://<IP>:1433/<DB>;useCursors=true;bufferMaxMemory=10240;lobBuffer=5242880
db.user=***********
db.password=***********

registration.url=
sync.url=ttp://<IP>:<PORT>/sync/<SDS_MAIN>

group.id=<GID>
external.id=000

auto.registration=true
initial.load.create.first=true

sync.table.prefix=sym
#start.initial.load.extract.job=false

compression.level=-1
compression.strategy=0

CHILD

engine.name=<SDS_CHILD>

db.driver=net.sourceforge.jtds.jdbc.Driver
db.url=jdbc:jtds:sqlserver://<IP>:1433/<DB>;useCursors=true;bufferMaxMemory=10240;lobBuffer=5242880
db.user=***********
db.password=***********

registration.url=http://<IP>:<PORT>/sync/<SDS_MAIN>
sync.url=http://<IP>:<PORT>/sync/<SDS_CHILD>

group.id=<GID>
external.id=100

auto.registration=true
initial.load.create.first=true

sync.table.prefix=sym
start.initial.load.extract.job=false

compression.level=-1
compression.strategy=0
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文