Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL SERVER 2012 MAINTANANCE TASK- BEST PRACTICE Expand / Collapse
Author
Message
Posted Friday, March 1, 2013 3:48 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, August 7, 2014 6:46 AM
Points: 49, Visits: 176
Hi All,

Can u anyone suggest me for best practice maintenance task in sql server 2012.

I am planning to do the following in my Always on server- Production database.

1. Full Backup -- Every day
2. Diff Backup -- Every 4 Hourly
3. Log Backup-- Every One hour.
4.Check database integrity -- Every day
5. Reorganize and update statistics -- Weekly basis
6. Rebuild index -- Every two Weeks
7. sp_delete_backuphistory & sp_purge_jobhistory & Output File Cleanup every Week.


Thanks for you help in advance.
Post #1425424
Posted Friday, March 1, 2013 6:19 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, March 21, 2014 9:46 AM
Points: 387, Visits: 1,078
Rebuild index should be done on Fragementation level not on day basis.

Better check fragmentation level daily and go rebuid/reorganize according to fragementation %.. You can get good script in online to do this.
Post #1425459
Posted Friday, March 1, 2013 6:57 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: 2 days ago @ 8:53 AM
Points: 4,350, Visits: 6,162
ratheesh4sql (3/1/2013)
Hi All,

Can u anyone suggest me for best practice maintenance task in sql server 2012.

I am planning to do the following in my Always on server- Production database.

1. Full Backup -- Every day
2. Diff Backup -- Every 4 Hourly
3. Log Backup-- Every One hour.
4.Check database integrity -- Every day
5. Reorganize and update statistics -- Weekly basis
6. Rebuild index -- Every two Weeks
7. sp_delete_backuphistory & sp_purge_jobhistory & Output File Cleanup every Week.


Thanks for you help in advance.


A. Personally I think you are wasting effort with a 4 hour diff. Just use tlog backups. There will only be a max of 23 of them per day and then you switch back to another FULL baseline.

B. Go immediately to Ola.Hallengren.com and get and learn to use his FREE, AWESOME, FULLY DOCUMENTED maintenance suite. Do NOT use maintenance plans for the stuff you mention above!!


Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Post #1425487
Posted Saturday, March 2, 2013 3:05 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, August 7, 2014 6:46 AM
Points: 49, Visits: 176
Hi,


Thank you very much for your reply....

Using the Ola.Hallengren.com scipts..am not able to take the full backup of my Always on Seconday database.

Can u suggest me to schedule full backup from the Always on seconday db..?

Thank you.
Post #1425839
Posted Saturday, March 2, 2013 8:14 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: 2 days ago @ 8:53 AM
Points: 4,350, Visits: 6,162
ratheesh4sql (3/2/2013)
Hi,


Thank you very much for your reply....

Using the Ola.Hallengren.com scipts..am not able to take the full backup of my Always on Seconday database.

Can u suggest me to schedule full backup from the Always on seconday db..?

Thank you.


From here, http://ola.hallengren.com/, Ola mentions specifically support for SQL 2012, including noting that mirrors can be readable and used for backups. Please get the latest version of his scripts and see if that will allow you to backup a replica.

I cannot recommend a schedule for you because I have no idea what your company's needs are from an RPT and RTO perspective. I STRONGLY encourage you to engage a professional to review your company's needs and discuss options and help you implement an HA/DR plan that meets those needs and which you can afford.


Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Post #1425859
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse