2015-04-22 111 views
1

我們已經與我們的RMS_Headquarters的問題(前端應用程序訪問數據庫)的數據庫在SQL Express運行2005MS RMS SQL Server數據庫錯誤

檢查所有事件日誌服務器上之後,我遇到一些錯誤來與硬盤和sqlserver相關。

磁盤錯誤快照

SQLEXPRESS錯誤

我已經執行兩個命令如下找出任何錯誤的磁盤或SQL數據庫。

chkdsk:系統在硬盤上發現壞扇區我運行此代碼而沒有/ f來獲取信息。

DBCC CHECKDB with ALL_ERRORMSGS,NO_INFOMSGS,結果如下。

我跑了chkdsk/f來解決磁盤錯誤。這個命令有助於讓hq數據庫啓動並運行(應用程序從這一點起工作正常)。我還在SQL Server上運行了帶有ALL_ERRORMSGS,NO_INFOMSGS的DBCC CHECKDB以檢查數據庫狀態。 DBCC執行時很少出現錯誤,請參閱下文。

Msg 8928, Level 16, State 1, Line 1 
Object ID 1429580131, index ID 1, partition ID 72057598907908096, alloc unit ID 72057598960730112 (type In-row data): Page (1:235150) could not be processed. See other errors for details. 
Msg 8941, Level 16, State 2, Line 1 
Table error: Object ID 1429580131, index ID 1, partition ID 72057598907908096, alloc unit ID 72057598960730112 (type In-row data), page (1:235150). Test (sorted [i].offset <= m_freeData) 
failed. Slot 0, offset 0xffff is invalid. 
Msg 8976, Level 16, State 1, Line 1 
Table error: Object ID 1429580131, index ID 1, partition ID 72057598907908096, alloc unit ID 72057598960730112 (type In-row data). Page (1:235150) was not seen in the scan although its 
parent (1:306430) and previous (1:235149) refer to it. Check any previous errors. 
Msg 8978, Level 16, State 1, Line 1 
Table error: Object ID 1429580131, index ID 1, partition ID 72057598907908096, alloc unit ID 72057598960730112 (type In-row data). Page (1:235151) is missing a reference from previous page 
(1:235150). Possible chain linkage problem. 
CHECKDB found 0 allocation errors and 4 consistency errors in table 'TenderEntry' (object ID 1429580131). 
CHECKDB found 0 allocation errors and 4 consistency errors in database 'RMS_Headquarters'. 
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (RMS_Headquarters). 

系統信息:

  • 操作系統:Windows Server 2003 R2
  • 的SQL Server:SQL Server 2005中(9.0.4035)

我從星期天備份(2015年4月20日)晚上,該備份不會報告任何錯誤。 (a)從日期爲2015年4月20日的備份中恢復數據庫(從21日開始將丟失哪些數據) (b)繼續使用此數據庫並忽略該數據庫'tenderentry'表錯誤

您的幫助將不勝感激。

問候 PRATIK

+0

它不允許我發佈圖像 –

+0

** chkdsk:系統在硬盤上發現壞扇區**這意味着您在嘗試恢復數據庫之前需要更換或修復磁盤。 –

回答

0

(一)恢復從日2015年4月20日備份數據庫(從21日起將失去什麼數據)

是數據不會丟失,因爲您的備份最後更新於2015年4月20日

(二)繼續與該數據庫,並忽略「tenderentry」表錯誤

我個人不建議這一點,因爲它可能是可能的,你將有一個更大的合作未來的迸發問題。優先考慮將腐敗問題確定爲早期階段。它有助於維護數據庫的健康。

請不要運行帶有repair_allow_data_loss的DBCC CHECKDB而不知道它的影響。

相關問題