Depending on the operating system, values for the environment variables are set, either in the db2profile file (for the Bash or Korn shell) or the db2cshrc file (for the C shell).
Calls to db2profile or db2cshrc files are put in the instance owner's .bashrc (Bash shell) file and either in the .profile (Bash or Korn shell) file or in the .login (C shell) file.
Empty sqllib/userprofile and sqllib/usercshrc files are created during instance creation. You can place your own instance environment settings into these files. If you do not want the new environment settings in the db2profile or db2cshrc script, you can override them using the corresponding user script, which is called at the end of the db2profile or db2cshrc script. During an instance upgrade, which you perform by using the db2iupgrade command, the user scripts are copied so that your environment modifications are still in use.
export PATH=INSTALL_PATH/bin:$PATH
export LIBPATH=INSTALL_PATH/lib:$LIBPATH
export SHLIB_PATH=INSTALL_PATH/lib:$SHLIB_PATH
export LD_LIBRARY_PATH=INSTALL_PATH/lib:$LD_LIBRARY_PATH
export IBM_DB_DIR=INSTALL_PATH
export IBM_DB_LIB=INSTALL_PATH/lib
export IBM_DB_INCLUDE=INSTALL_PATH/include
export DB2_HOME=INSTALL_PATH
export DB2LIB=INSTALL_PATH/lib
export CLASSPATH=INSTALL_PATH/java/db2jcc.jar:$CLASSPATH
export CLASSPATH=INSTALL_PATH/java/sqlj.zip:$CLASSPATH
export CLASSPATH=INSTALL_PATH/tools/clpplus.jar:$CLASSPATH
export CLASSPATH=INSTALL_PATH/tools/jline-0.9.93.jar:$CLASSPATH
export CLASSPATH=INSTALL_PATH/tools/antlr-3.2.jar:$CLASSPATH