January 15, 2010 at 1:04 pm
I have a MPlan it was failing when i run the DBCC CHECKDB(dbname)with NO_INFOMSGS,ALL_ERRORMSGS,i got the error as below any solution?
Msg 8928, Level 16, State 1, Line 1
Object ID 873822225, index ID 1, partition ID 338741790048256, alloc unit ID 57266813337600 (type In-row data): Page (1:175852) could not be processed. See other errors for details.
Msg 8978, Level 16, State 1, Line 1
Table error: Object ID 873822225, index ID 1, partition ID 338741790048256, alloc unit ID 57266813337600 (type In-row data). Page (1:175853) is missing a reference from previous page (1:175852). Possible chain linkage problem.
Msg 8976, Level 16, State 1, Line 1
Table error: Object ID 873822225, index ID 1, partition ID 338741790048256, alloc unit ID 338741790048256 (type In-row data). Page (1:175852) was not seen in the scan although its parent (1:175747) and previous (1:175851) refer to it. Check any previous errors.
Msg 8944, Level 16, State 24, Line 1
Table error: Object ID 873822225, index ID 1, partition ID 338741790048256, alloc unit ID 338741790048256 (type In-row data), page (1:175852), row 40. Test (ColumnOffsets + (int)sizeof (UINT16) <= (nextRec - pRec)) failed. Values are 174 and 172.
Msg 8944, Level 16, State 24, Line 1
Table error: Object ID 873822225, index ID 1, partition ID 338741790048256, alloc unit ID 338741790048256 (type In-row data), page (1:175852), row 40. Test (ColumnOffsets + (int)sizeof (UINT16) <= (nextRec - pRec)) failed. Values are 174 and 172.
CHECKDB found 0 allocation errors and 5 consistency errors in table 'NOC' (object ID 873822225).
CHECKDB found 0 allocation errors and 5 consistency errors in database 'Med'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (Med).
January 15, 2010 at 1:13 pm
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (Med).
Your output is suggesting that you run the above repair option at a minimum. Do you have any known good backups that do not have this corruption?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 15, 2010 at 1:15 pm
By running the dbcc checkdb() repair_allow_data_loss,the data will be lost.as i dont have the backup of DB
January 15, 2010 at 1:32 pm
dba_neo (1/15/2010)
By running the dbcc checkdb() repair_allow_data_loss,the data will be lost.as i dont have the backup of DB
Potentially lost. Data may be lost - it depends on how bad the corruption is. The potential of losing the data needs to be discussed with the business, and then a decision made to get it fixed.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 15, 2010 at 1:42 pm
So you are saying that you have no previous backups made before getting this CHECKDB error, correct?
January 15, 2010 at 1:55 pm
yes,is there any other solution for this problem?
January 15, 2010 at 1:59 pm
Not really, your only choice is to run DBCC CHECKDB with repair_allow_data_loss option. The optimum solution would have been to restore from a previous database backup prior to the corruption, and if there where t-log backups to restore those as well up until the corruption.
January 15, 2010 at 2:18 pm
I''ll send you to Paul Randal's blog post here...
It may help, it may not, thats for you to decided.
What i don't understand is if you have setup a maint plan to run integrity checks why you don't have a job/plan to take a backup.
Gethyn Elliswww.gethynellis.com
January 16, 2010 at 1:39 am
CirquedeSQLeil (1/15/2010)
Potentially lost. Data may be lost - it depends on how bad the corruption is.
Will be lost.
If the minimum level to repair is repair_allow_data_loss, it means that there will be data loss if that is run. There's only two cases that I know of (incorrect PFS pages and orphaned LOB pages) where repair allow_data_loss is required but data won't be lost.
In this case, there is a single damaged page in the clustered index. Repair will drop that page and fix the links. Hence, any data on that page will be lost.
http://sqlinthewild.co.za/index.php/2009/06/03/does-repair_allow_data_loss-cause-data-loss/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 16, 2010 at 1:42 am
GRE-452109 (1/15/2010)
I''ll send you to Paul Randal's blog post here...
In this case the database is not suspect or recovery_pending, hence there is no need to switch to emergency mode. That blog post deals with the case when the DB is suspect and cannot be opened, not the case of simple corruption.
A better link might be this: http://www.sqlservercentral.com/articles/65804/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 16, 2010 at 12:26 pm
GilaMonster (1/16/2010)
CirquedeSQLeil (1/15/2010)
Potentially lost. Data may be lost - it depends on how bad the corruption is.Will be lost.
If the minimum level to repair is repair_allow_data_loss, it means that there will be data loss if that is run. There's only two cases that I know of (incorrect PFS pages and orphaned LOB pages) where repair allow_data_loss is required but data won't be lost.
In this case, there is a single damaged page in the clustered index. Repair will drop that page and fix the links. Hence, any data on that page will be lost.
http://sqlinthewild.co.za/index.php/2009/06/03/does-repair_allow_data_loss-cause-data-loss/
Thanks for correcting that Gail and explaining more precisely.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 17, 2010 at 1:25 pm
plese set db status to emerngy mode and export data and run repair
January 17, 2010 at 2:04 pm
rspskumar-704119 (1/17/2010)
plese set db status to emerngy mode and export data and run repair
Absolutely not. Totally unnecessary and frankly in this case stupid things to suggest.
Emergency mode is a last resort for when the database is in suspect or recovery pending mode. Not for when the database is online and usable with minor corruption.
Export (and subsequent re-import) is for when there's irreparable corruption, like damaged allocation pages. This corruption is perfectly repairable (albeit with minor data loss) and hence there is no need whatsoever for something as extreme as export and reimport.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply