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

Table Of Contents
Using GOAWAY to Delete Damaged Objects
SQL/MX files consist of two physical Guardian files: data fork and resource fork. Normally, when
the data fork is dropped, DP2 automatically drops the corresponding resource fork. In some cases,
either an orphaned resource fork or data fork can exist.
mxtool GOAWAY is an OSS command-line utility run from mxtool that removes SQL/MX format
file labels for both the resource and the data forks associated with a Guardian file.
NOTE: mxtool GOAWAY does not remove corresponding metadata entries and does not
support ANSI names. Use the MXCI SHOWLABEL command to identify the Guardian file names
that correspond to ANSI object names.
For more information, see the SQL/MX Reference Manual.
Recovering From SCF Commands
Incorrect use of SCF commands can cause serious and possibly irreparable inconsistencies in an
SQL/MX database.
If your site needs to use any of these SCF commands on a volume with SQL/MX objects, you should
first carefully plan a recovery:
ABORT DISK
ALTER DISK
, ALTNAME
, LABEL
, VOLNAME
INITIALIZE DISK
RENAME DISK
STOP DISK
START DISK
ABORT DISK
The ABORT DISK command puts a disk into the STOPPED state, substate HARDDOWN, but leaves
the disk process running. Do not use the stopped drive to store production SQL/MX database files.
Use the drive for a test database or for temporary space for sort files. You must ensure that you
can make the volume inactive and revive the drive back to its original mirrored configuration with
no effect on the original database.
Use the ABORT DISK command on a volume to put a particular volume out of operation. You can
later use the START DISK command to put the same disk back into operation. See “START DISK
and STOP DISK” (page 262). Inconsistency is unlikely if the disk brought up is identical to the disk
brought down. Always perform a STOPOPENS DISK on the volume and a CONTROL DISK,
REFRESH on the volume to ensure valid file labels before you make the volume inactive.
CAUTION: You cannot use ABORT DISK on a volume and replace the volume with an earlier
version of that same volume without causing inconsistencies in the database.
The only exception to the preceding rule is if the entire database has been consistently brought
down as a unit. For example, suppose that you use ABORT DISK to bring down all the backup
volumes of the mirrored pairs containing SQL/MX objects in a consistent state. The other mirrored
set continues the active database, but the inactive mirrors also contain a set of consistent SQL/MX
objects.
260 Performing Recovery Operations