Installing DB2 Universal Database (UDB) 7.1

This article describes the following:

These instructions assume the following:

Note: Install DB2 before installing WebSphere Application Server.

Installing DB2 UDB

The DB2 product CD-ROM contains the files necessary to install and configure DB2 on a local HP-UX machine.

Perform the following steps to install DB2:

  1. Ensure that you are logged into the machine with superuser (root) privileges.
  2. Ensure that you have set the necessary UNIX kernel parameters properly by viewing the file "Setting kernel parameters."

    Refer to the DB2 Quick Beginnings for UNIX and related DB2 UDB documentation on the DB2 Online Support Web site at www.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/v7pubs.d2w/en_main to obtain more information on the proper values for these parameters. It is recommended that you review these settings with your system administrator to ensure that they do not conflict with settings necessary for other software programs on your system.

  3. Insert the DB2 UDB CD-ROM into the CD-ROM drive.
  4. Mount the CD-ROM by following the instructions in the file "Mounting a CD-ROM on HP-UX." The following steps assume that the CD-ROM drive is mounted at /cdrom.
  5. Navigate to the correct directory on the DB2 UDB CD-ROM by entering the following command:
    # cd /cdrom
  6. Look in this directory for a README file in your language and read the file.
  7. Enter the following command to start the DB2 Setup Utility:
    # ./db2setup

    Note: The DB2 Setup Utility works with only the bash, Bourne, and Korn shells.

  8. In the Install DB2 V7 window, select the products that you want to install by performing the following steps. (Press the Tab key to move among and highlight options and press the Enter key to select or deselect options.)
    1. Select DB2 Administration Client, DB2 UDB Enterprise Edition, and DB2 Application Development Client by highlighing each option and pressing Enter.
    2. Highlight the Customize option beside the DB2 Product Library option and press Enter.
    3. In the DB2 Product Library (HTML) section, highlight the option appropriate for your locale (en_US for U.S. English) and press Enter.
    4. In the DB2 Product Library window, highlight OK and press Enter.
    5. In the Install DB2 V7 window, highlight OK and press Enter.
  9. In the Create DB2 Services window, accept the default selections and select OK three times to initiate the installation. (You will create a DB2 Instance and the Administration Server after the installation of a FixPak, which is described in the section "Upgrading DB2 UDB with a FixPak.") The software is installed into the directory /opt/IBMdb2/V7.1 by default.
  10. Unmount the CD-ROM before removing it from the CD-ROM drive by following the instructions in the file "Mounting a CD-ROM on HP-UX."
  11. Determine whether you need to install a DB2 FixPak for your version of WebSphere Application Server by reviewing the information on the WebSphere Application Server Supported Hardware, Software, and APIs Web site at www.ibm.com/software/webservers/appserv/doc/latest/prereq.html. If you need to update your DB2 UDB installation with a FixPak, note the FixPak level and proceed to the section "Upgrading DB2 UDB with a FixPak." If you do not have to update your DB2 UDB installation with a FixPak, proceed to the steps in "Creating and configuring a database for DB2 UDB 7.1."

Upgrading DB2 UDB with a FixPak

To upgrade DB2 with a FixPak, do the following:

  1. If you have not already done so, see the WebSphere Application Server Supported Hardware, Software, and APIs Web site at www.ibm.com/software/webservers/appserv/doc/latest/prereq.html to learn whether you need to install a DB2 FixPak for your level of WebSphere Application Server. Note the required FixPak level.
  2. Go to the DB2 Online Support Web site at www.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/download.d2w/report, navigate to the download page for the needed FixPak, and download the appropriate file. Read the accompanying README file for installation suggestions.
  3. Ensure that you are logged into the machine with superuser (root) privileges.
  4. Navigate to the directory containing the downloaded file.
  5. Uncompress and untar the file to extract the DB2 files.
  6. Ensure that all DB2 processes are stopped.
  7. Ensure that the group root exists on the machine. If it does not, add it by entering the following command:
    # groupadd root
  8. Use the swinstall command to install all fixes from the FixPak. See HP-UX documentation for more information on using the swinstall command.
  9. After you install the FixPak, complete the steps in "Creating and configuring a database for DB2 UDB 7.1."