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

Table Of Contents
To conduct the recovery, you use the TMFCOM RECOVER FILES command. You can use the
MXGNAMES output as input to the RECOVER FILES command, as was done in Step 3:
$SYSTEM ZMXTOOLS 29> MXGNAMES HRDATA.PERSNL.EMPLOYEE -TMF
Hewlett-Packard NonStop (TM) SQL/MX Guardian Name Listing Utility
(c) Copyright 2003 Hewlett-Packard Development Company, LP.
(-- Table HRDATA.PERSNL.EMPLOYEE -- &
$DATA10,ZSDT5356.NG59FJ*,&
-- Index XEMPNAME ON HRDATA.PERSNL.EMPLOYEE -- &
$DATA10.ZSDT5356.JN9V5J*,&
-- Index XEMPDEPT ON HRDATA.PERSNL.EMPLOYEE -- &
$DATA10.ZSDT5356.NPFH8J* &
--End of Table HRDATA.PERSNL.EMPLOYEE -- &
)
TMF 3>RECOVER FILES (-- Table HRDATA.PERSNL.EMPLOYEE -- &
$DATA10.ZSDT5356.NG59FJ*,&
-- Index XEMPNAME ON HRDATA.PERSNL.EMPLOYEE--&
$DATA10.ZSDT5356.JN9VFJ*,&
-- Index XEMPDEPT ON HRDATA.PERSNL.EMPLOYEE--&
$DATA10.ZSDT5356.NPFH8J* &
--End of Table HRDATA.PERSNL.EMPLOYEE--&
),FROMARCHIVE, TOFIRSTPURGE
9. The objects are now recovered in the database. However, additional work might need to be
done because of possible inconsistencies between the objects’ file labels on disk and the
corresponding information for them in the SQL/MX metadata.
TMF does not update or insert entries in the SQL catalog during a RECOVER FILES operation
for an SQL/MX object. As it performs the recovery, TMF will attempt to automatically
synchronize the objects’ create and redefinition timestamps between the catalog and the file
label on disk. If TMF cannot perform this synchronization, it will display EMS Message 203
(with Subsystem Error 9038) for each inconsistency, for example:
NonStop TMF on \PLUTO *0203* RECOVER FILES [57]
OnLineRestore Process #1 OnlineDumpMgmt: *WARNING*
TMF-9038: $DATA10.ZSDT5356.NPFH8J00: Unable to retrieve the CreateTime
and RedefTime for this object from disk. Using the values from the online
dump instead.
At the end of the recovery operation, you can use these EMS messages to determine which
files have timestamps on disk that are inconsistent with their timestamps in the SQL catalog.
You must then manually perform the synchronization for these objects, as explained in Step
10.
Alternatively, you can use the mxtool VERIFY utility to list the inconsistencies between the
object descriptions in the file labels and in the SQL/MX metadata:
/USR/TANDEM/SQLMX/DDL:MXTOOL VERIFY HRDATA.PERSNL.EMPLOYEE
NonStop SQL/MX MXTOOL Utility 2.0
(c) Copyright 2004 Hewlett-Packard Development Company, LP. All Rights Reserved.
Verifying table: HRDATA.PERSNL.EMPLOYEE
Verifying label for partition: \KRYPTON.$DATA10.ZSDT5356.NG59FJ00
Inconsistency found:
*** ERROR[20760] The redefinition timestamp (211935615169948888) defined
on the label does not match the time (211935867787362245) defined in the
metadata for Guardian file (\KRYPTON.$DATA10.ZSDT5356.NG59FJ00).
Verifying resource fork for partition: \KRYPTON.$DATA10.ZSDT5356.NG59FJ00
Verifying constraints: \KRYPTON.$DATA10.ZSDT5356.NGC59FJ00
Verifying Partition Map: no partition map exists
Verifying Index Map: \KRYPTON.$DATA10.ZSDT5356.NG59FJ00
Verifying index: HRDATA.PERSNL.XEMPDEPT
Verifying label for partition: \KRYPTON.$DATA10.ZSDT5356.NPFH8J00
246 Performing Recovery Operations