IBM Books

Installing and Configuring DB2 Clients


Selecting an Instance

On OS/2, Windows 95, or Windows NT Systems:

When starting or stopping a DB2 server instance, the one that is used is determined by the value of DB2INSTANCE. This is determined as follows:

To determine which database instance applies in the current session, enter:

   db2set db2instance

On UNIX Systems:

To use a specific DB2 instance, you will need to execute the db2profile or db2cshrc file for that instance. You can use the following command to execute db2profile or db2cshrc:

   . INSTHOME/sqllib/db2profile     (in Bourne or Korn shell)
   source INSTHOME/sqllib/db2cshrc  (in C shell)

where INSTHOME is the home directory of the DB2 instance.

* Figure hint not displayed.

To ensure that you are using the correct instance, use the following command:

   which db2

It will show you the full path name for the DB2 command. This path should include the home directory of the instance.  


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]