Quantcast
Channel: SQL Server Database Engine Forum
Viewing all articles
Browse latest Browse all 15872

Corrupt SQL database

$
0
0

I am having an issue with a corrupt SQL database. This database runs functions for one of our products and this corruption is causing some tasks to not run. I have run the following commands against the database but each has failed with errors.

dbcc checkdb (varonis,repair_rebuild) and dbcc checkdb (varonis,REPAIR_ALLOW_DATA_LOSS)

Below is a small portion of the error log from the repair_build command; the error log is to large to paste all of it into the window.

DBCC results for 'varonis'.

Msg 8905, Level 16, State 1, Line 1

Extent (1:300552) in database ID 9 is marked allocated in the GAM, but no SGAM or IAM has allocated it.

Repairing this error requires other errors to be corrected first.

Msg 2576, Level 16, State 1, Line 1

The Index Allocation Map (IAM) page (1:1902450) is pointed to by the previous pointer of IAM page (1:2125788) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057961241706496 (type Unknown), but it was not detected in the scan.

The repair level on the DBCC statement caused this repair to be bypassed.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125170) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125171) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125172) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125173) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125331) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

CHECKDB found 7 allocation errors and 0 consistency errors not associated with any single object.

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:76905:21) with values (name = 'DF__TMP_SDT_4__inode__3A9B7C2E' and nsid = 1 and nsclass = 0 and id = 983268398) pointing to the data row identified by (id = 983268398).

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:198310:3) identified by (id = 313466131) with index values 'name = 'DF__TMP_SDT_4__HResu__12AF1D13' and nsid = 1 and nsclass = 0 and id = 313466131'.

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628785:26) with values (name = 'DF__TMP_SDT_4__times__49DDBFBE' and nsid = 1 and nsclass = 0 and id = 1239269310) pointing to the data row identified by (id = 1239269310).

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628786:17) with values (name = 'DF__TMP_SDT_4__CS_Na__47F5774C' and nsid = 1 and nsclass = 0 and id = 1207269196) pointing to the data row identified by (id = 1207269196).

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628786:27) with values (name = 'DF__TMP_SDT_4__FileN__3B8FA067' and nsid = 1 and nsclass = 0 and id = 999268455) pointing to the data row identified by (id = 999268455).

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628786:28) with values (name = 'DF__TMP_SDT_4__FileN__3C83C4A0' and nsid = 1 and nsclass = 0 and id = 1015268512) pointing to the data row identified by (id = 1015268512).

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1264219:33) identified by (id = 716943566) with index values 'name = 'DF__TMP_SDT_4__inode__2ABBB0CE' and nsid = 1 and nsclass = 0 and id = 716943566'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1378391:16) identified by (id = 105465390) with index values 'name = 'DF__TMP_SDT_4__IsCas__0649462E' and nsid = 1 and nsclass = 0 and id = 105465390'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1404013:26) identified by (id = 2108948525) with index values 'name = 'DF__TMP_SDT_4__Creat__7DB4002D' and nsid = 1 and nsclass = 0 and id = 2108948525'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1428566:32) identified by (id = 748943680) with index values 'name = 'DF__TMP_SDT_4__FileN__2CA3F940' and nsid = 1 and nsclass = 0 and id = 748943680'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1623836:12) identified by (id = 233465846) with index values 'name = 'DF__TMP_SDT_4__Share__0DEA67F6' and nsid = 1 and nsclass = 0 and id = 233465846'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1684344:19) identified by (id = 41465162) with index values 'name = 'DF__TMP_SDT_4__FWTim__0278B54A' and nsid = 1 and nsclass = 0 and id = 41465162'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1799058:44) identified by (id = 1500946359) with index values 'name = 'DF__TMP_SDT_4__times__59769FB7' and nsid = 1 and nsclass = 0 and id = 1500946359'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1927776:4) identified by (id = 393466416) with index values 'name = 'DF__TMP_SDT_4__SymDi__1773D230' and nsid = 1 and nsclass = 0 and id = 393466416'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1927779:7) identified by (id = 521466872) with index values 'name = 'DF__TMP_SDT_4__Creat__1F14F3F8' and nsid = 1 and nsclass = 0 and id = 521466872'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

CHECKDB found 7 allocation errors and 327 consistency errors in database 'Varonis'.

repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (Varonis, repair_rebuild).

Msg 596, Level 21, State 1, Line 0

Cannot continue the execution because the session is in the kill state.

Msg 0, Level 20, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded


Viewing all articles
Browse latest Browse all 15872

Trending Articles