Tlog growing for replicated database

  • Our OLTP database Tlog grown up to 100gb on UAT. Even though recovery model is simple. the database is used for snapshot replication. I was trying to shrink but is fails(i tried in small increments). does any one faced same type of situation??

  • What does the log_reuse_wait gives you if you query sys.databases?

    _____________
    Donn Policarpio

  • its giving replication ๐Ÿ˜‰

  • Look for open transactions in your database.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • yes we have open transactions from more than a month

    Transaction information for database 'testโ€™.

    Replicated Transaction Information:

    Oldest distributed LSN : (0:0:0)

    Oldest non-distributed LSN : (43831:51:1)

  • You may want to script out your publication in case you would need to recreate it again. I would drop the publication and disable (sp_replicationdboption) publishing of the db. Then check sys.databases again for the log reuse wait. I've had some cases where running sp_repldone was the last option i had which fixed the problem.

    _____________
    Donn Policarpio

  • yeah i find the same type of solution

    my question is if we run the sp_repldone on db will it create any other issues like log agents will not pick ?

    Is there a way without removing the replication can we shrink the log?

  • my question is if we run the sp_repldone on db will it create any other issues like log agents will not pick ?

    If you have snapshot replication then you don't have a log reader and the solution to your problem is as the msdn blog post describes

    Is there a way without removing the replication can we shrink the log?

    Yes, the method described in the blog post that you referenced.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 8 posts - 1 through 7 (of 7 total)

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