Hello, I have a SQL 2012 3.5 TB database with filestream, full text, file partitions, BLOB's & file tables.
I ran:
DBCC CHECKDB ([xxx]) WITH NO_INFOMSGS, ALL_ERRORMSGS, PHYSICAL_ONLY
error messages:
Msg 2576, Sev 16, State 1, Line 1 : The Index Allocation Map (IAM) page (0:0) is pointed to by the previous pointer of IAM page (3:6134807) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057617098539008 (type Unknown), but it was not detected in the scan. [SQLSTATE 42000]
Msg 2576, Sev 16, State 1, Line 1 : The Index Allocation Map (IAM) page (0:0) is pointed to by the previous pointer of IAM page (3:57752675) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057617097949184 (type Unknown), but it was not detected in the scan. [SQLSTATE 42000]
Msg 2576 , Sev 16, State 1, Line 1 : The Index Allocation Map (IAM) page (0:0) is pointed to by the previous pointer of IAM page (3:67569457) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057617098276864 (type Unknown), but it was not detected in the scan. [SQLSTATE 42000]
Msg 2576 , Sev 16, State 1, Line 1 : The Index Allocation Map (IAM) page (0:0) is pointed to by the previous pointer of IAM page (3:70025250) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057617098473472 (type Unknown), but it was not detected in the scan. [SQLSTATE 42000]
Msg 2575 , Sev 16, State 1, Line 1 : The Index Allocation Map (IAM) page ( 3:43978588) is pointed to by the next pointer of IAM page (0:0) in object ID 1138608757, index ID 1, partition ID 72057617007050752, alloc unit ID 72057617098735616 (type In-row data), but it was not detected in the scan. [SQLSTATE 42000]
Msg 8946 , Sev 16, State 1, Line 1 : Table error: Allocation page ( 3:43978588) has invalid IAM_PAGE page header values. Type is 1. Check type, alloc unit ID and page ID on the page. [SQLSTATE 42000]
Msg 7965 , Sev 16, State 1, Line 1 : Table error: Could not check object ID 1138608757 , index ID 1, partition ID 72057617007050752, alloc unit ID 72057617098735616 (type In-row data) due to invalid allocation (IAM) page(s). [SQLSTATE 42000]
Msg 8954, Sev 16, State 1, Line 1 : CHECKDB found 4 allocation errors and 0 consistency errors not associated with any single object. [SQLSTATE 01000]
Msg 8990 , Sev 16, State 1, Line 1 : CHECKDB found 1 allocation errors and 2 consistency errors in table 'sys.ifts_comp_fragment_426796928_238904' (object ID 1138608757 ). [SQLSTATE 01000]
Msg 8989, Sev 16, State 1, Line 1 : CHECKDB found 5 allocation errors and 2 consistency errors in database 'xxx'. [SQLSTATE 01000]
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (xxx). [SQLSTATE 01000]
I do not have a clean backup, as this was just ran for the first time. So, my guess it has probably been there for a few months.
I have not done anything yet to the database. The database is operational and not experiencing any issues.
I have done some googling.
Found that the Msg 2576 error is metadata/BLOB related, and they are in an orphaned state. MS resolution is to use the DBCC CHECKDB command together with the REPAIR_ALLOW_DATA_LOSS option to remove the orphaned IAM page.
It is the other Msg's that I am unfamiliar with:
SELECT i.name as 'InternalTableName',
'ParentTable1WithFullTextIndex' as ParentTable, -- parent table has full text
s.name as 'InternalTableSchema',
i.type_desc, internal_type_desc ,
i.parent_object_id,
o.name as 'Parent Object'
FROM sys.internal_tables i
inner join sys.objects o on i.parent_id = o.object_id
inner join sys.schemas s on i.schema_id = s.schema_id
where i.name = 'ifts_comp_fragment_426796928_238904
This points to a USER_TABLE = x_request_files
I ran dbcc checktable ('x_request_files') with no_infomsgs -- it was successful
How can I fix this?
How can I determine if there will be data loss if I run repair_allow_data_loss?
Thank u.