You need to set the following environment variables that apply to all activities that take place in Enterprise Server:
If you want to do any database access from within Enterprise Server you need to add the necessary libraries to the PATH environment variable and to the LIBPATH, SHLIB_PATH or LD_LIBRARY_PATH environment variables, depending on your UNIX system. For full information about setting the environment up for database access see the documentation supplied by your database vendor.