You need to set environment variables so you can access the database instance that was created when the database manager was installed. Each database manager instance has two files, db2profile and db2cshrc, which contain scripts to set the environment variable for that instance. The Quick Beginnings book provides general information about setting environment variables. This section provides specific instructions to set environment variables to access a database instance.
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 file, so that it runs automatically when you log in.