You can create links for the DB2® database
system files to the /usr/lib directory, and for
the include files to the /usr/include directory
for a particular DB2 database
version and release level.
About this task
This
task is not required for normal DB2 database
operation.
Consider creating links for the DB2 database system files only if both of the
following conditions are met:
- You have only one copy of DB2 database
on the current computer.
- You are developing or running applications and want to avoid having
to specify the full path to the product libraries and include files.
Restrictions
The
following restrictions apply:
- Creating links for one DB2 copy
will render the other DB2 copies
nonfunctional. Links can be established for only one DB2 copy on a given system.
- If there are existing links to the /usr/lib and /usr/include directories
from a previous DB2 database
version, they will automatically be removed.
- Links must not be created on systems where multiple DB2 copies are intended to coexist.
Before you begin
To
perform this task, you must be logged on as a user with root user
authority.
Procedure
To create links for DB2 database
system files:
- Log on as a user with root user authority.
- Run the db2ln command. For
example:
DB2DIR/cfg/db2ln
where DB2DIR is
the DB2 installation directory.
- On AIX®, HP-UX, or Solaris
operating systems, the default DB2 installation
directory is /opt/IBM/db2/V9.7
- On Linux operating systems,
the default installation directory is /opt/ibm/db2/V9.7
Results
If
there are existing links to the /usr/lib and /usr/include directories
from a previous DB2 database
version, they will automatically be removed by entering the db2ln command
to create links for this DB2 database
version. If you want to reestablish the links to the libraries of
the previous version, then you must run the db2rmln command
from your current DB2 database
version before you run the db2ln command from the
previous DB2 database version.