MSrepl_commands table is increasing continuously.

  • Dear All,

    We are using Sql server 2005 stsndard eddition.

    We aer maintaining Transactional replication with update.

    Form 3 days onwards we are observing MSrepl_commands is increasing.And the jobs are running fine.

    It is having 1 croe records.Due to this disribution DB size is increasing.

    Please help me to find out the root cause and solve this issue.

    Thanks in advance.

  • Is the subscriber in sync?

    M&M

  • Hi,

    yes it is in sync.

  • Can you check the immediate_sync property in the publication database

    use publication_db_name

    go

    sp_helppublication

    is immediate_sync =1 ?

    M&M

  • The value is Zero.

  • ok... Can you provide us this information

    1)

    use distribution

    go

    sp_helpdistributiondb

    What is the value of min_distretention and max_distretention

    2) Is the Distribution clean up: distribution job running? When did it last run?

    3) What is the size of the distribution database now?

    M&M

  • What is the value of min_distretention and max_distretention

    >>>min is 0 and max is 72

    2) Is the Distribution clean up: distribution job running? When did it last run?

    >>>Job is running for every 10 mins.10 mins back also it has been run.

    3) What is the size of the distribution database now?

    >>>Size of distribution morning it is 2gb and nw it is 3gb.

    Note:The publication DB size is only 1GB.

  • Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    The data in the MSrepl_commands table in distribution database should be reducing. Also your immediate_sync property is disabled, so the data in the distribution database would be deleted after it is sent to the subscriber.

    Please let us know us the row count of MSrepl_commands before and after the distribution clean job runs.

    M&M

  • Hi Mohammed,

    Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    Before the job please find the row count of MSrepl_commands

    Row count:4658791

    After the job please find the row count of MSrepl_commands

    Row count:4861893

    Data is increasing but it is not decreasing.

    Also your immediate_sync property is disabled,

    How would we know that immediate_sync property is disabled?

    When i executed below query the Value it is showing "Zero".That means is it disabled?If we change the value to "One",that means is it enable.

    --published database

    select immediate_sync, * from syspublications

    Please let me know if you need more information.

    Thank you for your support.

  • Please clarify on question

    M&M

  • Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    Before the job please find the row count of MSrepl_commands

    Row count:4658791

    After the job please find the row count of MSrepl_commands

    Row count:4861893

    Data is increasing but it is not decreasing.

    Also your immediate_sync property is disabled,

    How would we know that immediate_sync property is disabled?

    When i executed below query the Value it is showing "Zero".That means is it disabled?If we change the value to "One",that means is it enable.

    --published database

    select immediate_sync, * from syspublications

    Please let me know if you need more information.

    Thnak you for your support.

  • Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    Before the job please find the row count of MSrepl_commands

    Row count:4658791

    After the job please find the row count of MSrepl_commands

    Row count:4861893

    Data is increasing but it is not decreasing.

    Also your immediate_sync property is disabled,

    How we would know that immediate_sync property is disabled.

    When i executed below query the Value it is showing "Zero".That means is it disabled?If we change the value to "One",that means is it enable.

    --published database

    select immediate_sync, * from syspublications

    Please let me know if you need more information.

    Thnak you for your support.

  • Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    Before the job please find the row count of MSrepl_commands

    Row count:4658791

    After the job please find the row count of MSrepl_commands

    Row count:4861893

    Data is increasing but it is not decreasing.

    Also your immediate_sync property is disabled,

    How would we know that immediate_sync property is disabled?

    When i executed below query the Value it is showing "Zero".That means is it disabled?If we change the value to "One",that means is it enable.

    --published database

    select immediate_sync, * from syspublications

    Please let me know if you need more information.

    Thank you for your support.

  • Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    Before the job please find the row count of MSrepl_commands

    Row count:4658791

    After the job please find the row count of MSrepl_commands

    Row count:4861893

    Data is increasing but it is not decreasing.

    Also your immediate_sync property is disabled,

    How would we know that immediate_sync property is disabled?

    When i executed below query the Value it is showing "Zero".That means is it disabled?If we change the value to "One",that means is it enable.

    --published database

    select immediate_sync, * from syspublications

    Please let me know if you need more information.

    Thank you for your support.

  • Minto Minto(quendans) (4/20/2012)


    Could you check the row count of MSrepl_commands before and after the distribution clean job runs.

    Before the job please find the row count of MSrepl_commands

    Row count:4658791

    After the job please find the row count of MSrepl_commands

    Row count:4861893

    Data is increasing but it is not decreasing.

    Also your immediate_sync property is disabled,

    How would we know that immediate_sync property is disabled?

    When i executed below query the Value it is showing "Zero".That means is it disabled?If we change the value to "One",that means is it enable.

    --published database

    select immediate_sync, * from syspublications

    Please let me know if you need more information.

    Thank you for your support.

    It looks like your data is getting time to sync with the subscriber from the publisher. In that case, the contents from the msrepl_commands\msrepl_transactions would not be purged even after the distribution cleanup job runs (even if immediate_sync is 0).

    In order to view the number of commands that are yet to be sent to the subscriber, you could run below command in the distribution database.

    select * from distribution.dbo.MSdistribution_status

    M&M

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in to reply to this topic. Login to reply