Solved

Index Maintanance Plan - with DR site log shipping ( Off site )

Posted on 2014-04-07
3
228 Views
Last Modified: 2014-09-07
Hello ,

I have set up a Index Maintenance plan that runs every Sunday that is using Ola Hallengren's  scripts. This works brilliantly except that it is increasing the LDf file ( which it does normally from Rebuilding index's where needed ) and for me to log ship this file would be 50 GB which if i had to do would take probably around  14 hours. I have also tried to use the "Sort In Tempdb" which i thought would use that instead but not still growing the LDF of database that is been indexed.

Can anyone please advise how i can keep log shipping going for this maintenance schedule, as i have to set up a agent job for DBCC SQLPERF (LOGSPACE) and   DBCC SHRINKDATABASE then copy the database after a backup to DR site.

Kind regards
D
0
Comment
Question by:deanmachine333
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39985800
I have set up a Index Maintenance plan that runs every Sunday that is using Ola Hallengren's  scripts
Why are you using the Index Maintenance Plans to run Ola Hallengren's Indexing scripts.  Ola's scripts are meant as a replacement of the Maintenance plans.

This works brilliantly except that it is increasing the LDf file
That would be because you are using the default Full Recovery Model and not backing up your Transaction Log.  You need to setup a job to do frequent Transaction Log backups using something like Ola's backup scripts.

Once you have that in place we can talk about doing a one-time only shrink of your Transaction Log.
0
 

Accepted Solution

by:
deanmachine333 earned 0 total points
ID: 40300495
I have set up log shipping - so have the Transaction logs backing up while this is happening but it still bloats up the log files and then instead of the bak file being huge its the transaction log.

i have just bit the bullet and sending bak file across to DR site which takes a while but still works out smaller and quicker than using the trn files while the maintenance is happening.

thanks
0
 

Author Closing Comment

by:deanmachine333
ID: 40308390
I have set up log shipping - so have the Transaction logs backing up while this is happening but it still bloats up the log files and then instead of the bak file being huge its the transaction log.

i have just bit the bullet and sending bak file across to DR site which takes a while but still works out smaller and quicker than using the trn files while the maintenance is happening.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now