Ask a questionAsk a question
 

AnswerInsufficient Log Data

  • Friday, April 14, 2006 3:41 PMBogey1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The mirror database, "UOP_PIMB", has insufficient transaction log data to preserve the log backup chain of the principal database.  This may happen if a log backup from the principal database has not been taken or has not been restored on the mirror database. (Microsoft SQL Server, Error: 1478)

     

    I've taken a backup while the database is online and applied it to my "other" server.  What do I need to do to have both in sync to get mirroring to work.  My way around this is to restore the backup to my primary.

     

    thanks.

Answers

  • Monday, April 17, 2006 5:20 PMMark Wistrom Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Correct. Usually, you must restore a log backup after restoring the full backup to the server that will be the initial mirror.

    You don't _always_ have to restore a log backup. For example, create a new database, take a full backup and restore it to the partner server. You can start mirroring without doing a log backup/restore.

    BOL has been changed so that it now states that you should restore a log backup to the mirror before starting mirroring.

    If you really want to know _why_ you sometimes need to restore a log backup, grab me at a conference and we'll talk for 15 minutes or so. It was quite the interesting bug that we found around this.

    Thanks,

    Mark

  • Monday, April 17, 2006 11:38 PMMark Wistrom Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Tech Ed this June in Boston.

    Also, anything SQL related in Seattle. PASS usually.  Looks like they are going to be here (Seattle) in November.

    Then there is this:

    http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032290575&EventCategory=4&culture=en-US&CountryCode=US

    Thanks,

    Mark

All Replies

  • Friday, April 14, 2006 4:43 PMNils Loeber Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Even though the BOL don't mention this, I have always had to apply a full backup AND a transactional backup to the mirror server. A full backup did not suffice. Can anyone confirm this?
  • Monday, April 17, 2006 5:20 PMMark Wistrom Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Correct. Usually, you must restore a log backup after restoring the full backup to the server that will be the initial mirror.

    You don't _always_ have to restore a log backup. For example, create a new database, take a full backup and restore it to the partner server. You can start mirroring without doing a log backup/restore.

    BOL has been changed so that it now states that you should restore a log backup to the mirror before starting mirroring.

    If you really want to know _why_ you sometimes need to restore a log backup, grab me at a conference and we'll talk for 15 minutes or so. It was quite the interesting bug that we found around this.

    Thanks,

    Mark

  • Monday, April 17, 2006 6:03 PMBogey1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    What conferences are in the near future for sql server 2005 that you'll be at (North America)?

    thanks.

  • Monday, April 17, 2006 11:38 PMMark Wistrom Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Tech Ed this June in Boston.

    Also, anything SQL related in Seattle. PASS usually.  Looks like they are going to be here (Seattle) in November.

    Then there is this:

    http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032290575&EventCategory=4&culture=en-US&CountryCode=US

    Thanks,

    Mark

  • Tuesday, April 24, 2007 12:14 PMMr MTA Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hallo,

     

    I had the same problem so i restored the Datanase and the transactionlog but I now received another errormessage:

    "The remote copy of database "mirror_Test" has not been rolled forward to a point in time that is encompassed in the local copy"

    this issue however was resolved after i backed up and restored the Database and the Transactionlog 3 times in a row .

     

    this was only a small database in our testLab but is there a explaination / solution for this problem so i dont have to backup and restore our 60 Gb production db 3 times ( or more ) in a row ?

    thanks in advance & Kind regards

     

    Maarten

     

  • Wednesday, July 11, 2007 5:03 PMGeorgeWangAtSomeCompany Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, Mark,

    We are trying to use COPY_ONLY option to backup the FULL and LOG, and use that to create the mirror db. We got same error. Is this a known limitation of COPY_ONLY option? (we want to use COPY_ONLY option so that it won't affect our regular backups)

    Thanks!

    George
  • Thursday, September 17, 2009 8:44 PMbarkingdog Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    1. I presume the log must be restored in "No Recovery" mode. Is that correct?

    2. I just realized this discussion was for sql 2005. Does that same "restore a transaction log" issue apply to sql 2008?


    TIA,

    Barkingdog
    • Edited bybarkingdog Thursday, September 17, 2009 8:46 PMedit
    •  
  • Sunday, September 20, 2009 11:30 PMbarkingdog Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I just setup Mirroringon a sql 2008 box and also had to restore a translog!

    I thought that was a bug -- why isn't it fixed in sql 2008?

    TIA,

    barkingdog
  • Wednesday, October 21, 2009 4:08 AMxbandit Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, Mark,

    We are trying to use COPY_ONLY option to backup the FULL and LOG, and use that to create the mirror db. We got same error. Is this a known limitation of COPY_ONLY option? (we want to use COPY_ONLY option so that it won't affect our regular backups)

    Thanks!

    George

    Same thing here. Figured out that you can't use the COPY_ONLY option when using the tran log to set up mirroring. Makes sense in a way since copy only doesnt update the last LSN number... So I'm guess that though the contents of the tran log backup are the same with or without the COPY_ONLY option the last LSN to be backed up has to match from the principle to the mirror.