25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5: Using INMOD and Notify Exit Routines<br />

Programming INMODs for UNIX-based Clients<br />

Syntax Element<br />

Description<br />

-o Specifies the output file name<br />

shared-object-name<br />

-lm<br />

-lc<br />

Specifies the resulting shared object module<br />

This is the EXIT name parameter for the NOTIFY option of the<br />

BEGIN LOAD command of the <strong>Teradata</strong> T<strong>Pump</strong> job script.<br />

Is a linker option specifying to link with the /lib/libm.a library<br />

Is a linker option specifying to link with the /lib/libc.a library<br />

Compiling and Linking a C INMOD on a Linux Client<br />

Use the following syntax example to compile a C INMOD on a Linux client.<br />

Note: Be sure to compile the INMOD and notify exit routines in 32-bit mode so that they are<br />

compatible with <strong>Teradata</strong> T<strong>Pump</strong>.<br />

gcc<br />

-I/usr/include -shared -fPIC<br />

-m32<br />

sourcefile.c<br />

-o shared-object-name<br />

2409B023<br />

where<br />

Syntax Element<br />

gcc<br />

shared<br />

Description<br />

Invokes the C compiler on Linux<br />

Produces a shared object, which can then be linked with other objects to form an<br />

executable<br />

-m32 Generate code for a 32-bit environment. The 32-bit environment sets int, long<br />

and pointer to 32 bits.<br />

-fPIC<br />

Produces Position Independent Code<br />

-o Specifies the output file name<br />

Compiling and Linking a C INMOD on a z/Linux Client<br />

Use the following syntax example to compile a C INMOD on a z/Linux client.<br />

Note: Be sure to compile the INMOD and notify exit routines in 32-bit mode so that they are<br />

compatible with <strong>Teradata</strong> T<strong>Pump</strong>.<br />

gcc -I/usr/include -m31 -shared -fPIC sourcefile.c -o shared-object-name<br />

2409A059<br />

<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!