November 23, 2009 at 10:35 pm
Distribution database is 28 GB and growing 1GB per day.
I have changed the retention period from subscription never expires to 24 hrs as recommended in
http://www.mssqltips.com/tip.asp?tip=1823
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/rpldata9/html/542f0613-5817-42d0-b841-fb2c94010665.htm
However, the distribution database is still growing.
Why is it not working?
November 24, 2009 at 8:20 pm
Just a thought, its possible that the distribution clean up agent is running under a account which doesn’t have permissions or doesn’t exist anymore worth checking.
Therefore isn’t cleaning up the distributed commands
November 25, 2009 at 1:05 am
Is it the distribution database itself, or the transaction log that is growing?
If it's the transaction log, check the recovery model. If it's anything other than simple, you need to make sure you're running transaction log backups.
November 25, 2009 at 6:33 am
Ian Scarlett (11/25/2009)
Is it the distribution database itself, or the transaction log that is growing?If it's the transaction log, check the recovery model. If it's anything other than simple, you need to make sure you're running transaction log backups.
It is the database itself that is growing. Not transaction log.
Recovery model is simple.
November 25, 2009 at 6:35 am
glugingboulder (11/24/2009)
Just a thought, its possible that the distribution clean up agent is running under a account which doesn’t have permissions or doesn’t exist anymore worth checking.Therefore isn’t cleaning up the distributed commands
Distribution clean up agent is running under the account which has all the permissions.
November 25, 2009 at 7:44 am
Is it failing? The distribution agent clean up Job?
Try running the the clean up job from the SSMS under your Account and see if it is giving any error or warnings
-Roy
November 26, 2009 at 3:40 am
Roy Ernest (11/25/2009)
Is it failing? The distribution agent clean up Job?Try running the the clean up job from the SSMS under your Account and see if it is giving any error or warnings
No. It is not failing.
Distribution agent clean up job is taking more than 2 hrs to complete. It is scheduled to run every 10 minutes.
November 26, 2009 at 6:03 am
The only thing that could keep it big then is that there are some commands that are that has not been replicated yet. What is your retention period?
-Roy
November 27, 2009 at 2:58 am
Roy Ernest (11/26/2009)
The only thing that could keep it big then is that there are some commands that are that has not been replicated yet. What is your retention period?
Hi Roy,
Thanks for your reply.
For many of the publications, retention period was "subscription never expires". Just now I changed it to 72 hrs.
msrepl_transactions table has 13 million rows and msrepl_commands table has 31 million rows.
There are 51 rows in msrepl_transactions with entry_time older than 2009-06-07. Oldest is 2006-06-26
Will changed retention period fix the issue?
Regards,
Suresh
November 27, 2009 at 5:00 am
Next time it runs, it should clean up everything. But it will take time to run the clean up Job. I think you should try to run the clean up job manually. Just copy the command from the Job step and run it through SSMS. But that will not make the DB size small. But the latency will drop down to a manageable level.
-Roy
November 27, 2009 at 5:00 am
Next time it runs, it should clean up everything. But it will take time to run the clean up Job. I think you should try to run the clean up job manually. Just copy the command from the Job step and run it through SSMS. But that will not make the DB size small. But the latency will drop down to a manageable level.
-Roy
January 11, 2010 at 4:47 pm
Try this link, I believe it describes your problem.
September 25, 2012 at 7:29 am
I have the same Issue. I did all the above steps,
but when I run the Job 'Agent history clean up : Distribution' .. the log file is growing rapidly.
What can be done to resolve the issue.
Thanks in advanced
September 25, 2012 at 11:16 am
What is the recovery model of your Distribution database?
It is supposed to be "Simple". If it is something else, change it to Simple.
September 25, 2012 at 12:38 pm
Simple recovery model.
when the job 'Agent history clean up: distribution’ is executing the log file is growing rapidly.
so i disabled the job for now.
will it effect the replication ??
up to what extents.
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic. Login to reply