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

Compile Syntax<br />

cc -c -brtl -fPIC sourcefile.c<br />

3021A008<br />

where<br />

Syntax Element<br />

cc<br />

Description<br />

Is a call to the program that invokes the native UNIX C compiler<br />

-c Is a compiler option that specifies to not send object files to the linkage editor<br />

-brtl<br />

-fPIC<br />

sourcefile.c<br />

Tells the linkage editor to accept both .sl and .a library file types<br />

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

exit routines<br />

Is a C source module for the [Notify Exit Routine.<br />

Use the following syntax example to link the object modules into a shared object module.<br />

Link Syntax<br />

ld -G -e_dynamn -bE: export_dynamn.txt<br />

A<br />

A<br />

objectfile.o -o shared-object-name -lm -lc<br />

3021A011<br />

where<br />

Syntax Element<br />

ld<br />

G<br />

-e_dynamn<br />

-bE : export_dynamn.txt<br />

objectfile.o<br />

Description<br />

Invokes the UNIX linker editor<br />

Produces a shared object enabled for use with the run-time linker<br />

Sets the entry point of the exit routine to _dynamn<br />

Is a linker option that exports the symbol "_dynamn" explicitly and<br />

the file export_dynamn.txt contains the symbol<br />

Is an object module created during compile step<br />

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

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

Saved successfully!

Ooh no, something went wrong!