March 1, 2013 at 3:48 am
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.
March 1, 2013 at 6:19 am
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.
March 1, 2013 at 6:57 am
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 on googles mail service
March 2, 2013 at 3:05 am
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.
March 2, 2013 at 8:14 am
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 on googles mail service
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply