Quick Beginnings for DB2 Extended Enterprise Edition for UNIX
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:
echo %variable-name%
To set system environment variables, do the following:
- On Windows 95:
- Edit the autoexec.bat file and reboot to make the change
take effect.
- On Windows NT:
- Set environment variables as follows:
- Click on Start and select
Settings->Control Panel.
- Double-click on the System icon.
- In the System Properties window, select the Environment tab and
do the following:
- If the variable does not exist:
- Select any environment variable in the System Variables window.
- Change the name in the Variable field to the name of the
environment variable you want to set, for example DB2INSTANCE.
- Change the Value field to the instance name, for example,
db2inst.
- If the variable already exists in the System Variables window, you can set
a new value:
- Select the environment variable you want to append, for example
DB2INSTANCE.
- Change the Value field to the instance name, for example,
db2inst.
- Click on the Set push button.
- Click on OK.
- You may have to reboot your system for these changes to take
effect.
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
window.
set db2instance=TEST
db2start
|
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
[ DB2 List of Books |
Search the DB2 Books ]