You need to set environment variables for database manager instances on Linux and UNIX operating systems. This can be accomplished by launching the scripts that are provided for each instance.
Each database manager instance has two scripts to set up the environment for that instance: db2profile and db2cshrc. Setting up your environment is not required when using type 4 connectivity in your JDBC applications.