SQLServer 事务复制分发错误 The process could not connect to
发布时间:2020-12-12 13:26:23 所属栏目:MsSql教程 来源:网络整理
导读:非域环境创建事务复制,使用IP相互连接正常。都用IP创建数据库别名,这时使用服务器名相互连接也正常。 但是初始化复制时,失败了!其他服务器按别名配置的,都能正常复制。但是这两台服务器同样配置,却不成功! 分发进程无法连接到订阅服务器!错误如下:
非域环境创建事务复制,使用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:WindowsSystem32driversetchosts 有点奇怪,有很多单向复制的服务器,都正常,唯独这台,需要在发布服务器的hosts绑定订阅服务器名称和IP。 注:此服务器是阿里云服务器,该服务器即是订阅服务器,也是另一组复制的发布和分发服务器。作为分发服务器需要绑定IP! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |