DB2 10.5 for Linux, UNIX, and Windows

Setting the default instance when using multiple DB2 copies (Windows)

The DB2INSTANCE environment is set according to the DB2® copy that your environment is currently set up to use. If you do not set it explicitly to an instance in the current copy, it defaults to the default instance that is specified with the DB2INSTDEF profile registry variable.

About this task

DB2INSTDEF is the default instance variable that is specific to the current DB2 copy in use. Every DB2 copy has its own DB2INSTDEF profile registry variable. Instance names must be unique on the system; when an instance is created, the database manager scans through existing copies to ensure its uniqueness.

Use the following guidelines to set the default instance when using multiple DB2 copies: