|
SQL Server 2000 Enterprise Editions Log Shipping was setup using Database Maintenance Plans Transaction Log backup runs for evry 15 minutes.But during weekend while Maintenance jobs are running these Log backups grows huge. Is there any other way to disable the Log Backup at that interval?
(comments are locked)
|
|
I would rather recommend that you change the way you do your index maintenance, rebuilding only when necessary will drastically reduce log file growth issues. There are a number of "smart" index maintenance scripts available on the internet, my personal favourite is supplied by Ola Hallengren. There is also Michelle Ufford's Index Defrag v4.0 which is also very good. However, as you are on SQL 2000, you are limited in you index interrogation abilities. Something like this would at least get you started: There is no error handling and it could be done better, but it is a starting point to getting your index rebuilds to only work on indexes that really need work. +1 That's a bit more constructive than my answer!
Jul 30 '10 at 03:14 AM
David Wimbush
(comments are locked)
|
|
The problem is that maintenance jobs update a lot of pages and all those changes get recorded in the transaction log. I'm afraid there isn't a way round it if you want to log ship. In fact the log shipping is probably stopping your logs from getting even bigger because the frequent backups mark space in the log file for re-use, preventing file growth.
(comments are locked)
|
|
Unless you are willing to re-initialize Log Shipping after every Maintenance run then the short answer is no. Log Shipping faithfully applies logged transactions to ensure synchronization. About the only workarounds I can think of would be to drop the indexes and then re-create them (though that is basically what a rebuild does anyway) or re-evaluate and reduce your indexes (which of course may impact your performance). I'm afraid you will have to accept the log sizes as an artifact of Log Shipping and the size of your data. If you want smaller logs - ship more often, every 10 or 5 minutes. Thanks for the Information Provided. I am planning to disable the Transaction Log Backup job using TSQL in a new Job Two seperate jobs will do the enable and disabling jobs during the Maintenance Period. --First Job to Disable Transaction Log Backup -- To Diable Job exec msdb..sp_update_job @job_name = 'Job_name', @enabled = 0 -- Second Job to Enable Transaction Log Backup --To Enable Job exec msdb..sp_update_job @job_name = ''Job_name', @enabled = 1
Jul 30 '10 at 02:04 PM
rajDBA
I think this will still create huge Log Backup file once I enable the job after the Maintenance jobs ar completed
Jul 30 '10 at 02:10 PM
rajDBA
The log backups are big because your maintenance jobs are changing a lot of data. You have to either fix that or accept that you will have X MB of log records to backup and ship at some point. If you suspend it while the maintenance jobs are running you will have an even bigger log backup afterwards. Do you actually have a problem? Are your maintenance jobs being slowed down by the log shipping? Are you running out of space to hold the transaction log files? Are you running out of space for the log backup files? What are you trying to fix here?
Jul 30 '10 at 11:15 PM
David Wimbush
We are running out of Space in one of the servers,where we are doing the transactional log backups?
Aug 03 '10 at 12:00 PM
rajDBA
(comments are locked)
|

