Compiling and Linking a Notify Exit Routine on IBM AIX - Parallel Data Pump

Teradata® Parallel Data Pump Reference

Product
Parallel Data Pump
Release Number
16.20
Published
September 2019
Language
English (United States)
Last Update
2019-10-11
dita:mapPath
dmq1512702641516.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-3021
lifecycle
previous
Product Category
Teradata Tools and Utilities

Compile Syntax

Use the following syntax example to compile a Notify Exit Routine on an IBM AIX-based client.



where the following is true:

cc
Is a call to the program that invokes the native UNIX C compiler
-c
Is a compiler option that specifies to not send object files to the linkage editor
-brtl
Tells the linkage editor to accept both .sl and .a library file types
-fPIC
Is a compiler option that generates Position Independent Code (PIC) for all user exit routines
sourcefile.c
Is a C source module for the Notify Exit Routine.

Link Syntax

Use the following syntax example to link the object modules into a shared object module.



where the following is true:

ld
Invokes the UNIX linker editor
G
Produces a shared object enabled for use with the runtime linker
-e_dynamn
Sets the entry point of the exit routine to _dynamn
-bE : export_dynamn.txt
Is a linker option that exports the symbol "_dynamn" explicitly and the file export_dynamn.txt contains the symbol
objectfile.o
Is an object module created during compile step
-o
Specifies the output file name
shared-object-name
Specifies the resulting shared object module
This is the EXIT name parameter for the NOTIFY option of the BEGIN LOAD command of the Teradata TPump job script.
-lm
Is a linker option specifying to link with the /lib/libm.a library
-lc
Is a linker option specifying to link with the /lib/libc.a library