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

Compiling and Linking a C INMOD on HP-UX PA RISC<br />

Use the following syntax example to compile a C INMOD on HP-UX PA RISC client.<br />

Compile Syntax<br />

cc -Aa -D_HPUX_SOURCE +z +u1 -c sourcefile.c<br />

3021B002<br />

where<br />

Syntax Element<br />

-Aa<br />

-<br />

D_HPUX_SOU<br />

RCE<br />

cc<br />

Description<br />

Option that enables the compiler to conform to ANSI standards<br />

Enables the compiler to access macros and typedefs that are not defined by the<br />

HPUX Operating System, but not the ANSI standard.<br />

Invokes the MetaWare High C Compiler<br />

+z Is a compiler option specified to generate Position Independent Code (PIC) for<br />

all user exit routines<br />

+u1 Is a compiler option that allows pointers to access non-natively aligned data<br />

sourcefile<br />

UNIX file name(s) of the source file(s) for the INMOD or notify exit routine<br />

Use the following syntax example to link the object modules on HP-UX PA-RISC into the<br />

shared object.<br />

Link Syntax<br />

,<br />

ld -b inmod.o -o inmod.so<br />

3021A003<br />

where<br />

Syntax Element<br />

ld<br />

Description<br />

Invokes the UNIX linker editor<br />

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

inmod.o<br />

o<br />

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

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

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

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

Saved successfully!

Ooh no, something went wrong!