HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide

[Contents][Glossary][Index][Back][Next]

8.1.6 Notes on creating an import information editing UOC routine

Organization of this subsection
(1) Limitation on signals
(2) Limitations on system calls
(3) Limitation on shared memory
(4) Limitation on synchronization points
(5) Notes on creating a UOC routine that accesses a database
(6) Relationship with the import environment definition
(7) Notes when not collecting an import processing-related audit trail
(8) Notes about linking data in a table for which a referential constraint has been defined
(9) Notes about the extended syslog facility

(1) Limitation on signals

Do not conduct signal operations in an import information editing UOC routine's functions.

(2) Limitations on system calls

(3) Limitation on shared memory

Do not use the same shared memory that is used by the target Datareplicator or by any other system.

(4) Limitation on synchronization points

If hds_uedit() passes COMMIT and its return value is 0 or 4, Datareplicator assumes that one synchronization point was completed. If the import information editing UOC routine's process is aborted due to an error, restart takes place at the synchronization point immediately following the previous synchronization point. You must code the processing in the import information editing UOC routine's functions so that synchronization point processing occurs when COMMIT is passed and so that no duplicate processing occurs when processing is restarted after an abnormal termination.

(5) Notes on creating a UOC routine that accesses a database

When you create a UOC routine that accesses a database, use the hds_uend() editing termination function to reference the termination information flag (stopinf) in the interface block (UINTERFACE_BLK). If the termination information indicates forced termination, create the UOC routine so that it executes ROLLBACK on the database system, and then executes DISCONNECT. If the UOC routine executes DISCONNECT without executing ROLLBACK, update processing up to the point of forced termination will be committed by automatic commitment of DISCONNECT. The next time Datareplicator is restarted, there will be an inconsistency in the database and the UOC routine will result in an SQL error.

(6) Relationship with the import environment definition

(7) Notes when not collecting an import processing-related audit trail

The notes provided here apply to when you create a new import information editing UOC routine.

If you are using an existing import information editing UOC routine, re-link the executable file of the import information editing UOC routine. In this case, verify that the existing import information editing UOC routine does not violate the notes provided here. For details about the linkage procedure, see 8.1 Import information editing UOC routine. If you do not link the programs, an audit trail will be collected.

(8) Notes about linking data in a table for which a referential constraint has been defined

A table for which a referential constraint has been defined cannot be specified in an import information editing UOC routine.

(9) Notes about the extended syslog facility

If you will be using the extended syslog facility, re-link the UOC routine by using the linkage procedure described in 8.1.2 Creating an import information editing UOC routine (UNIX).

If the UOC routine is not linked as instructed, the extended syslog facility will not be applicable to syslogfile that is output for the import information editing UOC routine.