Used by the DB2® database
installer on Linux and UNIX operating systems to update
the embedded runtime path in the related DB2 database
library and executable files.
The command can be reissued
under the direction of IBM® DB2 database support if there were
errors related to the command during the DB2 database
installation.
Note: If SELinux (Security-enhanced Linux) is enabled after the DB2 database installations on Red Hat Enterprise Linux version 5 (RHEL5), you need
to manually run this command for each DB2 database
installation of the current release to make the DB2 database system work properly. See the Usage
notes section for additional information.
Authorization
Root installations require
root user authority. For non-root installations, you must log on with
the user ID that owns the non-root installation.
Command syntax
>>-db2chgpath--+-----+--+----------------+---------------------><
'- -d-' '- -f--file-name-'
Command parameters
- -d
- Turns debug mode on. Use this option only when instructed by DB2 database support.
- -f file-name
- Specifies a specific file name to update the runtime path. file-name should
have the path name relative to the base of the current DB2 database product install location.
Usage notes
On RHEL5 systems, if you have
installed a DB2 database product,
when SELinux was either uninstalled or disabled, and want to enable
SELinux, these are the steps:
- Install SELinux rpms if necessary.
- Change /etc/sysconfig/selinux; set the status
to "permissive" or "enforcing".
- Reboot the machine to apply SELinux labels to all files.
- Run db2chgpath to set the SELinux attribute
that allows DB2 shared libraries
with text relocations to be loaded (textrel_shlib_t).