Setting up the application development environment (Linux and UNIX)

You must 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.

About this task

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.

Procedure

  1. Run the correct script to set up your environment for the instance that you will use to develop your application.
    • For bash or Korn shell:
      . $HOME/sqllib/db2profile
      
    • For C shell:
      source $HOME/sqllib/db2cshrc
  2. If you are developing applications using ODBC, Db2® CLI, JDBC, or SQLJ, perform the following tasks: