It is strongly recommended that all DB2 specific registry values be defined in the DB2 profile registry. If DB2 variables are set outside of the registry, remote administration of those variables will not be possible, and the workstation will have to be rebooted in order for the variable values to take effect.
Windows 95 and Windows NT have one system environment variable, DB2INSTANCE, that can only be set outside the profile registry; however, you are not required to set DB2INSTANCE. The DB2 profile registry variable db2instdef may be set in the global level profile to specify the instance name to use if DB2INSTANCE is not defined.
To determine the setting of an environment variable, enter:
To set system environment variables, do the following:
|Note:||The environment variable DB2INSTANCE can also be set at the session
(process) level. For example, if you want to start a second DB2
instance called TEST, issue the following commands in a command
set db2instance=TEST db2start
[ DB2 List of Books | Search the DB2 Books ]