Displaying and altering the global registry (UNIX) using db2greg
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.
- For root installations, the global registry file is located at /var/db2/global.reg.
- 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.
- "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.
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.
Only use the db2greg in specific cases as instructed, or when requested to do so by IBM Software Support. Incorrect usage of this command can damage the global registry.