decedi_repair(8) — Maintenance
Name
decedi_repair − The decedi_repair command is a utility that allows a DEC/EDI Administrator to repair the Live Audit Trail when it becomes inconsistent due to the occurrence of known situations, such as objects that are in an archivable state but haven’t been archived. It also provides the ability to remove ’killer’ objects, from the Live Audit Trail, that continually cause the DEC/EDI Server to crash.
FORMAT
decedi_repair [-con[firm]] [-v[erbose]] [-typ[e]=object type [object_id]]
decedi_repair -can[cel] [-con[firm]] [-v[erbose]] -typ[e]=object type object_id
decedi_repair -w[ork_file] [-s[ize]=number]
Flags
-cancel
Flags that a cancel operation be performed.
The type flag and object_id parameter are mandatory when this flag is used.
-confirm
Switches on confirmation checking. After the confirmation prompt answer the affirmative for the action to be made; or return (or anything other than the affirmative response) for no action to made .
-verbose
Switches on verbose processing. This displays information about each object processed by the repair tool, such as the object id, the object type,a problem description and a suggested action.
-work_file
This flags that the Archive Server Work File should be repaired. This involves the creation of a work file, if one doesn’t exist, or if one does exist, it will be deleted and a new work file will be created (with correct protections) and an entry for each object, in the live audit trail, that is at an archivable status will be added.
-size=number
This will limit the size of the newly created work file (as above) to number of entries.
This flag can only be used after the -work_file flag.
-type=object type
Selects what object type to perform repairs on. The object type can be one of:-
a[pplication_file], process application files.
d[ocument], process documents.
t[ransmission_file], process transmission files.
If either decedi_imfd or decedi_imcd images are present then no application file objects will be repaired as it can not be guaranteed that all processing on them has finished. These images can be killed using the Object Broker obbmstp command.
Parameter
object id
The object id must be in one of the following formats, depending on the object type specified:-
a[pplication_file]- <run id>
d[ocument]- <application id>_<direction>_<document count>
t[ransmission_file] - <transmission filename>
Examples
# decedi_repair -verbose -confirm -type=document
Object Type : DOCUMENT
Object Id: TRAD-SEND_O_0000000224
Problem Description: Object was not archived yet it was in an archivable state.
Action Description: Add entry in Archive Server Work File.
Repair ? [N]y
%REPAIR-I- Action completed successfully.
Object Type : DOCUMENT
Object Id: TRAD-SEND_O_0000000225
Problem Description: Object was not archived yet it was in an archivable state.
Action Description: Add entry in Archive Server Work File.
Repair ? [N]y
The above example performed a repair on all Document objects. The repair steps are output in Verbose mode. Confirmation is requested before each repair is performed.
# decedi_repair -can -type=trans 29Mar199613355682_trad
Cancel 29MAR199613355682_TRAD
%REPAIR-I- Action completed successfully.
The above example cancelled the transmission file 29MAR199613355682_TRAD. By default the output mode was brief and no confirmation was requested before the repair was made. The 29MAR199613355682_TRAD transmission file will have been set to Cancelled status.
# decedi_repair -work_file -size=10
%REPAIR-I- Processing Archive Server Work File.
%REPAIR-I- Processing Completed
The above example has recreated the Archive Server Work file with correct protections and has added the first 10 objects (as a size limit has been specified) that are archivable to this file. If either decedi_imfd or decedi_imcd images are present then no application file objects will be archived as it can not be guaranteed that all processing on them has finished. These images can be killed using the Object Broker obbmstp command.