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

ld<br />

dy<br />

G<br />

inmod.o<br />

o<br />

inmod.so<br />

Description<br />

Invokes the UNIX linker editor<br />

Specifies to use dynamic linking<br />

Specifies to create a shared object<br />

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

Specifies the output filename; default is a.out<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 Sun Solaris SPARC<br />

Use the following syntax example to compile a C INMOD on Sun Solaris SPARC client<br />

systems.<br />

cc -G<br />

-KPIC<br />

sourcefile.c<br />

-o shared-object-name<br />

2409B051<br />

where<br />

Syntax Element<br />

cc<br />

Description<br />

Invokes the MetaWare High C Compiler<br />

-G Specifies to create a shared object<br />

-KPIC<br />

sourcefile<br />

Is a compiler option that generates Position Independent Code (PIC) for all user<br />

exit routine<br />

Is a C source module for the INMOD<br />

-o Specifies the output file name<br />

shared-objectname<br />

Specifies the resulting shared object module<br />

This is the name specified as:<br />

• The INMOD modulename parameter of the IMPORT command of the<br />

T<strong>Pump</strong> job script<br />

• The EXIT name parameter for the NOTIFY option of the BEGIN LOAD<br />

command of the T<strong>Pump</strong> job script<br />

The shared-object-name can be any valid UNIX file name.<br />

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

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

Saved successfully!

Ooh no, something went wrong!