![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Version 9.0.2 I am attempting to recover a database in which the only backup is corrupt and multiple log files need to be applied. I have successfully unloaded and reloaded the corrupt database into a new database file but when attempting to apply the log files I get the error "cannot open transaction log xyz.log belongs to a different database" Any words of wisdom please! Thanks Jim |
#3
| |||
| |||
|
|
Applying log files relies on log offsets, once a backup has been started, or rebuilt you can no longer apply existing log files to that database. You could translate the log files and execute the SQL against your new database using the dbtran utility. Jim Diaz wrote: Version 9.0.2 I am attempting to recover a database in which the only backup is corrupt and multiple log files need to be applied. I have successfully unloaded and reloaded the corrupt database into a new database file but when attempting to apply the log files I get the error "cannot open transaction log xyz.log belongs to a different database" Any words of wisdom please! Thanks Jim |
#4
| |||
| |||
|
|
Thanks. My thought was if I rebuilt IAW the process for "Rebuilding databases involved in replication" and then applied the log files I would be all set. So if a user performs a full backup of a corrupt database and then several incremental backups there is no way to recover? In this case the normal database validation did not discover the corruption it was discovered when we initially tried to recover from the full backup. Thanks Jim "Kory Hodgson (Sybase iAnywhere)" <khodgson (AT) A_SPAM_FREE_sybase (DOT) com> wrote in message news:4acceaea$1 (AT) forums-1-dub (DOT) .. Applying log files relies on log offsets, once a backup has been started, or rebuilt you can no longer apply existing log files to that database. You could translate the log files and execute the SQL against your new database using the dbtran utility. Jim Diaz wrote: Version 9.0.2 I am attempting to recover a database in which the only backup is corrupt and multiple log files need to be applied. I have successfully unloaded and reloaded the corrupt database into a new database file but when attempting to apply the log files I get the error "cannot open transaction log xyz.log belongs to a different database" Any words of wisdom please! Thanks Jim |
#5
| |||
| |||
|
|
Thanks. My thought was if I rebuilt IAW the process for "Rebuilding databases involved in replication" and then applied the log files I would be all set. So if a user performs a full backup of a corrupt database and then several incremental backups there is no way to recover? In this case the normal database validation did not discover the corruption it was discovered when we initially tried to recover from the full backup. Thanks Jim "Kory Hodgson (Sybase iAnywhere)" <khodgson (AT) A_SPAM_FREE_sybase (DOT) com> wrote in message news:4acceaea$1 (AT) forums-1-dub (DOT) .. Applying log files relies on log offsets, once a backup has been started, or rebuilt you can no longer apply existing log files to that database. You could translate the log files and execute the SQL against your new database using the dbtran utility. Jim Diaz wrote: Version 9.0.2 I am attempting to recover a database in which the only backup is corrupt and multiple log files need to be applied. I have successfully unloaded and reloaded the corrupt database into a new database file but when attempting to apply the log files I get the error "cannot open transaction log xyz.log belongs to a different database" Any words of wisdom please! Thanks Jim |
#6
| |||
| |||
|
|
the normal database validation did not discover the corruption |
#7
| |||
| |||
|
|
Thanks. My thought was if I rebuilt IAW the process for "Rebuilding databases involved in replication" and then applied the log files I would be all set. So if a user performs a full backup of a corrupt database and then several incremental backups there is no way to recover? In this case the normal database validation did not discover the corruption it was discovered when we initially tried to recover from the full backup. Thanks Jim "Kory Hodgson (Sybase iAnywhere)" <khodgson (AT) A_SPAM_FREE_sybase (DOT) com> wrote in message news:4acceaea$1 (AT) forums-1-dub (DOT) .. Applying log files relies on log offsets, once a backup has been started, or rebuilt you can no longer apply existing log files to that database. You could translate the log files and execute the SQL against your new database using the dbtran utility. Jim Diaz wrote: Version 9.0.2 I am attempting to recover a database in which the only backup is corrupt and multiple log files need to be applied. I have successfully unloaded and reloaded the corrupt database into a new database file but when attempting to apply the log files I get the error "cannot open transaction log xyz.log belongs to a different database" Any words of wisdom please! Thanks Jim |
#8
| |||
| |||
|
|
I don't know how the server knew it was a different database. |

![]() |
| Thread Tools | |
| Display Modes | |
| |