A SERVICE OF

logo

BMC Software, Inc., Confidential and Proprietary Information
3-6 PATROL
®
Database Administration Installation Guide
Setting up the DB2 Environment
Note
See your DB2 installation guide for more information on how to set the
following variables.
Step 1 Set the environment variable INSTHOME to the home directory of the
instance owner.
Example
export INSTHOME=/home/inst5
Step 2 Within the current shell, run the db2profile script that is located in the
DB2 installation directory (for example, type
. /HOME/inst2/sqllib/db2profile). This script exports the DB2INSTANCE
variable and updates the PATH variable.
Note
If this script is not available, manually set these variables. Set and export
DB2INSTANCE to the name of the DB2 instance to which you will
connect. Then, ensure that your PATH variable includes the
INSTHOME/sqllib/bin, INSTHOME/sqllib/adm, and
INSTHOME/sqllib/misc directories.
Step 3 Ensure that the following items belong to the same group:
bmc user account
DB2 instance to which you are connecting
Step 4 At the system prompt, enter echo $PATH and verify that the directory
containing the DB2 binaries is in the
bmc user’s PATH.