SQL/MX 3.2 Management Manual (H06.25+, J06.14+)

Table Of Contents
Table 5 Backup and Restore of SQL/MX and OSS Objects
RESTORE CommandBACKUP Command
SQL/MX or OSS
Object
Explicitly restores the named catalog and all
subordinate objects.
Explicitly backs up the named catalog and all
subordinate objects. See “Backing Up Catalogs
(page 63).
Catalog
Explicitly restores the named schema and all
subordinate objects. Unless specifically
Explicitly backs up the named schema and all
subordinate objects. Unless specifically
Schema
excluded, a schema is automatically restored
when its associated catalog is restored.
excluded, a schema is automatically backed up
when its associated catalog is backed up. See
“Backing Up Schemas” (page 63).
Explicitly restores the named table. Unless
specifically excluded, a table is automatically
Explicitly backs up the named table. Unless
specifically excluded, a table is automatically
Table
restored when its associated catalog or schema
is restored.
backed up when its associated catalog or
schema is backed up. See “Backing Up Tables
and Partitions” (page 63).
Explicitly restores the named partitions of a
named table when you specify the TPART object
Explicitly backs up the named partitions of a
named table when you specify the TPART object
Partition
type. To restore both the SQL data in a tabletype. To back up both the SQL data in a table
partition and its metadata, also specifypartition and its metadata, also specify
SQLDATA ON. To restore the DDL informationSQLDATA ON. To back up the DDL information
in a table partition and its metadata, specify
SQLDATA OFF.
in a table partition and its metadata, specify
SQLDATA OFF. See “Backing Up Tables and
Partitions” (page 63).
All constraints except REFERENTIAL INTEGRITY
can be restored with Backup and Restore 2. To
Unless you specify the CONSTRAINTS
EXCLUDED option, all SQL/MX constraints are
Constraints
restore a REFERENTIAL INTEGRITY constraint,automatically backed up when you back up
run the OBEY command file for the constrainttheir catalog, schema, or table. See
“Constraints” (page 64). generated by the RESTORE SHOWDDL ON
command. See “Using the RESTORE SHOWDDL
ON Option to Re-Create Objects” (page 66).
Explicitly restores the named index. Unless
specifically excluded, an index is automatically
Explicitly backs up the named index. Unless
specifically excluded, an index is automatically
Index
restored when you restore its associated catalogbacked up when you back up its associated
or schema. See “Backing Up Indices and Index
Partitions” (page 64).
catalog or schema. See “Backing Up Indices
and Index Partitions” (page 64).
Explicitly restores the named partitions of a
named index when you specify the IPART object
Explicitly backs up the named partitions of a
named index when you specify the IPART object
Index partition
type. To restore the SQL data in a table partitiontype. To back up the SQL data in an index
and its metadata, specify SQLDATA ON. Topartition and its metadata, specify SQLDATA
restore the DDL information in an index partitionON. To back up the DDL information in an index
and its metadata, specify SQLDATA OFF. Seepartition and its metadata, specify SQLDATA
“Backing Up Indices and Index Partitions
(page 64).
OFF. See “Backing Up Indices and Index
Partitions” (page 64).
To restore only the metadata for index partitions,
specify the SQLDATA OFF option and do not
To back up only the metadata for index
partitions, specify the SQLDATA OFF option and
Index partition
metadata
specify INDEXES EXCLUDED when you restoredo not specify INDEXES EXCLUDED when you
the index’s table. The metadata is restored, and
the user data is not.
back up the index’s table. The metadata is
backed up, and the user data is not.
Does not automatically restore SPJs. You can
run the OBEY command file for the SPJ
When you back up a catalog or schema,
BACKUP automatically backs up the SQL/MX
SPJ
generated by the RESTORE SHOWDDL ONmetadata of all SPJs therein. To back up the Java
command to reregister SPJs. See “Using thebytecode of the SPJ Java methods, which are
RESTORE SHOWDDL ON Option to Re-Create
Objects” (page 66).
stored in class or JAR files in OSS directories,
you must specify OSS backup objects. See
“Backing Up and Restoring SPJ Metadata
Information” (page 65) and “Backing Up and
Restoring SPJ Class or JAR Files” (page 65).
Using Backup and Restore 2 for SQL/MX Database Recovery 61