Solved

checkdb on sql server

Posted on 2013-05-19
3
380 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
3 Comments
 
LVL 10

Expert Comment

by:sqlservr
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSAS Store Forecasting data in the cube 1 20
tools to scan a SQL server's problem 14 28
SQL Server / Update DB? 22 38
How can I use this function? 3 14
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

820 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