Transaction log is full

  • hi,

    my database transactionlog is full I am getting below error while shrinking and also my secondary database went to not synchronising mode/suspect mode .

    Msg 9002, Level 17, State 9, Line 1

    The transaction log for database 'New' is full due to 'AVAILABILITY_REPLICA'.

    can any one suggest how to resolve this issue

  • Either fix the replica so that it is syncing or remove the availability groups, fix the root problems and reconfigure.

    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
  • Hi,

    I have tried to shirnk the database also below error I am getting

    The transaction log for database 'New' is full due to 'AVAILABILITY_REPLICA'. (Microsoft SQL Server, Error: 9002)

  • No, you won't be able to shrink the database because the log is full.

    GilaMonster (4/1/2015)


    Either fix the replica so that it is syncing or remove the availability groups, fix the root problems and reconfigure.

    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
  • Arjun SreeVastsva (4/1/2015)


    hi,

    my database transactionlog is full I am getting below error while shrinking and also my secondary database went to not synchronising mode/suspect mode .

    Msg 9002, Level 17, State 9, Line 1

    The transaction log for database 'New' is full due to 'AVAILABILITY_REPLICA'.

    can any one suggest how to resolve this issue

    What's the status of any secondaries (synch or asynch session, redo queue length, etc)?

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Arjun SreeVastsva (4/1/2015)


    Hi,

    I have tried to shirnk the database also below error I am getting

    The transaction log for database 'New' is full due to 'AVAILABILITY_REPLICA'. (Microsoft SQL Server, Error: 9002)

    And because the transaction log is what is used to ensure synchronizing with the secondary. You need to get that back online, or removed, before you're going to be able to do anything else.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Remove the primary database from Availability Group. Shrink the DB and then add it back.

  • Ratheesh.K.Nair (4/1/2015)


    Remove the primary database from Availability Group. Shrink the DB and then add it back.

    This is the last thing you should do and you'd be well advised to avoid this

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Perry Whittle (4/1/2015)


    Ratheesh.K.Nair (4/1/2015)


    Remove the primary database from Availability Group. Shrink the DB and then add it back.

    This is the last thing you should do and you'd be well advised to avoid this

    Not unless you've fixed the root cause, that's for certain.

    Please, listen to Perry on this.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Please , could you have a look at this link ?

    I am far to be a specialist of this kind of problem , but it is the 1st post I found which could help you for your problem.

  • As experts suggested, yes please listen to Perry.

    I was just giving you the way how you can do that.

Viewing 11 posts - 1 through 10 (of 10 total)

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