MSSQLSERVER_17053
適用於:SQL Server
詳細資料
屬性 | 值 |
---|---|
產品名稱 | SQL Server |
事件識別碼 | 17053 |
事件來源 | MSSQLSERVER |
元件 | SQLEngine |
符號名稱 | OS_ERROR |
訊息文字 | %ls:發生作業系統錯誤 %ls。 |
說明
發生一般作業系統錯誤。 錯誤訊息會包裝更具體的作業系統 (OS) 錯誤,可用來協助診斷該失敗。 範例包括讀取或寫入失敗的資料或記錄檔、登錄讀取/寫入作業,或其他非預期的 WIN32 API 呼叫失敗。
您經常會在 SQL Server 錯誤記錄檔中看到此錯誤和其他錯誤訊息。 作業系統錯誤會顯示其數值,後面接著錯誤的文字訊息。
使用者動作
以下是您可能會看到 17053 錯誤與其他錯誤的範例。 每個範例都提供如何處理特定案例的想法。
OS 錯誤 665 的範例
在此情況下,基礎 OS 錯誤 665 表示檔案寫入或讀取期間發生檔案系統限制。
Error: 17053, Severity: 16, State: 1.
K:\DATA\MyDB.MDF_MSSQL_DBCC11: Operating system error 665(The requested operation could not be completed due to a file system limitation) encountered.
The operating system returned error 665(The requested operation could not be completed due to a file system limitation) to SQL Server during a write at offset 0x00031397ce2000 in file 'K:\DATA\MyDB.MDF_MSSQL_DBCC11'.
解決方案:
如果您遇到此案例,請遵循本文中的步驟來解決: SQL Server 檔案回報 OS 錯誤 665 和 1450
SQL Server 錯誤 9001 和基礎 OS 錯誤 1117 和 21 的範例
在此情況下,基礎 OS 錯誤 1117 表示磁片裝置發生錯誤或實際損壞。
Error: 17053, Severity: 16, State: 1.
SQLServerLogMgr::LogWriter: Operating system error 1117(The request could not be performed because of an I/O device error.) encountered.
Write error during log flush.
Error: 9001, Severity: 21, State: 5.
The log for database 'SQLContoso' is not available. Check the operating system error log for related error messages. Resolve any errors and restart the database.
在此情況下,基礎 OS 錯誤為 21,表示磁片裝置已離線,且無法供 OS 和 SQL Server 使用。
Error: 17053, Severity: 16, State: 1.
SQLServerLogMgr::LogWriter: Operating system error 21(The device is not ready.) encountered.
Write error during log flush.
Error: 9001, Severity: 21, State: 4.
The log for database 'ContosoDB' is not available. Check the operating system error log for related error messages. Resolve any errors and restart the database.
解決方案:
如果您遇到類似的案例,請解決基礎 OS 錯誤。 在此情況下,請與您的系統管理員和硬體廠商合作,以確保磁片裝置已上線,正常運作,而且不會報告任何錯誤和損壞。 在這種情況下,執行 DBCC CHECKDB 來復原磁碟裝置之後,您可能必須檢查資料庫的實體完整性。 如果報告資料庫損毀,請還原最後已知的良好資料庫備份。
SQL Server 錯誤 9001 和基礎 OS 錯誤 170 的範例
在此情況下,基礎 OS 錯誤 170 表示磁片上的檔案正由其他程式使用或鎖定,通常是檔案系統篩選驅動程式。
Error: 17053, Severity: 16, State: 1.
SQLServerLogMgr::LogWriter: Operating system error 170(The requested resource is in use.) encountered.
Write error during log flush.
Error: 9001, Severity: 21, State: 5.
The log for database 'SQLContoso' is not available. Check the operating system error log for related error messages. Resolve any errors and restart the database.
解決方案:
如果您遇到類似的案例,請解決基礎 OS 錯誤。 在此情況下,請與您的系統管理員合作,以確保其他程式不會鎖定資料庫和記錄檔。 最常見的是防毒或主機保護軟體、重組軟體,或長時間保留檔案鎖定的備份軟體,可能會導致此 OS 錯誤。 請務必將資料庫檔案排除在掃描或使用中;請參閱 如何選擇要在執行 SQL Server 的電腦上執行的防毒軟體。
在 WSFC (叢集) 環境中,如果磁片磁碟機未在後端正確設定,它們可能會在不應該設定資料庫檔案時鎖定資料庫檔案。 如需 WSFC 儲存體的詳細資訊,請參閱 在 Azure 虛擬機器上使用 SQL Server 容錯移轉叢集硬體解決方案 和 容錯移轉叢集實例 - 儲存體
SQL Server 錯誤 9002 和基礎 OS 錯誤 112 的範例
在此情況下,基礎 OS 錯誤 112 表示磁片區空間不足。
Error: 17053, Severity: 16, State: 1.
L:\SQLLOG\Contoso.LDF: Operating system error 112(There is not enough space on the disk.) encountered.
Error: 9002, Severity: 17, State: 5.
The transaction log for database 'ContosoDb' is full due to 'DATABASE_MIRRORING'.
Error: 5149, Severity: 16, State: 3.
MODIFY FILE encountered operating system error 112(There is not enough space on the disk.) while attempting to expand the physical file 'L:\SQLLOG\Contoso.LDF'.
解決方案:
如果您遇到類似的案例,請解決基礎 OS 112 錯誤。 在此情況下,請與您的系統管理員合作,釋放裝置上的磁碟空間,然後嘗試解決完整的交易記錄。 如需疑難排解錯誤 9002 的詳細步驟,請參閱 針對完整交易記錄進行疑難排解(SQL Server 錯誤 9002)。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應