Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > database maintenance...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-07, 22:02
ftmjr ftmjr is offline
Registered User
 
Join Date: Mar 2007
Posts: 157
database maintenance...

Before I walked in the door of my company, they had maintenance jobs running on a daily bases. Recently, due to the increased work load and longer running batch jobs the mainenance jobs are starting to collide and cause (i.e. competing for same resources that they regular business processing and batch jobs need).

I would like to run the maintanance jobs only on the weekends. I feel that it is overkill running them every day. They strongly disagree and feel that the maintanance jobs must run every day.

What are your thoughts? Is it safe to run maint jobs only on weekends (i.e. update stats, checkdb, checkalloc, etc.)?
Reply With Quote
  #2 (permalink)  
Old 11-20-07, 01:14
niranjan555 niranjan555 is offline
Registered User
 
Join Date: Aug 2007
Posts: 54
ys it is possible.
but run update stat everyday if there are number of transaction on ur db.
or u can schedule all in night.
or take backup on separate backup machine and run all scripts there everyday. and on main server weekly
Reply With Quote
  #3 (permalink)  
Old 11-20-07, 02:47
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 830
Check for your self if you really need to run update stats every day
Save the output of optdiag and compare the results from previous runs
If the distribution stats stay similar then you are just wasting your time
Install dbccdb and use dbcc checkstorage instead
Also consider copying the database to a 2nd (failover) database and run the dbcc checks on the 2nd instead.
Reply With Quote
  #4 (permalink)  
Old 11-20-07, 04:32
ftmjr ftmjr is offline
Registered User
 
Join Date: Mar 2007
Posts: 157
great feedback... thanks :)

We have the following commands running everyday...

- dbcc checkdb
- dbcc checkstorage
- dbcc checkcatalog
- update statistics
- reorg

Should we be running dbcc checkstorage only during the week and the rest on weekends?

I agree with your feeback in using optdiag. This will be a wise way to better understanding the frequancy of running "update statistics".

Great advice. Thank you both for the time you set aside.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On