DB2 Version 9.7 for Linux, UNIX, and Windows

Installing DB2 Connect Personal Edition (Linux)

To define your installation preferences and to install a DB2 Connect™ Personal Edition product on Linux, use the DB2 Setup wizard. Installing IBM® Data Server Driver Package (DS Driver) and then applying the DB2 Connect Personal Edition license is the preferred alternative to the process listed below. Refer to IBM data server client types for details.

About this task

The DB2 Setup wizard is a Java-based installation tool that automates the installation and configuration of any DB2 database products. If you prefer not to use this utility, you have two alternatives. You can install a DB2 Connect Personal Edition product:
  • Using the response file method
  • Manually using the db2_install command. You cannot manually install a DB2 database product using the operating system's native installation utility rpm. Any existing scripts containing this native installation utility that you use to interface and query with DB2 installations will need to change.

Before you begin

Before beginning your installation:
  • You can install DB2 Connect using either root or non-root authority. For more information on non-root installation, see the related links.
  • Ensure that your system meets:
  • The DB2® database product DVD must be mounted on your system.
  • The DB2 Connect product image must be available. If you are installing a non-English version of a DB2 Connect product, you must also have the appropriate National Language Packages.
  • To locate DB2 database products already installed on your system, see Listing DB2 products installed on your system (Linux and UNIX).. The DB2 Setup wizard is a graphical installer. You must have X windows software capable of rendering a graphical user interface for the DB2 Setup wizard to run on your machine. Ensure that the X windows server is running. Ensure that you have properly exported your display. For example, export DISPLAY=9.26.163.144:0.
  • If security software such as Lightweight Directory Access Protocol (LDAP) is used in your environment, you must manually create required DB2 users before you start the DB2 Setup wizard. Refer to the Centralized user-management considerations topic before you begin.
    Note: Network Information Services (NIS) and Network Information Services Plus (NIS+) features are deprecated starting with DB2 Version 9.1 Fix Pack 2. Support for these features might be removed in a future release. Lightweight Directory Access Protocol (LDAP) is the recommended solution for centralized user-management services.

Procedure

To install DB2 Connect Personal Edition on Linux using the DB2 Setup wizard:

  1. Change to the directory where the DVD is mounted:
    cd /db2dvd
    where db2dvd represents mount point of the DVD.
  2. If you downloaded the DB2 Connect product image, you must decompress and untar the product file.
    1. Decompress the product file:
      gzip -d product.tar.gz
      where product is the name of the database product that you downloaded.
    2. Untar the product file:
      tar xvf product.tar
    3. Change directory:
      cd ./product/disk1
    Note: If you downloaded a National Language Package, untar it into the same directory. This will create the subdirectories (for example ./nlpack/disk2) 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 product image resides to start the DB2 Setup wizard. After a few moments, the IBM DB2 Setup Launchpad opens. For multiple CD installations, issue the db2setup command outside the mounted CD location with either a relative or absolute path name to ensure the DB2 Connect product CD can be unmounted as required. From this window, you can view the installation prerequisites and the release notes or you can proceed directly to the installation.
  4. 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 DB2 Setup wizard. Click Help to invoke the online help. You can click Cancel at any time to exit the installation. DB2 files will only be copied to your system once you have clicked Finish on the last DB2 Setup wizard installation panel. Once completed, the DB2 Connect Personal Edition product is installed using the /opt/IBM/db2/V9.7 default installation path.

    If you are installing on a system where this directory is already being used, the DB2 Connect 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.

Results

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

The installation logs, db2setup.log and db2setup.err will be located, by default, in the /tmp directory. You can specify the location of the log files.

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 and DB2 related products.See Installing the DB2 Information Center using the DB2 Setup wizard (UNIX).