Restore log problem
dmikele
Posts: 8
Why is this happening and how can I avoid this issue?
Also how can I fix it, but not restoring whole db again?
10/10/2012 1:53:01 AM: SQL error 3013: SQL error 3013: RESTORE LOG is terminating abnormally.
10/10/2012 1:53:01 AM: SQL error 4305: SQL error 4305: The log in this backup set begins at LSN 7644000005259200001, which is too recent to apply to the database. An earlier log backup that includes LSN 7644000005259000001 can be restored.
Thanks in advance!
Also how can I fix it, but not restoring whole db again?
10/10/2012 1:53:01 AM: SQL error 3013: SQL error 3013: RESTORE LOG is terminating abnormally.
10/10/2012 1:53:01 AM: SQL error 4305: SQL error 4305: The log in this backup set begins at LSN 7644000005259200001, which is too recent to apply to the database. An earlier log backup that includes LSN 7644000005259000001 can be restored.
Thanks in advance!
Comments
You could use the following query to find the missing file(s), and also when the backup was taken and by whom:
Note that you have to fill in the database name in the above script.
If the missing files are SQL Server backup files, you'll need to restore them using Management Studio first, before using SQL Backup to restore the subsequent files. If the missing files are SQL Backup backup files, you could place them in the same directory with your existing SQL Backup files, and use SQL Backup to restore them all together.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
thanks for fast answer.
Is there any other reason for this error because nobody is making logs manually, that happens very often. When I run query you send I get result which is ok, only user for log shipping is making logs. The log files which you mention dont exist, is configuring log shipping for that db again only solution?
One more thing which is happening often is "Compressed data block not found in file"
If someone else backs up the transaction log, this breaks the transaction log chain in location A. To get things back in sequence again, you'll need to restore that transaction log backup that was not backed up by the SQL Backup log shipping job.
The query I provided should have provided the name of the backup file, the time of the backup and the user that created the backup. Was that backup file created by the SQL Backup backup job?
With regards to the 'Compressed data block not found in file', is the backup file you are trying to restore a SQL Backup backup file?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
If I understand correctly, when I run that qry and get results, these are files which I have to restore first so everything can back to normal?
Regarding to the "Compressed data block not found in file", yes it is Sql backup file.
Thanks.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Error "Compressed data block not found in file" was for another db.
Thanks for help.