17.00 - Compiling and Linking Routines on an AMD Opteron System - Parallel Data Pump

Teradata® Parallel Data Pump Reference

prodname
Parallel Data Pump
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-3021-220K

Use the following syntax example to compile a C INMOD or C Notify Exit routine on an Opteron client system running Solaris.



where the following is true:

cc
Invokes the native C compiler
-dy
Specifies to use dynamic linking
-G
Specifies to create a shared object
-xarch=generic64
Flag to build 64-bit shared libraries
-KPIC
Is a compiler option that generates Position Independent Code (PIC)
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.