To get a list of all the instances that are available on a system, run the db2ilist command. The db2ilist command is located in:
DB2DIR/bin/db2ilist
| where DB2DIR | = /usr/lpp/db2_05_00 | on AIX |
|
| = /opt/IBMdb2/V5.0 | on Solaris |
To determine which instance applies in the current session, enter:
echo $DB2INSTANCE