Renaming The Transaction Log After You Restore - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Renaming the transaction log after you restore

The DBLOG command-line utility
Syntax
Switches
Tapes B
and B
. These must be restored as a set, after Set A, and either
Set B
1
2
before or after Set C. They can be in either the second or third device.
Tapes C
, C
, and C
Set C
1
2
either before or after Set B. They can be in either the second or third device.
The Restore program checks that tapes within each set are in the correct order
on a single device. If not, you get an error, and the restore does not proceed
until you supply the correct tape. Except for the set with the Catalog Store, it
does not matter which set you put on a given device.
Note
You must ensure that the Catalog Store tape set is restored first. The
Restore program does not check this.
Although these rules also apply to disk files, you are not likely to back up to
multiple files on a given disk device.
When you rename or move all other files in the database, you should also do
the same for the log file. To move or rename the log file, use the Transaction
Log utility (
). You should run this utility:
DBLOG
After using
RESTORE
After using
RESTORE
Note
The database server must not be running on that database when the
transaction log filename is changed. If you try to use this utility on a running
database, you get an error message.
You can access the Transaction Log utility from the system command line,
using the
command-line utility.
DBLOG
dblog [switches] database-file
Switch
mirror-name
-m
log-name
-t
CHAPTER 11
Backup and Data Recovery
. These must be restored as a set, after Set A, and
3
with a new database name
with the
option
RENAME
Description
Set transaction log mirror name.
Set the transaction log name
405

Advertisement

Table of Contents
loading

Table of Contents