【问题标题】:Issue With Web Synchronization & Merge Replication Microsoft SQL Server / 2008 r2Web 同步和合并复制问题 Microsoft SQL Server / 2008 r2
【发布时间】:2013-12-12 20:20:27
【问题描述】:

我正在通过在远程位置放置一个 xenserver 盒子来扩展我们的网络,以减少我们的网络资源的中断。我们所有的服务器都在 xenserver 上,带有 MS Server 2008r2 和 SQL Server 10。我必须补充一下,我是开发人员,而不是系统管理员,所以我以前从未做过数据库复制设置。

我已成功让一台服务器作为发布者/分发者 (SVR-DBDISTRIB) 和另一台作为订阅者 (SVR-DBREPLICA)。他们很乐意互相更新,没有任何错误。由于一台服务器必须离开现场,我计划从我们的一台 ms Web 服务器(Server 2008r2 / IIS 7.5)使用 Web 同步。我已将所有 repl_merge 等密码、自我认证证书、安装 SQL 连接等功能添加到 IIS 框中,并且我已经让 replisapi.dll 使用保存到订阅者的受信任证书根目录的证书(因此没有证书警告来当我打电话给https://server.domain/SQLReplication/replisapi.dll)。使用 Web 服务器管理员密码登录时,我运行了 replisapi.dll?diag 并且一切正常。我还可以使用我设置的 IISSQLRepl 密码登录,以便通过订阅者的基本身份验证访问 Web 服务器(同样没有证书问题)。系统上没有设置代理。

当我在 SVR-DBDISTRIB 上创建与非 Web 复制一起使用的新 Web 同步发布时,SVR-DBREPLICA 上的订阅者可以与发布者通信,因为订阅显示在 SVR-DBDISRIB 中。分销商的代理没有错误消息,但订阅者没有出现表更新,尽管我确实收到了以下(相当无用的)错误消息:

系统找不到指定的文件

这是工作经历:


Date        12/12/2013 18:42:28
Log     Job History (SVR-DBDISTRIB-test-web-test-web-full-SVR-DBREPLICA-test-web-     repl- 0)

Step ID     1
Server      SVR-DBREPLICA
Job Name        SVR-DBDISTRIB-test-web-test-web-full-SVR-DBREPLICA-test-web-repl- 0
Step Name       Run agent.
Duration        00:00:01
Sql Severity        0
Sql Message ID      0
Operator Emailed        
Operator Net sent       
Operator Paged      
Retries Attempted       0

Message
2013-12-12 18:42:28.987 Copyright (c) 2008 Microsoft Corporation
2013-12-12 18:42:28.987 Microsoft SQL Server Replication Agent: replmerg
2013-12-12 18:42:28.987 
2013-12-12 18:42:28.987 The timestamps prepended to the output lines are expressed in  terms of UTC time.

2013-12-12 18:42:28.987 User-specified agent parameter values:
        -Publisher SVR-DBDISTRIB
        -PublisherDB test-web
        -Publication test-web-full
        -Subscriber SVR-DBREPLICA
        -SubscriberDB test-web-repl
        -SubscriptionType 1
        -SubscriberSecurityMode 1
        -Distributor SVR-DBDISTRIB
        -XJOBID 0x03CFDF8BD2749449A5E4D81AF5270A97
        -XJOBNAME SVR-DBDISTRIB-test-web-test-web-full-SVR-DBREPLICA-test-web-repl- 0
        -XSTEPID 1
        -XSUBSYSTEM Merge
        -XSERVER SVR-DBREPLICA
        -XCMDLINE 0
        -XCancelEventHandle 0000000000000160
        -XParentProcessHandle 000000000000064C

2013-12-12 18:42:29.022 Connecting to Subscriber 'SVR-DBREPLICA'

2013-12-12 18:42:29.127 Connecting to Subscriber 'SVR-DBREPLICA'

2013-12-12 18:42:29.206 The upload message to be sent to Publisher 'SVR-DBDISTRIB' is being generated
2013-12-12 18:42:29.210 The merge process is using Exchange ID '8E8BFAE7-B280-4016-  AB07-517DC4961361' for this web synchronization session.

2013-12-12 18:42:29.240 **The system cannot find the file specified.**

2013-12-12 18:42:29.242 Category:NULL
Source:  Merge Process
Number:  -2147221502
Message: The system cannot find the file specified.

2013-12-12 18:42:29.244 Category:NULL
Source:  Merge Process
Number:  -2147199373
Message: The Merge Agent failed to connect to the Internet proxy server for user  'repl_merge' during Web synchronization. Ensure that the proxy server settings are correctly configured in Internet Explorer, or specify the -InternetProxyServer parameter when starting the Merge Agent.

2013-12-12 18:42:29.245 Category:NULL
Source:  Merge Process(Web Sync Client)
Number:  -2147024896
Message: The Merge Agent could not connect to the URL  'https://server.domain/SQLReplication/replisapi.dll' during Web synchronization. Please   verify that the URL, Internet login credentials and proxy server settings are correct and  that the Web server is reachable.

我知道有一个“详细”设置,但我不确定这是否是详细输出。所有 MS technet 文档都谈到了使用 SQL Enterprise Manager(从服务器 2000 起停产)来执行此操作。

任何关于在哪里寻找的帮助或建议将不胜感激 - 这是我在推出之前需要完成的最后一项工作,我现在已经花了 2 天时间......

【问题讨论】:

    标签: sql-server sql-server-2008-r2 iis-7.5 merge-replication


    【解决方案1】:

    如果您的网络已连接,请使用网络共享而不是 ftp 或网络同步。更容易维护,您不需要额外的网络服务器;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-07
      • 2012-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多