HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This section explains the procedure for creating a send data UOC routine with UNIX Datareplicator. The following figure shows the procedure up to the point where a send data UOC routine is executed.
Figure 8-14 Send data UOC routine's execution procedure
To create a shared library for the send data UOC routine:
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 +z -Y -I/opt/hirdbds/include UOC-source-file-name[UOC-source-file-name]... |
ld -b -o libhdesuoc.sl UOC-routine-object-filename[UOC-routine-object-filename]... |
ld -b -o libhdesuoc.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 libhdesuoc.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]... |
xlc -bM:SRE -bnoentry -bE:/opt/hirdbds/lib/libhdesuoc.exp -o libhdesuoc.a UOC-routine-object-file-name[UOC-routine-object-file-name]... |
gcc -c -fPIC -I/opt/hirdbds/include UOC-routine-source-file-name[UOC-routine-source-file-name]... |
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 libhdesuoc.so UOC-object-file-name[UOC-object-file-name]... |
gcc -m32 -shared -o libhdesuoc.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 libhdesuoc.sl (libhdesuoc.s for the Solaris or Linux Datareplicator, and libhdesuoc.exp for AIX Datareplicator) under /opt/hirdbds/lib.
Before executing the UOC, you must specify the directory containing the send data UOC routine library (libhdesuoc.sl or libhdesuoc.so) in the node_shlibpath operand in the extraction system definition. If the send data UOC routine library is not found in the directory specified in the node_shlibpath operand, Datareplicator sends all update information.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.