TMF Operations and Recovery Guide (G06.24+)

Managing Enscribe Files
HP NonStop TMF Operations and Recovery Guide522417-002
B-2
Altering the Audit Attribute
When working with Enscribe files, you should understand both formats and when they
are used. To learn more about them, see Using Format 2 Files on page B-4.
Altering the Audit Attribute
You can alter the audit attribute of a file interactively by issuing a FUP ALTER
command. You can alter the audit attribute of a file only when TMF is running and the
disk volume on which the file resides is a configured data volume enabled for
transaction processing.
When you alter the audit attribute of a file, the change is automatically applied to all
associated alternate-key files. Likewise, when you alter the audit attribute of the
primary partition of a file, the change is automatically applied to all secondary partitions
of the file.
The following FUP command changes the audit attribute of the file EMPDATA (in the
subvolume FILES on the volume $APPDATA) so that the file is now audited:
57> FUP ALTER $APPDATA.FILES.EMPDATA, AUDIT
The following FUP command changes the audit attribute of the file FILE2 (in the
subvolume APPL2 on the volume $DATA) so that the file is now nonaudited:
13> FUP ALTER $DATA.APPL2.FILE2, NO AUDIT
Changing a File from Nonaudited to Audited
If you alter the audit attribute of a file from nonaudited to audited, backout and volume
recovery start to protect the file at once, by entering before-images and after-images
into the designated audit trail.
Caution. You should not alter the audit attribute of an individual alternate-key file except when
using the FUP LOADALTFILE command to load an alternate-key file for an audited file.
You should not alter the audit attribute of an individual secondary partition (using the
PARTONLY attribute of the FUP ALTER command) except under extreme conditions. For
example, with a distributed database, if a node fails and the file partition that resides there has
to be repaired or reloaded, you must alter the partition’s audit attribute to nonaudited, repair or
reload the partition, and then change the audit attribute back to audited. While the partition is
nonaudited, all TMF protection for the partition is eliminated: backout, file recovery, and volume
recovery do not protect the partition. Attempts to access the file cause all partitions to be
tested and a file system error to be returned.