SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DBCC Consistency Check impacts...


DBCC Consistency Check impacts...

Author
Message
Arsh
Arsh
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5373 Visits: 1001

Dear Experts,
I've setup a 'DBCC CHECKDB' job on our two 700 GB databases on two different servers. Though it takes around a good one hour to complete , some days it runs for over 7 hours . Would be grt if anybody can share thoughts on why it takes so much time despite it being read-only operation ? I am more concerned as the system already has some performance issues . Thank you .



GilaMonster
GilaMonster
SSC Guru
SSC Guru (919K reputation)SSC Guru (919K reputation)SSC Guru (919K reputation)SSC Guru (919K reputation)SSC Guru (919K reputation)SSC Guru (919K reputation)SSC Guru (919K reputation)SSC Guru (919K reputation)

Group: General Forum Members
Points: 919578 Visits: 48850
It's got to read every single page in that 700GB database, and do a bunch of checks to make sure all the pages are correct, all the DB structures are correct. An hour on 700GB isn't bad. For the 7 hour extremes, see if there's any IO contention at the time.

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


Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)SSC Guru (361K reputation)

Group: General Forum Members
Points: 361941 Visits: 34459
One thing you can do (assuming you have disk space) is restore the database to another location and then run DBCC on that. There are a few types of errors that won't get picked up in that way, but all the internal consistency errors will be, and those are the ones that occur most frequently. Offloading DBCC through a secondary server is a very common practice to help reduce the load on the production machine.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd Edition
Product Evangelist for Red Gate Software
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search