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

Programming INMODs for UNIX-based Clients<br />

In addition to the techniques for preparing INMODs listed in “Preparing the INMOD<br />

Program” on page 216 which apply to all platforms, there are several rules that must be<br />

followed only for developing C INMODs for UNIX-based clients. These are:<br />

• The INMOD subroutine must be named _dynamn.<br />

• The INMOD must be compiled with the MetaWare High C compiler.<br />

• The compiled INMOD module must be linked into a shared object module.<br />

Compiling and Linking a C INMOD on a UNIX-based Client<br />

Note: For a description of the syntax diagrams used in this book, see Appendix A: “How to<br />

Read Syntax Diagrams.”<br />

The following syntax example can be used to compile a C INMOD on a UNIX-based client.<br />

Compile Syntax<br />

cc -c inmod.c<br />

3021A038<br />

where<br />

Syntax Element<br />

cc<br />

c<br />

inmod.c<br />

Description<br />

Program that invokes the MetaWare High C Compiler<br />

Linker option specifying to compile without linking to produce an output file<br />

(a.out)<br />

A C source module for the INMOD<br />

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

Link Syntax<br />

,<br />

ld -dy -G inmod.o -o inmod.so<br />

HE05A016<br />

where<br />

218 <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!