DB2® products can
be installed to an installation path of your choice. DB2 products can also be installed multiple times
on a single machine. Each DB2 Copy
can be at the same or different code levels.
Root installations of DB2 products
can be installed to an installation path of your choice. Unless specified
otherwise, the default installation paths are:
- for AIX®, HP-UX or Solaris
operating systems /opt/IBM/db2/V10.5
- for Linux operating systems /opt/ibm/db2/V10.5
If you are using the
DB2 Setup wizard and
choose to install a new DB2 copy
when the default installation path is already in use, the default
path becomes:
- for AIX, HP-UX or Solaris /opt/IBM/db2/V10.5_##
- for Linux /opt/ibm/db2/V10.5_##
where
## is a zero-prefixed sequential number
in the range
01 to
99. The first
occurrence of modifying the default path is _01. For example, a DB2 product is installed using the
DB2
Setup wizard without specifying an installation path, and,
the default installation path
/opt/ibm/db2/V10.5 is
already in use, the DB2 product
will be installed in the new default path
/opt/ibm/db2/V10.5_01.
If you install a DB2 copy
using an installation method other than the DB2 Setup wizard, you must specify the installation
path. Automatic sequential incrementation of the default path only
occurs when the DB2 Setup wizard is used to install
a DB2 copy. Regardless of the
installation method, another full product cannot be installed in the
path of another DB2 copy (such
as /opt/ibm/db2/V10.5).
A DB2 copy installed to a subdirectory
of an existing DB2 copy is not
supported because all copies are rendered unusable.
With the ability to install multiple copies of DB2 products on your system and the flexibility
to install DB2 products and
features in the path of your choice, the db2ls command
helps you keep track of what is installed and where it is installed.
Run the db2ls command to locate DB2 products installed on your system.
The following restrictions apply when installing multiple DB2 copies on one system:
- Non-root installations do not support multiple DB2 copies
- There can be only one DB2 Administration
Server (DAS) on the system.
- Instance names must be unique across DB2 copies.
- A DB2 copy is not aware
of any instances created in another DB2 copy.
However, the db2iupdt command can switch ownership
of an instance from one DB2 copy
to another.
- Creating links with the db2ln command for one DB2 copy renders the other copies
nonfunctional. Links must not be created when multiple DB2 copies are intended to coexist.
- Linux 32-bit images cannot
be installed on Linux x64 operating
system platforms.
- The DB2 installation tools
do not support multiple simultaneous invocations on the same machine
by the same user.
- The installation paths cannot be symbolic links.