Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual page 421

Table of Contents

Advertisement

Example 2 — Moving
the Catalog Store
To move any other database file, you use the
Note
The
utility is not supported by Adaptive Server IQ because it
DBTRAN
regenerates only those parts of the transaction log that are specific to Adaptive
Server Anywhere.
This example restores the same database as Example 1. In Example 2, however,
you move the Catalog Store file and any database files that were created
relative it. To do so, you replace the original file name with its new location,
c:\newdir, as follows:
RESTORE DATABASE 'c:\\newdir\\asiqnew.db'
FROM 'c:\\asiq\\backup1'
FROM 'c:\\asiq\\backup2'
Adaptive Server IQ moves database files other than the Catalog Store as
follows:
If you specify a
RENAME
If you do not specify a
relative pathname, it is restored relative to the new location of that
database file. In other words, files originally created relative to the
dbspace, which holds the Catalog Store file, are restored relative
SYSTEM
to the Catalog Store file. Files originally created relative to the
dbspace, which holds the main IQ Store file, are
IQ_SYSTEM_MAIN
restored relative to the main IQ Store file.
If you do not specify a
absolute pathname, the file is restored to its original location.
In other words, if you want to move an entire database, you should specify in
a
clause the new location for every IQ dbspace in the database—
RENAME
required, temporary, and user-defined. The SYSTEM dbspace is the only one
you do not include in a
RENAME
If you only want to move some of the files, and overwriting the original files is
not a problem, then you only need to rename the files you actually want to
move.
You specify each dbspace_name as it appears in the
specify new_dbspace_path as the new raw partition, or the new full or relative
pathname, for that dbspace.
You cannot use the
RENAME
CHAPTER 11
Backup and Data Recovery
RENAME
clause, the file is moved to that location.
clause, and the file was created using a
RENAME
clause, and the file was created using an
RENAME
clause.
option to specify a partial restore.
option.
table. You
SYSFILE
401

Advertisement

Table of Contents
loading

Table of Contents