DBCC checkdb lifecycle

  • I first ran DBCC CHECKDB on an instance. It threw away around 2000 consistency errors.

    I ran repair_rebuild and it didn't fix any errors.

    Then I ran dbcc with REPAIR_ALLOW_DATA_LOSS and it fixed around 1900 consistency errors.

    I switched DB into multi user mode again and am running checkdb again.

    is there a way I can fix the remaining 100 odd errors?

  • Firstly why did you repair rather than restoring a clean backup? Repair is typically the last resort, not the first solution.

    Do you know how much data was lost?

    Do you know what data was lost?

    Do you know what effect that lost data will have on your business?

    Please run the following and post the full and complete, unedited output.

    DBCC CheckDB (<database name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (8/26/2013)


    Firstly why did you repair rather than restoring a clean backup? Repair is typically the last resort, not the first solution.

    Do you know how much data was lost?

    Do you know what data was lost?

    Do you know what effect that lost data will have on your business?

    Please run the following and post the full and complete, unedited output.

    DBCC CheckDB (<database name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    Hi,

    Will be backup be clean without inconsistencies?

  • it depends if the backup has been taken before the corruption occured.

    One way of testing this is using Allens automation script : Test Your SQL Server Backups with PowerShell[/url]

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • If corruption re-occurs, it is time to check your disks, .. double check if your case can be found in the BUGs of Service packs or Cumulative updates you didn't install at this instance and/or contact PSS.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Benki Chendu (9/9/2013)


    GilaMonster (8/26/2013)


    Firstly why did you repair rather than restoring a clean backup? Repair is typically the last resort, not the first solution.

    Do you know how much data was lost?

    Do you know what data was lost?

    Do you know what effect that lost data will have on your business?

    Please run the following and post the full and complete, unedited output.

    DBCC CheckDB (<database name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    Hi,

    Will be backup be clean without inconsistencies?

    Well, I specified 'clean backup', so one without corruption in it.

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I also see stack dumps getting generated.

    Am planning to engage MS to decipher the stack dump.

    Makes sense?

  • If you want to pay them, sure.

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Not really.

    I was almost clueless 😀

    Can you please help me if you can

  • GilaMonster (8/26/2013)


    Please run the following and post the full and complete, unedited output.

    DBCC CheckDB (<database name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Please Find the error messages attached

  • Restore from a clean backup (one taken before the corruption occurred).

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Ok. Any major insights as such from the error messages

  • Yes, you've got some problems with your IO subsystem that's caused major, widespread corruption in your database.

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • oh ok. DB's are on SAN. I spoke to my SAN admin yesterday and he told me that he doesn't see any issues from SAN side. Typical answer from them most of the times:hehe::cool:

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic. Login to reply