On OS/2, Windows 95, or Windows NT Systems:
To get a list of all the database instances that are available on a system, run the db2ilist command.
On UNIX Systems:
The db2ilist command is located in:
DB2DIR/bin/db2ilist
where | DB2DIR | = /usr/lpp/db2_05_00 | on AIX |
|
| = /opt/IBMdb2/V5.0 | on HP-UX or Solaris |
|
| = /usr/IBMdb2/V2.1 | on SCO OpenServer |
|
| = /opt/IBMdb2/V2.1 | on SINIX or SGI |
To determine which database instance applies in the current session, enter:
echo $DB2INSTANCE