You can view the Global Registry using the db2greg command
on UNIX and Linux platforms.
In DB2® Version
9.7 and higher, the DB2 global
profile registries are not recorded in the text file <DB2DIR>/default.env.
The global registry file global.reg is now used
to register the DB2 global profile
settings related to the current DB2 installation.
The Global Registry exists only on UNIX and Linux platforms:
- For root installations, the Global Registry file is located at /var/db2/global.reg (/var/opt/db2/global.reg on
HP-UX).
- For non-root installations, the Global Registry file is located
at $HOME/sqllib/global.reg, where $HOME is
the non-root user's home directory.
The Global Registry consists of three different record
types:
- "Service": Service records contain information at the product
level - for example, version, and install path.
- "Instance": Instance records contain information at the instance
level - for example, Instance name, instance path, version, and the
"start-at-boot" flag.
- "Variable": Variable records contain information at the variable
level - for example, Variable name, Variable value.
- Comment.
You can view the Global Registry with the db2greg tool.
This tool is located in sqllib/bin, and in the install directory
under bin as well (for use when logged in as
root).
You can edit the Global Registry with the db2greg tool.
Editing the Global Registry in root installations requires root authority.
You
must only use the db2greg tool if requested to
do so by IBM Software
Support.