You need to set environment variables so you can access the database instance that was created when the database manager was installed. The DB2 for UNIX Quick Beginnings book provides general information about setting environment variables. This section provides specific instructions on setting environment variables to access a database instance.
Each database manager instance has two files, db2profile and db2cshrc, which contain scripts to set the environment variables for that instance. Depending on the shell you are using, run the script by entering:
where $HOME is the home directory of the instance owner.
For your convenience, you may want to include this command in your .profile or .login file, so that it runs automatically when you log on.
Depending on the UNIX platform you are on, the following environment variables are automatically updated during DB2 instance creation:
For the Java environment variables updated by DB2, see "Setting the Environment".