Re: not a valid undo file for database

From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 10/05/04


Date: Tue, 5 Oct 2004 22:09:36 +0200

The UNDO file is created when you perform RESTORE using the STANDBY option.

This is because SQL Server will actually perform recovery based on the transaction log when you are
using STANDBY, but as you say you want to be able to perform additional restores, SQL Server will
save the recovery work it performs in this undo file so it can undo the recovery work when you do
the next restore.

SQL Server will remember the name of the undo file so it will automatically find it when next
restore is performed. In this case, SQL Server doesn't recognize the undo file as a valid file.
Perhaps someone deleted the file and just created one through notepad, or picked some other UNDO
file and renamed it? Bottom-line is that SLQ Server *need* a valid UNDO file for the next restore.

You can always re-start all restores from the latest database backup.

-- 
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"ykchakri" <anonymous@discussions.microsoft.com> wrote in message 
news:2abc01c4ab08$347ecdb0$a501280a@phx.gbl...
> Yes, it does. And I've tried renaming this file and then
> it gives a different error that the file does not exist.
> SO, I'm sure that it is able to access this file, but
> something is not right in this file.
>
> What's the purpose of this file anyway ?
>
>>-----Original Message-----
>>Does the file mentioned in the error message actually
> exist?
>>
>>-- 
>>Tibor Karaszi, SQL Server MVP
>>http://www.karaszi.com/sqlserver/default.asp
>>http://www.solidqualitylearning.com/
>>
>>
>>"ykchakri" <anonymous@discussions.microsoft.com> wrote in
> message
>>news:21a001c4aa62$329a33a0$a501280a@phx.gbl...
>>> Hi,
>>>
>>> I've restored a database from backup, with STANDBY
> option.
>>> Now, when I'm trying to apply further Transaction logs
> to
>>> this database, the restore log command is failing with
> an
>>> error 'File 'd:\standby.undo' is not a valid undo file
> for
>>> database 'xyz', database ID 24.
>>>
>>> Please let me know how to I avoid this error and restore
>>> logs to this database.
>>
>>
>>.
>> 


Relevant Pages

  • Re: begin and end transaction and transaction log
    ... found to truncate the transaction log is to stop and start the SQL ... If you run with full recovery and want to be table to restore to a point ... Books Online for SQL Server 2005 ...
    (comp.databases.ms-sqlserver)
  • Re: begin and end transaction and transaction log
    ... found to truncate the transaction log is to stop and start the SQL ... If you run with full recovery and want to be table to restore to a point ... Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books ... ...
    (comp.databases.ms-sqlserver)
  • Re: Restore Transaction log or the .bak
    ... Databases located under Administering SQL Server. ... > If there is inconsistency on the DB and I want to restore to a last known ... should I restore the transaction log files which is backed up ...
    (microsoft.public.sqlserver.server)
  • Re: standby server
    ... You specify the name of the file when you do the restore, and at the next restore, ... SQL Server will know that file name. ... The undo file will be deleted ...
    (microsoft.public.sqlserver.server)
  • Re: Transaction Log
    ... There cannot be users in the DB when you go to do a restore. ... Allan Mitchell (Microsoft SQL Server MVP) ... the job which applies 'Transaction Log' failed with an error ...
    (microsoft.public.sqlserver.security)