IBM Books

Quick Beginnings for DB2 Connect Enterprise Edition


Setting the Current Instance

On OS/2 and Windows 32-bit operating systems:

When you enter commands to start or stop an instance's database manager, DB2 applies the command to the current instance. DB2 determines the current instance as follows:

For more information on setting registry values, refer to Chapter 41. Controlling Your DB2 Environment.

On UNIX Systems:

To use a specific instance, you need to execute the startup script for that instance. Enter the following command:

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

where INSTHOME is the home directory of the instance.

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

   db2 get instance


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

[ DB2 List of Books | Search the DB2 Books ]