Compiling and Linking Routines on a SPARC System - Parallel Data Pump

Teradata® Parallel Data Pump Reference - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Parallel Data Pump
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-11-17
dita:mapPath
kpf1641281806652.ditamap
dita:ditavalPath
ovd1619195504008.ditaval
dita:id
ouq1478611619316
Product Category
Teradata Tools and Utilities

Use the following syntax example to compile a C INMOD or a C Notify Exit routine on a SPARC 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
-KPIC
Is a compiler option that generates Position Independent Code (PIC)
-m64
Flag to build 64-bit shared libraries
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 as:
  • The INMOD modulename parameter of the IMPORT command of the TPump job script
  • The EXIT name parameter for the NOTIFY option of the BEGIN LOAD command of the TPump job script
The shared-object-name can be any valid UNIX file name.