The users can customize the behavior of the library server
by using the library server user exits.
Important: - For operating systems other than AIX®, Solaris SPARC, Linux x86, Linux for System z®, all C user exits must be 32-bit
library.
- For Linux for System z, all user exits must be 64-bit
library, except the ICMFetchContentExit, which still must be 32-bit
library.
- ICMACLPrivExit is a UDF and can be written as 32-bit or 64-bit
library. The 64-bit UDF is supported when operating under DB2® 64-bit instance.
- The library server user exits are supported both on DB2 and Oracle unless otherwise stated.
The user exit sample directory has the bldUX.bat script for Windows and bldUX script for Linux, AIX or Solaris, which are
the samples of compilation and link parameters that can be used to
build 32 or 64 bit user exits. Make sure to append the DB2 header file in the include path before you
compile user exits such as icmaclxt.
- In the bldUX.bat script for Windows, append /I%DB2HOME%\include in the CL command, and replace %DB2HOME% with the DB2 instance home directory.
- In the bldUX script for Linux, AIX or Solaris, append -I$INSTHOME/sqllib/include in
the MYSINC variable, and replace $INSTHOME with the DB2 instance home directory.