HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This section explains the procedure for creating a column data editing UOC routine with the UNIX Datareplicator. The following figure shows the execution procedure for a column data editing UOC routine.
Figure 8-11 Column data editing UOC routine's execution procedure
To create a shared library for the column data editing UOC routine interface:
The compiling and linking procedures are explained for each OS.
If an unresolved link error occurs, specify all libraries required during linking.
cc -c +z -I/opt/hirdbds/include
UOC-routine-source-filename[UOC-routine-source-filename]...cc -c +DD64 +z -Y -I/opt/hirdbds/include UOC-source-file-name[UOC-source-file-name]...
ld -b -o libhdscuoc.sl UOC-routine-object-filename[UOC-routine-object-filename]...
ld -b -o libhdscuoc.so UOC-object-file-name[UOC-object-file-name]...
/opt/SUNWspro/bin/cc -c -KPIC -I/opt/hirdbds/include
UOC-routine-source-filename[UOC-routine-source-filename].../opt/SUNWspro/bin/cc -G -o libhdscuoc.so UOC-routine-object-filename[UOC-routine-object-filename]...
xlc -c -I /opt/hirdbds/include UOC-routine-source-file-name[UOC-routine-source-file-name]...
-c: Object creation option
-I: Directory that stores the header files provided by Datareplicator (always /opt/hirdbds/include). You can specify multiple directories if the UOC routine requires other header files.
xlc -bM:SRE -bnoentry
-bE:/opt/hirdbds/lib/libhdscuoc.exp -o libhdscuoc.a
UOC-routine-object-file-name[UOC-routine-object-file-name]...
gcc -c -fPIC -I/opt/hirdbds/include
UOC-routine-source-filename[UOC-routine-source-filename]...gcc -c -m32 -fPIC -I/opt/hirdbds/include UOC-source-file-name[UOC-source-file-name]...
ld -G -o libhdscuoc.so UOC-routine-object-filename[UOC-routine-object-filename]...
gcc -shared -o libhdscuoc.so UOC-object-file-name[UOC-object-file-name]...
gcc -m32 -shared -o libhdscuoc.so UOC-object-file-name[UOC-object-file-name]...
You can store a created send data UOC routine library in any directory. However, do not replace libhdscuoc.sl (libhdscuoc.so for the Solaris, Linux, or HP-UX (IPF) Datareplicator and libhdscuoc.a for AIX Datareplicator) under /opt/hirdbds/lib.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.