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

Table Of Contents
Strategies for Repairing Damaged Metadata and Objects
Using the mxtool Utility
The mxtool utility provides an OSS command-line interface to various utility operations, including
FIXUP, GOAWAY, INFO, and VERIFY. Use mxtool to repair damaged SQL/MX objects and
metadata. For more information, see:
“Planning Database Security and Recovery” (page 41)
“Querying SQL/MX Metadata” (page 104)
SQL/MX Reference Manual
FIXUP
Use the mxtool FIXUP command to perform limited repair operations that enable you to fix
problems, such as inconsistencies between metadata and labels, by adjusting the label or resource
fork. FIXUP does not repair all problems with inconsistencies, however. For example, if the ANSI
name does not match metadata, you cannot use FIXUP. Instead, you must restore the file that
contains the problem.
For more information about using FIXUP, see “Using FIXUP to Correct Problem Data and Objects
(page 256).
GOAWAY
Use the mxtool GOAWAY command to remove SQL/MX format file labels for both the resource
and data forks associated with a Guardian file. Use GOAWAY to remove objects that are broken
or cannot be dropped by normal DDL operations. GOAWAY does not remove corresponding
metadata entries. However, when a GOAWAY operation completes, you must manually change
metadata tables to remove the associated metadata. If you use MXCI to manually change the
metadata tables, you must use a licensed MXCI process.
Use GOAWAY only when no other method of dropping an object works. You must log on as the
super ID to run GOAWAY.
For more information about using GOAWAY, see “Using GOAWAY to Delete Damaged Objects
(page 260).
INFO
Use the mxtool INFO command to request specific SQL/MX information for a Guardian file
without writing complex queries against metadata. You can use INFO to display information about
SQL/MX files, including the Guardian file name, the corresponding ANSI file name, the ANSI
namespace, and the object schema version.
INFO also enables you to obtain this information if metadata is unavailable. Any user can perform
the INFO operation on files on a remote node if the remote system is available. Note, however,
that if you try to use INFO to access objects on a remote system that were created on a schema
with a version later than the current system version, you receive a versioning error.
For more information about using INFO, see “Using INFO to Display Guardian File Information
(page 256).
VERIFY
Use the mxtool VERIFY utility to check consistency within the database between metadata, resource
forks, and file labels. For more information about using VERIFY, see “Using VERIFY to Check Data
Consistency” (page 254).
Repairing Damaged SQL/MX Metadata and Objects 251