Logshipping

  • In my environment logshipping process is there.For this we created backup job from primary server (LON549)and restore job in secondary server(BCPDBS01). every 15 minutes differential backup will happen and restore it in secondary server....

    today the job is getting failed...error details is as follows

    [Executed as user: CMCK\SQLBCPDBS01. Cannot apply the backup on device '\\Bcpdbs01\g$\Backups\LON549\MH\Diff\MH_DiffBackup_20090519_084500.BAK' to database 'MH'. [SQLSTATE 42000] (Error 3136) RESTORE DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed.]

    Please help me on this its urgent

  • you don't want to be taking and restoring differential backups, you should be doing log backups.

    with differential backups as soon as you take a full backup the differential resets and starts again, at a guess this is what has happened to you.

    use the logshipping wizard to set up log shipping based on transaction log backups.

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

  • For one year we are following this way...we cant do any other methods to solve this....

  • shanila_minnu (5/19/2009)


    For one year we are following this way...we cant do any other methods to solve this....

    why can't you?

    has a full backup been taken?

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

  • ya..every day morning full backup will happen

  • then is that backup normally taken with the copy only option, or is it normally restored on the standby server?, and one of these two things was not done.

    I would suggest switching to log backups.

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

  • i restored the full backup again and then differential

    now the problem is solved

  • good, thanks for posting resolution.

    I would still recommend switching to logshipping longer term

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

  • I am confused with lsn in backup. can u please explain how lsn has importance in taking database backup and log backups. And how the log chain will break and effects the logshipping

    Thanks in advance..

  • How do you make failure in primary server instance and make secondary server instance databases online

    please provide your suggestions..

  • Failover - http://msdn.microsoft.com/en-us/library/ms191233.aspx

    The LSNs track the ordering of log records. You cannot restore if your LSNs do not go in order.

  • Steve, sorry to hijack this posts... But if you have 15 minute logs backups and P2P replication could it lead to lost transations when the backup takes place and the log reader processes?

    thanks

  • sql_lock (3/26/2010)


    Steve, sorry to hijack this posts... But if you have 15 minute logs backups and P2P replication could it lead to lost transations when the backup takes place and the log reader processes?

    No. Log records cannot be removed until replication has finished with them. The log_reuse_wait_desc column on sys.databases will show 'REPLICATION' in such a case.

  • Thanks Paul... Much appreciated!

    Jonlee

Viewing 14 posts - 1 through 13 (of 13 total)

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