SQL Server复制问题

在开始之前 – 我不是 DBAtypes,我是一个软件开发types。 我们的数据库pipe理员在上个星期左右都病了,我一直在试图让我们的新function运行起来。

这个新function涉及到将一些表和视图添加到现有的复制订阅中,所以我使用SSMS中的UI将这些文章添加到订阅中。 什么都没有发生,所以我试着运行快照代理。

查看快照代理程序的监视器,看起来一切实际上在它运行的第一个3-4秒内完成。 在日志中我看到的东西如:

[0%] Activated articles for publication '[publicationname]' at the publisher.

[0%] Bulk copying snapshot data for article 'new_table_name'

[0%] Bulk copied snapshot data for article 'new_table_name' (1068 rows).

(前两行重复每个新表)

然后进度从0%跳到93%:

[93%] Pre-loading meta-data of all tables in the publisher database for scripting

[93%] Pre-loading meta-data of all stored procedures in the publisher database for scripting

[93%] Pre-loading meta-data of all views in the publisher database for scripting

[93%] Pre-loading meta-data of all user-defined functions in the publisher database for scripting

[93%] Sorting article objects in the proper creation order

然后,我开始看到很多这些:

[93%] The published object [objectnamehere] (StoredProcedure) is dependent on the unpublished object [objectnamehere] (Table), creation of the published object at the subscriber may fail unless the dependency is satisfied ahead of time.

但是,他们都是我不特别关心的事情……但我不积极,我可以从出版物中删除他们,而不会破坏任何东西。 有〜20-30这些。

然后,代理运行了一下,没有做任何事情。 10分钟后,我得到这个:

[93%] The process is running and is waiting for a response from the server.

然后每隔10分钟再做两次,直到超时为止:

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

现在,看起来正常的事务复制不起作用,因为没有好的当前快照。

不用说,我很深,我真的需要一些帮助。 谢谢。

原来,我有一些其他工作正在运行,阻止快照代理。 如下所述: http : //www.sqlmonster.com/Uwe/Forum.aspx/sql-server-replication/8439/Timeout-error-running-snapshot-agent

快照代理需要独占锁,所以它正在等待锁。 禁用作业,然后重新运行代理工作(只需要约5秒)。

尝试增加代理的-QueryTimeOut。