复制和 CDC SQL 2008r2 是什么导致某些复制表删除 CDC?
从 SQL 2005 到 SQL 2008r2 的事务复制。 CDC建立在SQL 2008r2端。每天,其中 2 到 4 个表都会丢失其 CDC 设置(即 sys.tables 中的 is_tracked_by_cdc 从 1 变为 0,并且该表的所有 CDC 对象都消失了)可能是什么原因导致这种情况以及如何防止这种情况发生?
Transactional replication from SQL 2005 into SQL 2008r2. CDC established on SQL 2008r2 side. Each day, from 2 to 4 of these tables lose their CDC settings (ie. is_tracked_by_cdc in sys.tables moves from 1 to 0 and all CDC objects for that table are gone) What could be causing this and how do I prevent it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与供应商交谈后,除了初始设置问题外,这种情况仅发生在每晚同步取代每日更改的桌子上。即复制和 cdc 在白天运行以捕获近乎实时的更改,在夜间批处理期间,表将被截断并重新计算。这为我提供了一种方法来检测何时发生这种情况,以便我可以干净地关闭 CDC,并在该过程完成后重新启动。
Spoke with the vendor, and other than initial set up issues, this was only happening on table where there is a nightly sync that supercedes the daily changes. i.e. replication and cdc run during the day to capture near real time changes, during nightly batch, the table is truncated and recalculated. The gave me a methodology to detect when this is taking place, so that I can cleanly turn off CDC and restart when the process is complete.