Compiling and Linking Routines on a Linux Client - Parallel Data Pump

Teradata® Parallel Data Pump Reference

Product
Parallel Data Pump
Release Number
17.10
Published
June 2021
Language
English (United States)
Last Update
2021-07-01
dita:mapPath
oqw1608578437373.ditamap
dita:ditavalPath
ovd1619195504008.ditaval
dita:id
B035-3021
lifecycle
previous
Product Category
Teradata Tools and Utilities

Use the following syntax example to compile a C INMOD or C Notify Exit routine on a Linux client.



where the following is true:

gcc
Invokes the C compiler on Linux
-l<directory>
Specifies the location of the header files
-shared
Produces a shared object, which can then be linked with other objects to form an executable
-m64
Generates code for a 64-bit environment
-fPIC
Produces Position Independent Code
sourcefile.c
UNIX file name of the source file for the INMOD or Notify Exit routine
-o
Specifies the output file name
shared-object-name
Specifies the resulting shared object module
This is the name specified:
  • The INMOD modulename parameter of the IMPORT command of the Teradata TPump job script.
  • The EXIT name parameter for the NOTIFY option of the BEGIN LOAD command of the Teradata TPump job script.
The shared-object-name can be any valid UNIX file name.