升级到2016年后,SQL Server代理无法连接到实例


8

在具有SQL Server 2014 Enterprise的群集Windows 2012 R2服务器上。

刚刚将实例从2014 SP1 CU4升级到2016 RTM,现在在尝试启动SQL Server代理时收到此错误。

SQL服务器代理日志

2016-06-06 11:53:58 - ? [100] Microsoft SQLServerAgent version 13.0.1601.5 (X64 unicode retail build) : Process ID 10884
2016-06-06 11:53:58 - ? [495] The SQL Server Agent startup service account is DOMAIN\USERNAME.
2016-06-06 11:54:28 - ! [150] SQL Server does not accept the connection (error: 65535). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
2016-06-06 11:54:28 - ! [000] Unable to connect to server 'SERVERNAME\INSTANCENAME'; SQLServerAgent cannot start
2016-06-06 11:54:33 - ! [298] SQLServer Error: 65535, SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. [SQLSTATE 08001] 
2016-06-06 11:54:33 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00] 
2016-06-06 11:54:33 - ! [298] SQLServer Error: 65535, 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. [SQLSTATE 08001] 
2016-06-06 11:54:33 - ! [382] Logon to server 'SERVERNAME\INSTANCENAME' failed (DisableAgentXPs)
2016-06-06 11:54:33 - ? [098] SQLServerAgent terminated (normally)

Windows应用程序日志

SQLServerAgent could not be started (reason: Unable to connect to server 'A08SQL-EDI\EDI'; SQLServerAgent cannot start).

代理启动并运行约30秒钟,然后因上述错误而死亡。有人遇到这个问题吗?您知道如何解决吗?

Answers:



12

通过在SQL Server代理配置中向实例添加别名来解决问题。

别名是使用服务器的标准域名定义的。例如:servername.domain.biz \ instance_name,否则代理仍将错误输出并关闭。

在此处输入图片说明

另外,在sp_configure中禁用了代理

sp_configure 'Agent XPs', 1
go

reconfigure with override
go

因此,重新启用它。


1
这是一种变通方法。实际的解决方案是Illidan-zhu的答案dba.stackexchange.com/a/152741/29371和/或我正在测试的MS的后续CU / SP更新。
NateJ

CU2,CU3甚至SP1仍无法解决问题。实际上,根据本文,SP1会覆盖 ODBC更新(即Illidan-zhu的回答)。因此,最好的选择是确保,如果在群集上使用多个命名实例,则可以使该ODBC驱动程序保持更新。
NateJ
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.