16.20 - Client Applications Built with Ecosystem Manager 16.20 Header Files and Calling Ecosystem Manager 16.20 API - Teradata Ecosystem Manager

Teradata® Ecosystem Manager API Reference

prodname
Teradata Ecosystem Manager
vrm_release
16.20
created_date
December 2020
category
Programming Reference
featnum
B035-3204-107K
  • LD_LIBRARY_PATH/SHLIB_PATH/LIBPATH must have the following library search path entries in the beginning, in the order listed: /usr/lib:/opt/teradata/client/tmsm/lib:/opt/teradata/client/tmsm/32/lib

    For Ecosystem Manager 16.20, this is:

    /usr/lib:/opt/teradata/client/em/lib:/opt/teradata/client/em/32/lib.
  • To use new API functions added in Teradata MSM 13.11 and 14.00, 32-bit client applications must link to libtmsmapistub.so/libtmsmapistub.sl., which is in /opt/teradata/client/tmsm/32/lib. For 16.20, use /opt/teradata/client/em/32/lib.
    gcc $(LDLAGS) -o SendStart32 SendStart.o $(LIB) -lc -ldl -lnsl -luuid -ltmsmapistub -L/opt/teradata/client/tmsm/32/lib

    To use new API functions added in Teradata MSM 13.11 and 14.00, 64-bit client applications must link to libtmsmapistub.so/libtmsmapistub.sl, which is in /opt/teradata/client/tmsm/lib. For 16.20, this is /opt/teradata/client/em/32/lib.

    gcc $(LDLAGS) -o SendStart64 SendStart.o $(LIB) -lc -ldl -lnsl -luuid -ltmsmapistub -L/opt/teradata/client/tmsm/lib

    These are not required for applications using Teradata MSM API functions in Teradata MSM 13.11 or earlier.

On AIX platforms, client applications must provide either of two macros:

  • OS_AIX64 to invoke the 64-bit system Ecosystem Manager 16.20

    Edit the client application makefile as follows:

    sample64.o: sample.c

    $(CC) -c $(CFLAGS) –DOS_AIX64 $(INCLUDE) sample.c
  • OS_AIX32 to invoke the 32-bit Ecosystem Manager 16.20

    sample32.o: sample.c

    $(CC) -c $(CFLAGS) –DOS_AIX32 $(INCLUDE) sample.c