[posted and mailed]
xo (xo5555ox (AT) gmail (DOT) com) writes:
Quote:
URGENT! I got the following errors from the DBCC checkdb result on the
production system which indicates there are corruptions on some
indexes and tables. Can someone provide some steps and methods to
correct the problem without data loss. I cannot afford to lose any
data or use repair_allow_data_loss to fix it. And the problem exists
three nights, so backups are no good. |
In case you have not sensed it: you are in deep sh*t, sorry.
The first thing you should do is to find new hardware for this database,
because this corruption is most certainly due to some hardware-related
problem. (Bad driver, bad disk sectors stc.)
On the new server restore a couple of copies of the database. Two
instances that are copy its current shape, and a third which is the
most recent clean backup. Maybe you also want the intermediate backups
as well.
On the database that is to be the production database, run DBCC CHECKDB
with REPAIR_ALLOW_DATA_LOSS. Then try to use the copies to fill in the
bits and pieces that are missing.
You should also run consistency checks on application level in the
database, and run DBCC CHECKCONSTRAINTS and DBCC CHECKCATALOG. Most likely
you have data corruption that does not manifest itself in errors that
DBCC CHECKDB finds. For instance, if a broken bit changes the id of 4
to 1028, and both are valid id, there is no DBCC that will detect this.
I will also give the advice that trying to resolve this only through
newsgroups assistance is not going to work. I assume that you have a
requirement to have this database up and running on Monday morning the
latest, and that will be a very tough game. Hopefully, you can have
the database accessible on new hardware then, and you can sort out the
data corruption later.
If you feel uncertain, open a case with Microsoft, but you will have
to pay through the nose. Or try to find consultants locally that are
willing to help you. (You will still have to pay a lot.)
Again: the most important for you is to find new hardware. It's useless
to continue with what you have now.
Finally: I've mailed you a courtsey copy, since this is apparently an
urgent issue. But beware that it's useless to respond by mail. I'm about
to leave home to enjoy a wonderful summer day here in Stockholm, and
there is a football game on the telly tonight. You need someone onsite,
or at least by phone to help you. And, no, I don't envy you.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx