Quantcast
Channel: SQLServerCentral » SQL Server 2008 » Data Corruption (SS2K8 / SS2K8 R2) » Latest topics
Viewing all articles
Browse latest Browse all 223

Corrupt DB, and unable to repair

$
0
0
I had hoped to never need to post in this forum, but such things happen.First, while there may be a good backup of the DB I'm fighting with, it's going to be many, many months old.Second, this is from a Sharepoint 2010 install, thankfully the customer either hasn't noticed, or is aware of but worked around the problem.Third, I realize I *WILL* be losing data if I fix this.Fourth, I do have (and have had for some time) an Agent job running SpaghettiDBAs DBCC script weekly. For whatever reason (still haven't figured it out) it is unable to e-mail me from the SP SQL Server (but I can manually send DBMail fine, and it's working on other SQL servers with no problem.)Fifth, I am able to take a backup of the DB (without using the CHECKSUM option) and restore it on another server, that's the copy I've been working on.So, to the broken DB!Here's a snippet from the very long DBCC CHECKDB() output:[code="plain"]DBCC results for 'WSS_CONTENT_ORG_DLAW_20140325'.Service Broker Msg 9675, State 1: Message Types analyzed: 14.Service Broker Msg 9676, State 1: Service Contracts analyzed: 6.Service Broker Msg 9667, State 1: Services analyzed: 3.Service Broker Msg 9668, State 1: Service Queues analyzed: 3.Service Broker Msg 9669, State 1: Conversation Endpoints analyzed: 0.Service Broker Msg 9674, State 1: Conversation Groups analyzed: 0.Service Broker Msg 9670, State 1: Remote Service Bindings analyzed: 0.Service Broker Msg 9605, State 1: Conversation Priorities analyzed: 0.Msg 8939, Level 16, State 98, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID -8943937187254829056 (type Unknown), page (50944:61452520). Test (IS_OFF (BUF_IOERR, pBUF->bstat)) failed. Values are 12584969 and -1.Msg 8939, Level 16, State 98, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID -8943937187254829056 (type Unknown), page (50944:61452520). Test (IS_OFF (BUF_IOERR, pBUF->bstat)) failed. Values are 12584969 and -1.Msg 8939, Level 16, State 98, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID -8797764540885368832 (type Unknown), page (9292:-2034823424). Test (IS_OFF (BUF_IOERR, pBUF->bstat)) failed. Values are 12584969 and -14.Msg 8939, Level 16, State 98, Line 1...Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID 0 (type Unknown), page (1:157328). Test (m_headerVersion == HEADER_7_0) failed. Values are 0 and 1.Msg 8939, Level 16, State 6, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID 0 (type Unknown), page (1:157328). Test ((m_type >= DATA_PAGE && m_type <= UNDOFILE_HEADER_PAGE) || (m_type == UNKNOWN_PAGE && level == BASIC_HEADER)) failed. Values are 0 and 0.Msg 8939, Level 16, State 7, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID 0 (type Unknown), page (1:157328). Test (m_freeData >= PageHeaderOverhead () && m_freeData <= (UINT)PAGESIZE - m_slotCnt * sizeof (Slot)) failed. Values are 0 and 8192.Msg 8909, Level 16, State 1, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID 0 (type Unknown), page ID (1:157329) contains an incorrect page ID in its page header. The PageId in the page header = (0:0).Msg 8909, Level 16, State 1, Line 1...Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID 8603375161530122240 (type Unknown), page (1:779640). Test (IS_OFF (BUF_IOERR, pBUF->bstat)) failed. Values are 12584969 and -4.Msg 8939, Level 16, State 98, Line 1Table error: Object ID 0, index ID -1, partition ID 0, alloc unit ID 9043239549262299136 (type Unknown), page (1104:-16684543). Test (IS_OFF (BUF_IOERR, pBUF->bstat)) failed. Values are 12584969 and -10.CHECKDB found 0 allocation errors and 1951 consistency errors not associated with any single object.DBCC results for 'sys.sysrscols'.There are 2710 rows in 54 pages for object "sys.sysrscols".DBCC results for 'sys.sysrowsets'.Msg 8909, Level 16, State 1, Line 1Table error: Object ID 5, index ID 1, partition ID 327680, alloc unit ID 327680 (type In-row data), page ID (1:146266) contains an incorrect page ID in its page header. The PageId in the page header = (0:0).Msg 8909, Level 16, State 1, Line 1Table error: Object ID 5, index ID 1, partition ID 327680, alloc unit ID 327680 (type In-row data), page ID (1:146407) contains an incorrect page ID in its page header. The PageId in the page header = (0:0).There are 321 rows in 7 pages for object "sys.sysrowsets".CHECKDB found 0 allocation errors and 2 consistency errors in table 'sys.sysrowsets' (object ID 5)....Msg 8939, Level 16, State 5, Line 1Table error: Object ID 64, index ID 1, partition ID 281474980904960, alloc unit ID 281474980904960 (type In-row data), page (1:146176). Test (m_headerVersion == HEADER_7_0) failed. Values are 77 and 1.Msg 8939, Level 16, State 7, Line 1Table error: Object ID 64, index ID 1, partition ID 281474980904960, alloc unit ID 281474980904960 (type In-row data), page (1:146176). Test (m_freeData >= PageHeaderOverhead () && m_freeData <= (UINT)PAGESIZE - m_slotCnt * sizeof (Slot)) failed. Values are 0 and 8192.Msg 8939, Level 16, State 8, Line 1Table error: Object ID 64, index ID 1, partition ID 281474980904960, alloc unit ID 281474980904960 (type In-row data), page (1:146176). Test (m_freeCnt <= PAGESIZE - PageHeaderOverhead ()) failed. Values are 0 and -20430.Msg 8909, Level 16, State 1, Line 1Table error: Object ID 64, index ID 1, partition ID 281474980904960, alloc unit ID 281474980904960 (type In-row data), page ID (1:146186) contains an incorrect page ID in its page header. The PageId in the page header = (0:0).Msg 8909, Level 16, State 1, Line 1Table error: Object ID 64, index ID 1, partition ID 281474980904960, alloc unit ID 281474980904960 (type In-row data), page ID (1:146285) contains an incorrect page ID in its page header. The PageId in the page header = (0:0).Msg 8909, Level 16, State 1, Line 1Table error: Object ID 64, index ID 1, partition ID 281474980904960, alloc unit ID 281474980904960 (type In-row data), page ID (1:146327) contains an incorrect page ID in its page header. The PageId in the page header = (0:0).There are 20 rows in 1 pages for object "sys.sysclsobjs".CHECKDB found 0 allocation errors and 6 consistency errors in table 'sys.sysclsobjs' (object ID 64)....DBCC results for 'AllDocStreams'.Msg 8964, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:40486), slot 0, text ID 1500446720 is not referenced.Msg 8964, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:42455), slot 1, text ID 1412169728 is not referenced.Msg 8964, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:43029), slot 1, text ID 694353920 is not referenced.Msg 8964, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:43257), slot 1, text ID 373882880 is not referenced.Msg 8964, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:43641), slot 0, text ID 1121386496 is not referenced.Msg 8964, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:43744), slot 0, text ID 357236736 is not referenced.Msg 8964, Level 16, State 1, Line 1...Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:146318), slot 0, text ID 1831534592 is referenced by page (1:30394), slot 0, but was not seen in the scan.Msg 8928, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data): Page (1:146319) could not be processed. See other errors for details.Msg 8965, Level 16, State 1, Line 1Table error: Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data). The off-row data node at page (1:146319), slot 0, text ID 1831534592 is referenced by page (1:30394), slot 0, but was not seen in the scan.Msg 8928, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057594043957248 (type LOB data): Page (1:146320) could not be processed. See other errors for details.Msg 8965, Level 16, State 1, Line 1...Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057612423528448 (type In-row data): Errors found in off-row data with ID 1952317440 owned by data record identified by RID = (1:1035785:1)Msg 8929, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057612423528448 (type In-row data): Errors found in off-row data with ID 957087744 owned by data record identified by RID = (1:1035785:6)Msg 8929, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057612423528448 (type In-row data): Errors found in off-row data with ID 373882880 owned by data record identified by RID = (1:1035787:12)Msg 8929, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057612423528448 (type In-row data): Errors found in off-row data with ID 842727424 owned by data record identified by RID = (1:1035791:22)Msg 8929, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057612423528448 (type In-row data): Errors found in off-row data with ID 2038890496 owned by data record identified by RID = (1:1035794:30)Msg 8929, Level 16, State 1, Line 1Object ID 293576084, index ID 1, partition ID 72057611895439360, alloc unit ID 72057612423528448 (type In-row data): Errors found in off-row data with ID 606928896 owned by data record identified by RID = (1:1035795:8)There are 22440 rows in 726 pages for object "AllDocStreams".CHECKDB found 0 allocation errors and 2924 consistency errors in table 'AllDocStreams' (object ID 293576084).[/code]I'll put the output from an attempt at DBCC CHECKDB REPAIR_ALLOW_DATA_LOSS in the next post.

Viewing all articles
Browse latest Browse all 223

Trending Articles