DB2 Version 9.7 for Linux, UNIX, and Windows
Installing DB2 Servers > Installing on Linux and UNIX > Installing as a root user >

Installing DB2 servers using the DB2 Setup wizard (Linux and UNIX)

This task describes how to start the DB2 Setup wizard on Linux® and UNIX® operating systems. The DB2 Setup wizard is used to define your installation preferences and to install your DB2® database product on your system.

Before you begin

Before you start the DB2 Setup wizard:

Restrictions

Procedure

To start the DB2 Setup wizard:

  1. If you have a physical DB2 database product DVD, change to the directory where the DB2 database product DVD is mounted by entering the following command:
       cd /dvdrom
    where /dvdrom represents the mount point of the DB2 database product DVD.
  2. If you downloaded the DB2 database product image, you must extract and untar the product file.
    1. Extract the product file:
      gzip -d product.tar.gz
      where product is the name of the product that you downloaded.
    2. Untar the product file:
      On Linux operating systems
      tar -xvf product.tar
      On AIX®, HP-UX, and Solaris operating systems
      gnutar -xvf product.tar
      where product is the name of the product that you downloaded.
    3. Change directory:
      cd ./product
      where product is the name of the product that you downloaded.
    Note:
    If you downloaded a National Language Package, untar it into the same directory. This will create the subdirectories (for example ./nlpack/disk1) in the same directory, and allows the installer to automatically find the installation images without prompting.
  3. Enter the ./db2setup command from the directory where the database product image resides to start the DB2 Setup wizard.
  4. The IBM DB2 Setup Launchpad opens. From this window, you can view installation prerequisites and the release notes, or you can proceed directly to the installation. You can also review the installation prerequisites and release notes for late-breaking information.
  5. Click Install a Product and the Install a Product window will display the products available for installation.

    Launch the installation by clicking Install New. Proceed through the installation following the DB2 Setup wizard's prompts.

    Once you have initiated the installation, proceed through the DB2 Setup wizard installation panels and make your selections. Installation help is available to guide you through the remaining steps. To invoke the installation help, click Help or press F1. You can click Cancel at any time to end the installation.

Results

For non-root installations, DB2 database products are always installed in the $HOME/sqllib directory, where $HOME represents the non-root user's home directory.

For root installations, DB2 database products are installed, by default, in one of the following directories:

AIX, HP-UX, and Solaris
/opt/IBM/db2/V9.7
Linux
/opt/ibm/db2/V9.7

If you are installing on a system where this directory is already being used, the DB2 database product installation path will have _xx added to it, where _xx are digits, starting at 01 and increasing depending on how many DB2 copies you have installed.

You can also specify your own DB2 database product installation path.

DB2 installation paths have the following rules:

The installation log files are:

By default, these log files are located in the /tmp directory. You can specify the location of the log files.

There is no longer a db2setup.his file. Instead, the DB2 installer saves a copy of the DB2 setup log file in the DB2_DIR/install/logs/ directory, and renames it db2install.history. If the name already exists, then the DB2 installer renames it db2install.history.xxxx, where xxxx is 0000-9999, depending on the number of installations you have on that machine.

Each installation copy has a separate list of history files. If an installation copy is removed, the history files under this install path will be removed as well. This copying action is done near the end of the installation and if the program is stopped or aborted before completion, then the history file will not be created.

What to do next

National Language Packs can also be installed by running the ./db2setup command from the directory where the National Language Pack resides, after a DB2 database product has been installed.

On Linux x86, if you want your DB2 database product to have access to DB2 documentation either on your local computer or on another computer on your network, then you must install the DB2 Information Center. The DB2 Information Center contains documentation for the DB2 database system and DB2 related products.

DB2 Express Edition and DB2 Workgroup Server Edition memory limits
If you are installing DB2 Express Edition, the maximum allowed memory for the instance is 4 GB.

If you are installing DB2 Workgroup Server Edition, the maximum allowed memory for the instance is 16 GB.

The amount of memory allocated to the instance is determined by the INSTANCE_MEMORY database manager configuration parameter.

Important notes when upgrading from Versions 9.1 or 9.5:
  • If the memory configuration for your Versions 9.1 or 9.5 DB2 database product exceeds the allowed limit, the DB2 database product might not start after upgrading to the current version.
  • The self tuning memory manager will not increase your overall instance memory limit beyond the license limits.
[ Top of Page | Previous Page | Next Page | Contents ]