RDF/IMP, IMPX, and ZLT System Management Manual
Installing and Configuring RDF
HP NonStop RDF/IMP, IMPX, and ZLT System Management Manual—524388-002
3-7
Synchronizing the Primary and Backup Databases
Now direct your attention to the backup system (\BACK). As you perform the
necessary tasks on this system, note the following considerations:
•
DEFINEs cannot be used if you specify MAP NAMES option in the DUP
command.
•
The DUP operation moves the entire database, including all partitions and
indexes, by default.
•
The catalog \BACK.$DATA1.DBCAT is used for all partitions and all indexes.
8. Specify the catalog for the backup system:
CATALOG \BACK.$DATA1.DBCAT;
9. Use the SQLCI DUP command to copy the primary system’s database to the
backup system:
DUP ( *.*.* FROM CATALOG \PRIM.$TEST.DBCAT ),
MAP NAMES ( \PRIM.$DATA1.*.* TO \BACK.$DATA1.*.* ,
\PRIM.$DATA2.*.* TO \BACK.$DATA2.*.* )
SAVEALL ON;
10. After using the SQLCI DUP command, perform a TMF online dump on the primary
system to create a recovery point.
Synchronizing Databases With BACKUP and RESTORE
Utilities
You can use the BACKUP and RESTORE utilities to synchronize NonStop SQL/MP or
Enscribe databases by copying a database to tape on the primary system and
restoring the database from tape on the backup system. This method is preferable
when you want a backup tape of the primary system database, or when the database
is large.
The following example of BACKUP and RESTORE commands shows how to copy a
NonStop SQL/MP database from the primary system \PRIM to the magnetic tape
device named $TAPE and how to restore the database to volumes of the same name
on the backup system \BACK. Note that you must include the AUDITED option in both
the BACKUP and RESTORE commands.
1. Back up the database from \PRIM onto tape:
BACKUP $TAPE, (*.*.* FROM CATALOG \PRIM.$TEST.DBCAT),
AUDITED, INDEXES IMPLICIT, LISTALL
2. Restore the database from tape onto \BACK (assuming the catalog was already
created):
RESTORE $TAPE, *.*.*, AUDITED,
MAP NAMES ( \PRIM.$DATA1.*.* TO \BACK.$DATA1.*.* ,
\PRIM.$DATA2.*.* TO \BACK.$DATA2.*.* ),
CATALOG \BACK.$DATA1.DBCAT, INDEXES IMPLICIT,
SQLCOMPILE OFF, LISTALL