July 1, 2008 at 9:16 am
Hi all,
I have a transactional replication set up between sql server 2005 servers. The transaction retention period is set to store no more than 50 hours on the distributor but the distribution database has been growing. The publisher, distributor and subscribers are all different servers and subscriber set up to pull the transactions. Any reason why distribution db is growing and any recommendation is appreciated.
Bulent
July 1, 2008 at 9:28 am
is the distribution cleanup job enabled\succeeding?
---------------------------------------------------------------------
July 1, 2008 at 12:24 pm
Check for Distribution clean up: distribution job in scheduled jobs and run it.
SQL DBA.
July 1, 2008 at 12:45 pm
thanks both, I have checked the job on distributor. It is scheduled to run every 10 minutes however job history shows that it takes average 25 minutes to run and it has been running every 30 minutes. Below is what the job step executes. What do you suggest? Should I decrease the transaction retention time?
EXEC dbo.sp_MSdistribution_cleanup @min_distretention = 0, @max_distretention = 50
Thanks...
July 1, 2008 at 1:04 pm
My job also runs every 10 minutes and never had issues. It generally takes less than a second to complete. Command in job is -
EXEC dbo.sp_MSdistribution_cleanup @min_distretention = 0, @max_distretention = 72
Can you check if distribution database is not set to full recovery, by default it should be in simple recovery mode.
SQL DBA.
July 1, 2008 at 11:05 pm
Hi Sanjay,
I just checked the recovery mode of distribution database and it's simple. I think I will decrease the transaction period to 36 hours to see if that will stop the growing. Do you think of anything else?
Thanks,
Bulent
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply