You can run multiple instances concurrently in the same DB2® copy, or in different DB2 copies.
About this task
To run multiple instances concurrently in the same DB2 copy, using the command line:
- Set the DB2INSTANCE variable to the name of the other instance
that you want to start by entering:
set db2instance=<another_instName>
- Start the instance by entering the db2start command.
To run multiple instances concurrently in different DB2 copies, use either of the following
methods:
- Using the DB2 Command window
from the Start → Programs → IBM® DB2 → <DB2 Copy Name> →
Command Line Tools → DB2 Command
Window: the Command window is already set up with the correct environment
variables for the particular DB2 copy
chosen.
- Using db2envar.bat from a Command window:
- Open a Command window.
- Run the db2envar.bat file using the fully
qualified path for the DB2 copy
that you want the application to use:
<DB2 Copy install dir>\bin\db2envar.bat
After you switch to a particular DB2 copy, use the method specified in the section
above, "To run multiple instances concurrently in the same DB2 copy", to start the instances.