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

Table Of Contents
Verifying Partition Map: no partition map exists
Verifying index: HRDATA.PERSNL.XEMPNAME
Verifying label for partition: \KRYPTON.$DATA10.ZSDT5356.JN9V5J00
Verifying resource fork for partition: \KRYPTON.$DATA10.ZSDT5356.JN9V5J00
Verifying Partition Map: no partition map exists
Object verification complete for: HRDATA.PERSNL.EMPLOYEE
13. If the CASCADE option was specified in the original DROP TABLE command, the table’s views
would also have been dropped along with the table and its indexes. If that was the case, you
should re-create the dropped views now, using the DDL you saved when the view was created.
CAUTION: To ensure that you can recover the table and its indexes again in the future, take
new online dumps of the recovered files now. Also dump any newly created views.
14. Update the statistics for the recovered table. For more information, see the SQL/MX Reference
Manual.
15. Use the DISPLAY USE OF command to identify any SQL modules that access the recovered
table, and perform an explicit SQL recompilation for those modules using MXCMP or
mxCompileUserModule. For more information, see SQL/MX Reference Manual and the
SQL/MX Programming Manual for C and COBOL.
Recovering Views and Indexes
If the SQL/MX object purged is a view or an index and its related table still exists in the system,
you can recover the object by simply re-creating it:
An SQL/MX view does not contain data. The data referenced by the view is stored in the
underlying tables. Therefore, you can easily return a purged view to the database by re-creating
the view definition through the original CREATE VIEW statement, which you should have saved
by using the SHOWDDL command when the view was created. After you recover the view,
be sure to make a new online dump of the view and its related table or tables.
An SQL/MX index specifies an alternate access path to a table. You can recover a purged
index by re-creating it using the original CREATE INDEX statement, which you should have
saved using the SHOWDDL command when the index was created. This approach ensures
that the new index includes keys for all rows of the table. After you recover the index, be sure
to make a new online dump of the index and its related table.
For more information, see “Creating an SQL/MX Database” (page 72) and the SQL/MX Reference
Manual.
Restoring Objects With BRCOM RESTORE
Use the BRCOM RESTORE command of Backup and Restore 2 to recover SQL/MX objects that
have been backed up on tape. For this discussion, restoring SQL/MX objects and databases means
you are replacing existing objects in the same location. Restoring SQL/MP objects is not discussed
here. For more information on this topic, see the Backup and Restore 2 Manual and the SQL/MP
Installation and Management Guide.
Restoring Catalogs
When you restore a catalog, all its dependent objects (for example, schemas, tables, and indexes)
are also restored.
Specify the CATALOG object to restore one or more catalogs:
BR> RESTORE $tape-drive, MX CATALOG mycat1;
BR> RESTORE $tape-drive, MX CATALOG mycat1, CATALOG mycat2;
248 Performing Recovery Operations