Set all of the following required environment variables
for your operating system on the target machine.
AIX® environment variables
All environment
variables must be capitalized.
Table 1. AIX environment
variables for DB2 databasesEnvironment Variable |
Value |
Conditions |
DB2DIR |
DB2® software installation path |
where DB2DIR is the location
where the DB2 client/server software is installed. |
DB2INSTANCE |
DB2 database instance name |
where DB2INSTANCE is the
name of the DB2 database instance you have created. |
LIBPATH |
$DB2DIR/lib64: INSTALLDIRECTORY/lib |
where DB2DIR is the location
where the DB2 client/server software is installed, and
where INSTALLDIRECTORY is the location where the
product will be installed. |
Linux® 32-bit environment variables
Table 2. Linux 32-bit environment variables for DB2 databasesEnvironment Variable |
Value |
Conditions |
DB2DIR |
DB2 software installation path |
where DB2DIR is the location
where the DB2 client/server software is installed. |
DB2INSTANCE |
DB2 database instance name |
where DB2INSTANCE is the
name of the DB2 database instance you have created. |
LD_LIBRARY_PATH |
$DB2DIR/lib |
where DB2DIR is the location
where the DB2 client/server software is installed, and
where INSTALLDIRECTORY is the location where the
product will be installed. |
Linux 64-bit environment variables
Table 3. Linux 64-bit environment variables for DB2 databasesEnvironment Variable |
Value |
Conditions |
DB2DIR |
DB2 software installation path |
where DB2DIR is the location
where the DB2 client/server software is installed. |
DB2INSTANCE |
DB2 database instance name |
where DB2INSTANCE is the
name of the DB2 database instance you have created. |
LD_LIBRARY_PATH |
$DB2DIR/lib64 |
where DB2DIR is the location
where the DB2 client/server software is installed, and
where INSTALLDIRECTORY is the location where the
product will be installed. |
Sun Solaris environment variables for DB2 databases
Table 5. Sun Solaris environment variables for DB2 databasesEnvironment Variable |
Value |
Conditions |
DB2DIR |
DB2 software installation path |
where DB2DIR is the location
where the DB2 client/server software is installed. |
DB2INSTANCE |
DB2 database instance name |
where DB2INSTANCE is the
name of the DB2 database instance you have created. |
LD_LIBRARY_PATH |
$DB2DIR/lib64 |
where DB2DIR is the location
where the DB2 client/server software is installed, and
where INSTALLDIRECTORY is the location where the
product will be installed. |
HP-UX environment variables
Table 6. HP-UX
environment variables for DB2 databasesEnvironment Variable |
Value |
Conditions |
DB2DIR |
DB2 software installation path |
where DB2DIR is the location
where the DB2 client/server software is installed. |
DB2INSTANCE |
DB2 database instance name |
where DB2INSTANCE is the
name of the DB2 database instance you have created. |
LD_LIBRARY_PATH |
$DB2DIR/lib64 |
where DB2DIR is the location
where the DB2 client/server software is installed, and
where INSTALLDIRECTORY is the location where the
product will be installed. |
Microsoft Windows environment
variables
You must use the Microsoft® Windows® 8.3 naming convention when setting
up environment variables in a Microsoft Windows environment. The environment variables
must not contain any spaces.
Table 7. Microsoft Windows environment variables for DB2 databasesEnvironment Variable |
Value |
Conditions |
DB2DIR |
DB2 software installation path |
where {DB2 database instance directory} is
the location where the DB2 instance was created. |
DB2INSTANCE |
DB2 database instance name |
where DB2INSTANCE is the
name of the DB2 database instance you have created. |