Solved

checkdb on sql server

Posted on 2013-05-19
3
396 Views
Last Modified: 2013-05-27
I am having a sql server 2008R2. Database is using more like reporting. Data is loaded every night and during the day users are requesting data from databases.
After loading of the data I have a maintenance plan which runs( checkdb on every databases and after that backup databases).
The problem is that the databases are more than 600GB and checkdb completes for about 4hr. Database backups takes nearly the same amount of time. And because the maintenance plan takes so long , it was constantly finishing at 10:00AM at the morning, and the users are starting their worki at 08:00AM, and of course I receive a couple of complains for slow database at the morning.
Could you tell me what can be done in order to fix this problem?
0
Comment
Question by:dedri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Expert Comment

by:Ramesh Babu Vavilla
ID: 39180192
why do you have a requirement of running DBCC CHECKDB on a database Daily Basis,any specific reason,

if you know and specific tables database is updated daily then you can run
DBCC CHECKTABLE on that table and fix,

scherio
you have a database name DB_prod and that database have 20 tables, there is a table named as report table "Daily_Report" then run DBCC checktable command on Daily_Report table, which saves your time
0
 

Author Comment

by:dedri
ID: 39180627
there are updates on a lot of tables, and developers constantly changing something on the server. I don't want to be in a situation where I missed something.
Could you advice me how often I should run DBCC CHECKDB. I thought I have to do it on a daily basis in order to find out corruption as soon as possible and in order to not backup a corrupt database. ETL process during the night takes 5-6 hours and if I have to restore a database before 5 days and run 5 ETL it will be very hard process.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39183092
You could try using the WITH PHYSICAL_ONLY switch.  Here is an article written by one of the architects of DBCC CHECKDB():
CHECKDB From Every Angle: Consistency Checking Options for a VLDB
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question