The Write File utility
152
The dbwrite command-line utility
dbwrite [
switches
]
database-file
[
write-name
]
Switch Description
–c
Create a new write file
–d database-file Point a write file to a different database
–f database-file Force the write file to point at a file
–m mirror-name Set the transaction log mirror name
–o filename Log output messages to a file
–q
Quiet mode—do not print messages
–s
Report the write file status only
–t log-name Set the transaction log name
–y
Erase old files without confirmation
If any changes are made to the original database (not using the write file), the
write file will no longer be valid. This happens if you start the server using
the original database file, so you should create your write file from an
archived copy of a database.
If a write file becomes invalid, you can discard all of your changes and create
a new write file with the following command.
dbwrite -c db-name write-name
The log-name and mirror-name parameters are used only when creating a
new write file. The write-name parameter is used only with the
-c and -d
parameters. Note that the database_file parameter must be specified before
the write-name parameter.
$ For more information about the command-line switches, see "Write file
utility options" on page 152.
Write file utility options
Create a new write file (–c) If an existing write already exists, any
information in the old write file will be lost. If no write file name is specified
on the command line, the write filename defaults to the database name with
the extension
wrt
. If no transaction log name is specified, the log file name
will default to the database name with the extension
wlg
.
Syntax
Description