SQLServer 事务复制分发错误 The process could not connect to Subscriber

来源:互联网 发布:html5数据统计模板 编辑:程序博客网 时间:2024/06/07 05:02

非域环境创建事务复制,使用IP相互连接正常。都用IP创建数据库别名,这时使用服务器名相互连接也正常。

但是初始化复制时,失败了!其他服务器按别名配置的,都能正常复制。但是这两台服务器同样配置,却不成功!

分发进程无法连接到订阅服务器!错误如下:

Error messages:The process could not connect to Subscriber 'DB-Subscriber'. (Source: MSSQL_REPL, Error number: MSSQL_REPL0)Get help: http://help/MSSQL_REPL0TCP Provider: 不知道这样的主机。 (Source: MSSQLServer, Error number: 11001)Get help: http://help/11001A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. (Source: MSSQLServer, Error number: 11001)Get help: http://help/11001Login timeout expired (Source: MSSQLServer, Error number: HYT00)Get help: http://help/HYT00

最后解决方法:hosts 文件中将IP和服务器名绑定。

C:\Windows\System32\drivers\etc\hosts


有点奇怪,有很多单向复制的服务器,都正常,唯独这台,需要在发布服务器的hosts绑定订阅服务器名称和IP。


注:此服务器是阿里云服务器,该服务器即是订阅服务器,也是另一组复制的发布和分发服务器。作为分发服务器需要绑定IP!


0 0