Installation methods that require manual configuration (Linux and UNIX) >
Installing a DB2 product
using the db2_install or doce_install command (Linux and UNIX)
Before you install DB2® products
and features or the DB2 Information
Center:
- You should refer to the installation documentation for the particular DB2 product you want to install.
For example, if you want to install DB2 Enterprise
Server Edition, then refer to the Quick Beginnings for DB2 Servers documentation to
review installation prerequisites and other important setup information.
- You can install a DB2 product
and the DB2 Information Center
using either root or non-root authority.
- The DB2 product image must
be available. You can obtain a DB2 installation
image either by purchasing a physical DB2 product
DVD, or by downloading an installation image from Passport Advantage®.
The db2_install command installs DB2 products and features on supported Linux® and UNIX® operating systems.
The doce_install command
installs the DB2 Information
Center on supported Linux operating
systems.
You cannot manually install a DB2 product or feature using an operating system's
native installation utility such as rpm, SMIT, swinstall or pkgadd.
Any existing scripts containing a native installation utility that
you use to interface and query with DB2 installations
will need to change.
The db2_install command
is not supported on the National Language Package DVD.
Only
one copy of the DB2 Information
Center for the current release can be installed on your system. The
Information Center cannot be installed in the same location where
a DB2 product is installed. If
you install the DB2 Information
Center on a system with a firewall, and you plan to allow other systems
to access the DB2 Information
Center, you must open the port in your firewall setting.
To
install a DB2 product or feature
using the db2_install command, or to install the DB2 Information Center using the doce_install command:
- If you have a physical DB2 product
DVD, insert and mount the appropriate DVD or access the file system
where the installation image was stored.
- If you downloaded the DB2 product
image, you must decompress and untar the product file.
- Decompress the product file:
gzip -d product.tar.gz
For example,
gzip -d ese.tar.gz
- Untar the product file:
- On Linux operating systems
-
tar -xvf product.tar
For
example,
tar -xvf ese.tar
- On AIX®, HP-UX, and Solaris
operating systems
-
gnutar -xvf product.tar
For
example,
gnutar -xvf ese.tar
- Change directory into the product directory:
cd product
For
example,
cd ese
- Enter the ./db2_install or ./doce_install command:
./db2_install -b DB2DIR -p productShortName -c NLPackLocation -L language... -n
where:
- DB2DIR specifies the path where the DB2 product will be installed. If the path is
not specified, you are prompted to either select the default path
or to provide the path. The default installation path is:
- for AIX, HP-UX or Solaris
operating systems: /opt/IBM/db2/V9.7
- for Linux operating systems: /opt/ibm/db2/V9.7
- for the DB2 Information
Center: /opt/ibm/db2ic/V9.7. The Workstation
version of the DB2 Information Center does
not have a default installation path, you must specify the installation
location. However, by default, the Workstation
version of the DB2 Information Center is
installed at port 51097.
If you provide your own path, you must specify the full path
name.
DB2 installation paths have the
following rules:
- Can include lowercase letters (a-z), uppercase letters (A-Z),
and the underscore character ( _ )
- Cannot exceed 128 characters
- Cannot contain spaces
- Cannot contain non-English
characters
Note:
For DB2 products and components to work
together, they must be installed to a single path. This is not to
be confused with the ability to install DB2 products
to multiple paths. But, for products and components to work together,
they must be installed to the same path, and, must be at the same
release level.
- productShortName specifies the DB2 product to be installed.
This parameter
is case insensitive and is mandatory when the -n parameter is specified.
The product short name (productShortName) can be found in the file ComponentList.htm (under
the product full name) located in the /db2/plat directory
on your media where plat is the platform name that you are
installing on. You can only install one product at a time.
- NLPackLocation specifies the National Language Pack (NLPACK)
location.
- language specifies national language support. You can install
a non-English version of a DB2 product.
However, you must run this command from the product DVD, not the National
Language pack DVD.
By default, English is always installed, therefore,
English does not need to be specified. When more than one language
is required this parameter is mandatory. To indicate multiple languages,
specify this parameter multiple times. For example, to install both
French and German specify -L FR -L DE.
- n parameter indicates noninteractive installation mode.
When this parameter is specified, both -b and -p must also be specified.
You only need to specify -c and -L if applicable.
When installing
the DB2 Information Center,
if you specify a port number other than the default, you might receive
the error "The service name specified is in use". You can correct
this error by either choosing to use the default port number or by
specifying a different service name.
After installation, you must manually configure your DB2 server. Tasks include user and
instance creation and configuration.
[ Top of Page | Previous Page | Next Page | Contents ]