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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Programming INMODs for UNIX-based Clients<br />

Syntax Element<br />

Description<br />

-n Generates an executable with file type SHARE_MAGIC. This option is ignored<br />

in 64-bit mode.<br />

-b Is a linker option specified to generate a shared object file<br />

inmod.o<br />

-lc<br />

Is an object module derived from the compile step (see above)<br />

Search a library libc.a, libc.so, or libc.sh<br />

-o Specifies the output filename; default is a.out<br />

inmod.so<br />

Specifies the resulting shared object module<br />

This is the user-specified name in the IMPORT command.<br />

Note: Object modules can be linked into shared objects or shared libraries (i.e.,<br />

.so or .sl extension respectively) on HP-UX Itanium.<br />

Compiling and Linking a C INMOD on IBM AIX<br />

Use the following syntax example to compile a C INMOD on an IBM AIX-based client.<br />

Compile Syntax<br />

cc -qmkshrobj -o shared-object-name -sourcefile.c<br />

2409C008<br />

where<br />

Syntax Element<br />

cc<br />

--qmkshrobj<br />

Description<br />

Call to the program that invokes the native UNIX C compiler<br />

Creates a shared object from the generated object files<br />

-o Switches to the linker<br />

shared-objectname<br />

sourcefile<br />

Name of the shared object file The shared-object-name can be any valid file<br />

name. This is the INMOD modulename parameter of the IMPORT of the<br />

MultiLoad job script.<br />

UNIX file name(s) of the source file(s) for the INMOD<br />

Compiling and Linking a Notify Exit Routine on IBM AIX<br />

Use the following syntax example to compile a Notify Exit Routine on an IBM AIX-based<br />

client.<br />

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

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

Saved successfully!

Ooh no, something went wrong!