Synchronizing Databases With Backup And Restore Utilities - HP NonStop RDF J-series RVUs Management Manual

For j-series and h-series rvus
Table of Contents

Advertisement

CREATE CONSTRAINT EMPNUM_CONSTRNT
ON =EMPLOYEE
CHECK EMPNUM BETWEEN 1 AND 99999;
6.
Create the index for the NonStop SQL/MP table on the primary system:
CREATE INDEX =EMPLNAME
ON =EMPLOYEE( LAST_NAME, FIRST_NAME );
7.
Enter commands to specify the data to be inserted into the table on the primary system:
INSERT INTO =EMPLOYEE ( EMPNUM, FIRST_NAME, LAST_NAME )
INSERT INTO =EMPLOYEE ( EMPNUM, FIRST_NAME, LAST_NAME )
INSERT INTO =EMPLOYEE ( EMPNUM, FIRST_NAME, LAST_NAME )
Now direct your attention to the backup system (\BACK). As you perform the necessary
tasks on this system, note these considerations:
DEFINEs cannot be used if you specify MAP NAMES parameter 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.*.* ,
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, NonStop
SQL/MX, 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.
You must include the AUDITED parameter 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.*.* ,
CATALOG \BACK.$DATA1.DBCAT, INDEXES IMPLICIT,
SQLCOMPILE OFF, LISTALL
The next examples of BACKUP and RESTORE commands show how to copy all files from the
primary system volumes $DATA01, $DATA02, $DATA03, and $DATA04 to the magnetic tape
device named $TAPE and how to restore these files to volumes of the same name on the backup
VALUES ( 826, "Evans", "Joan" );
VALUES ( 3351, "MacArthur", "Bill" );
VALUES ( 10809, "Gember", "Tom" );
\PRIM.$DATA2.*.* TO \BACK.$DATA2.*.* )
\PRIM.$DATA2.*.* TO \BACK.$DATA2.*.* ),
Preparing the Backup System
73

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nonstop rdf h-series rvusNonstop rdf

Table of Contents