溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

SQL Server Agent 啟動后自動停止,ODBC驅動丟失

發布時間:2020-08-01 22:37:15 來源:網絡 閱讀:1761 作者:emcome 欄目:關系型數據庫

環境:
2臺SQL Server 2012 Always ON服務

現象:
Always ON服務正常,同步正常,應用正常。

Second Server Server Agent 啟動數秒后就自動停止。

處理過程:
1、查看Windows 系統日志,顯示如下信息:

SQL Server Agent 啟動后自動停止,ODBC驅動丟失

SQL Server Agent 啟動后自動停止,ODBC驅動丟失

2、在SQL Studio 中查看當前Error Log

Date,Source,Severity,Message
09/25/2018 13:54:07,,Information,[098] SQLServerAgent terminated (normally)
09/25/2018 13:54:07,,Error,[382] Logon to server 'domain\SQLInstance' failed (DisableAgentXPs)
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0<c/> Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0<c/> Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0<c/> Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0<c/> Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[165] ODBC Error: 0<c/> Data source name not found and no default driver specified [SQLSTATE IM002]
09/25/2018 13:54:07,,Error,[000] Unable to connect to server 'domain\SQLInstance'; SQLServerAgent cannot start
09/25/2018 13:54:07,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:53:37,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:53:07,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:52:37,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:52:07,,Error,[150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
09/25/2018 13:52:07,,Information,[495] The SQL Server Agent startup service account is domain\dbadmin.
09/25/2018 13:52:07,,Information,[100] Microsoft SQLServerAgent version 11.0.3000.0 (X64 unicode retail build) : Process ID 1008


3、結合以上錯誤,似乎都指向ODBC,打開ODBC,發現ODBC 64bit 中Driver為空

SQL Server Agent 啟動后自動停止,ODBC驅動丟失

正常是應該有SQL Server和 SQL Native Client 11這兩個驅動的。


4、在SQL Server 2012 安裝包中找到sqlncli.msi 重新安裝SQL Native Client 11(注意選擇重裝,而不是修復)。


5、再次在ODBC中查看,SQL Native Client 11已經有了。


6、重啟SQL Agent ,觀察幾分鐘后沒有再出現自動停止的現象,問題解決。


后面有看到一篇介紹ODBC驅動丟失的文章:http://www.cnblogs.com/chinalantian/archive/2016/06/13/5581644.html 

了解到可能是卸載某些軟件的時候會把ODBC中的部分驅動也刪除,咨詢客戶表示近期有刪除一些軟件。

特此記錄! 


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女