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

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

8.2.5 Notes on creating a column data editing UOC routine

To execute a column data editing UOC routine, specify the directory path to the shared library file in an environment variable. Note that the environment variable and the shared library file to be used depend on the OS. The following table shows the environment variable and shared library file for each OS.

Table 8-34 Environment variable and shared library file for each OS

OS Environment variable Shared library file
HP-UX (32-bit or 64-bit edition) SHLIB_PATH libhdscuoc.sl
HP-UX (IPF version), Solaris, or Linux (32-bit, IPF, or EM64T version) LD_LIBRARY_PATH libhdscuoc.so
AIX LIBPATH libhdscuoc.a

If the environment variable is not specified or there is no shared library file at the directory path specified in the environment variable, Datareplicator executes import processing without using the column data editing UOC routine.

Organization of this subsection
(1) Limitations on signals
(2) Limitations on file manipulations
(3) Limitations on shared memory
(4) Limitations on data types
(5) Limitations on SQL execution
(6) Notes about the AIX Datareplicator
(7) Notes about handling repetition columns

(1) Limitations on signals

Do not conduct signal operations in a column data editing UOC routine's function.

(2) Limitations on file manipulations

You can manipulate only user-specific files (that are open) within a column data editing UOC routine's function. The following are the file-related rules:

(3) Limitations on shared memory

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

(4) Limitations on data types

(5) Limitations on SQL execution

Do not execute any SQL statement within or as an extension of the column data editing UOC routine's function. If executed, transaction management by Datareplicator might become invalid.

(6) Notes about the AIX Datareplicator

For the AIX Datareplicator, create all functions from hds_ucoledit1() through hds_ucoledit8(); otherwise, import processing will result in an error.

(7) Notes about handling repetition columns

A column data editing UOC routine passes each element of the data (a single call to a column data editing UOC function passes one element data item to this UOC function). This means that a column data editing UOC routine cannot be used to increase or decrease the number of elements.