2016-08-11 91 views
1

我在我的一個客戶端系統中遇到此問題。 當我們通過SSMS連接到SQL Server 2008數據庫引擎,我正在錯誤由於無法訪問文件或內存不足或磁盤空間不足,無法打開數據庫'msdb'

Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details. (Microsoft SQL Server, Error: 945)

然後也連接到數據庫。但客戶端數據庫不可見。如果我試圖再次擴展'系統數據庫'或'安全'或'管理',我收到這個錯誤。

硬盤有80 GB的可用空間,帳戶權限,.mdf和.ldf文件不只讀

在SQL Server配置管理器 - > SQL Server屬性 - >登錄爲 - >選擇「這帳戶「並使用帳戶名稱」admin「及其密碼。

他們能夠通過來自其他PC的應用程序進行數據操作。問題僅限於從SSMS訪問。

在錯誤日誌中,我們可以看到

2016-08-10 18:02:56.17 spid13s  Error: 824, Severity: 24, State: 2. 
2016-08-10 18:02:56.17 spid13s  SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x2411d175; actual: 0x2411dfd1). It occurred during a read of page (2:0) in database ID 4 at offset 0000000000000000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online. 
2016-08-10 18:02:56.17 spid13s  Error: 5105, Severity: 16, State: 1. 
2016-08-10 18:02:56.17 spid13s  A file activation error occurred. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf' may be incorrect. Diagnose and correct additional errors, and retry the operation. 
2016-08-10 18:02:56.17 spid13s  File activation failure. The physical file name "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf" may be incorrect. 
2016-08-10 18:02:56.17 spid13s  The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure. 
2016-08-10 18:02:56.17 spid36s  Error: 945, Severity: 14, State: 2. 
2016-08-10 18:02:56.17 spid36s  Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details. 
2016-08-10 18:02:56.17 spid36s  Problems recording information in the msdb..suspect_pages table were encountered. This error does not interfere with any activity except maintenance of the suspect_pages table. Check the error log for more information. 

請給我建議我們如何才能糾正這個

+0

看起來這是一個磁盤內存問題,所以先檢查空間。欲瞭解更多信息:http://www.blog.sqlrecoverytool.com/fix-sql-error-945.html https://www.mssqltips.com/sqlservertip/3658/how-to-fix-a-corrupt-msdb - SQL服務器數據庫/ –

回答

1

因爲我MSDB文件已損壞,並沒有系統數據庫的備份,我必須重建MSDB數據庫幸運的是,沒有工作或警報等......我試圖從以下鏈接步驟 Rebuild System Databases

在執行計劃只有一個更改是在第6步從重新生成MSDB從instmsdb.sql。 由於發生錯誤,我在命令提示符下停止了SQL Server服務,並從配置管理器啓動。 然後打開SSMS,連接到數據庫引擎(我得到一個錯誤,單擊確定),然後,從 C:\ Program Files \ Microsoft SQL Server \ MSSQL10.MSSQLSERVER \ MSSQL \ Install \ instmsdb打開instmsdb.sql。 sql並執行。

相關問題