You can run multiple instances concurrently in the same DB2® copy, or in different DB2 copies.
Procedure
- 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 : 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 preceding
section, "To run multiple instances concurrently in the same DB2 copy", to start the instances.