您的位置:首页 > 数据库

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

2016-08-18 17:51 633 查看
非域环境创建事务复制,使用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_REPL0 TCP Provider: 不知道这样的主机。 (Source: MSSQLServer, Error number: 11001)
Get help: http://help/11001 A 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/11001 Login timeout expired (Source: MSSQLServer, Error number: HYT00)
Get help: http://help/HYT00
最后解决方法:hosts 文件中将IP和服务器名绑定。
C:\Windows\System32\drivers\etc\hosts

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

注:此服务器是阿里云服务器,该服务器即是订阅服务器,也是另一组复制的发布和分发服务器。作为分发服务器需要绑定IP!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐