Installation methods that require manual configuration (Linux and UNIX) > Manually configuring DB2 servers after installation >
Creating links for DB2 files
You can create links for the DB2® files
to the /usr/lib directory, and for the include
files to the /usr/include directory for a particular DB2 version and release level.
To perform this task, you must be logged on as a user with
root authority.
This task is not required for normal DB2 operation.
Consider creating links
for the DB2 files only if both
of the following conditions are met:
- You have only one copy of DB2 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.
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 version,
they will automatically be removed.
- Links must not be created on systems where multiple DB2 copies are intended to coexist.
To create links for DB2 files:
- Log on as a user with root 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
If there are existing links to the /usr/lib and /usr/include directories
from a previous DB2 version,
they will automatically be removed by entering the db2ln command
to create links for this DB2 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 version
before you run the db2ln command from the previous DB2 version.
[ Top of Page | Previous Page | Next Page | Contents ]