﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SS2K5 Replication  / Distribution database is too big; / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 08:47:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>Please run the following script to check why log entries are not removed:[code="sql"]select name, log_reuse_wait, log_reuse_wait_desc from sys.databaseswhere name = 'Distribution'[/code]Also run:[code="sql"]dbcc opentran()[/code]</description><pubDate>Wed, 26 Sep 2012 06:06:32 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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.</description><pubDate>Tue, 25 Sep 2012 12:38:37 GMT</pubDate><dc:creator>tapaskumardm</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>What is the recovery model of your Distribution database? It is supposed to be "Simple". If it is something else, change it to Simple.</description><pubDate>Tue, 25 Sep 2012 11:16:31 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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</description><pubDate>Tue, 25 Sep 2012 07:29:59 GMT</pubDate><dc:creator>dm_tapas</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>Try this link, I believe it describes your problem.http://www.mssqltips.com/tip.asp?tip=1823</description><pubDate>Mon, 11 Jan 2010 16:47:56 GMT</pubDate><dc:creator>thatguyivan</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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.</description><pubDate>Fri, 27 Nov 2009 05:00:26 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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.</description><pubDate>Fri, 27 Nov 2009 05:00:25 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>[quote][b]Roy Ernest (11/26/2009)[/b][hr]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?[/quote]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</description><pubDate>Fri, 27 Nov 2009 02:58:14 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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?</description><pubDate>Thu, 26 Nov 2009 06:03:32 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>[quote][b]Roy Ernest (11/25/2009)[/b][hr]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[/quote]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.</description><pubDate>Thu, 26 Nov 2009 03:40:06 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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</description><pubDate>Wed, 25 Nov 2009 07:44:11 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>[quote][b]glugingboulder (11/24/2009)[/b][hr]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[/quote]Distribution clean up agent is running under the account which has all the permissions.</description><pubDate>Wed, 25 Nov 2009 06:35:54 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>[quote][b]Ian Scarlett (11/25/2009)[/b][hr]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.[/quote]It is the database itself that is growing. Not transaction log.Recovery model is simple.</description><pubDate>Wed, 25 Nov 2009 06:33:17 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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.</description><pubDate>Wed, 25 Nov 2009 01:05:30 GMT</pubDate><dc:creator>Ian Scarlett</dc:creator></item><item><title>RE: Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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</description><pubDate>Tue, 24 Nov 2009 20:20:28 GMT</pubDate><dc:creator>glugingboulder</dc:creator></item><item><title>Distribution database is too big;</title><link>http://www.sqlservercentral.com/Forums/Topic823649-291-1.aspx</link><description>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 [url]http://www.mssqltips.com/tip.asp?tip=1823[/url]ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/rpldata9/html/542f0613-5817-42d0-b841-fb2c94010665.htmHowever, the distribution database is still growing.Why is it not working?</description><pubDate>Mon, 23 Nov 2009 22:35:34 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item></channel></rss>