Installing DB2 Universal Database (UDB) 7.1

This article describes how to:

Installing DB2 UDB 7.1

The DB2 product CD contains the files necessary to install and configure DB2 on a local AIX machine (the machine to which the CD-ROM drive is attached). Perform the following steps to install DB2:

  1. Ensure that you are logged into the machine with superuser (root) privileges.
  2. Ensure that a CD-ROM drive is installed and configured on the machine. If a CD-ROM drive is not installed or configured on the machine, install and configure one according to the instructions provided with the drive.
  3. Insert the DB2 UDB V7.1 CD into the CD-ROM drive and, if necessary, mount the CD.
  4. If necessary, use the mkdir command to create a mount point for the CD. The following command creates a mount point at /cdrom; you can mount the CD at any location on the machine's local file system. # mkdir /cdrom

    The commands in these steps assume the CD is mounted at /cdrom. If you mount the CD at a different location, use that location when issuing commands.

  5. Mount the CD-ROM drive by entering the following command:
    # mount -o ro -v cdrfs /dev/cd number /cdrom

    In this command, number is the CD-ROM number for your system, usually 0 (zero). Note that this command assumes that the CD is mounted at /cdrom.

  6. Navigate to the /cdrom directory by entering the following command: # cd /cdrom
  7. Enter the following command to start the DB2 Setup Utility: # ./db2setup
  8. On the Install DB2 V7 screen, select the products that you want to install by performing the steps below. (Press the Tab key to move among and highlight options and press the Return key to select or deselect options.)
    1. Select DB2 Administration Client, DB2 UDB Enterprise Edition, DB2 Connect Enterprise Edition, and DB2 Application Development Client by highlighting each option and pressing Return.
    2. Highlight the Customize option beside the DB2 Product Library option and press Return.
    3. In the DB2 Product Library (HTML) section, highlight the option appropriate for your locale (en_US for U.S. English) and press Return.
    4. On the DB2 Product Library screen, highlight OK and press Return.
    5. On the Install DB2 V7 screen, highlight OK and press Return.
  9. On the Create DB2 Services screen, accept the default values Do not create DB2 Instance and Do not create the Administration Server and click OK. You will create a DB2 Instance and Administration Server after installing a fixpack. Installation of fixpacks is discussed in the section "Upgrading DB2 UDB 7.1 with a fixpack."
  10. A Warning screen informs you that you are not creating a DB2 Instance. Ensure that OK is highlighted, and press Return to exit from the Warning screen.
  11. A Warning screen informs you that you are not creating an Administration Server. Ensure that OK is highlighted, and press Return to exit from the Warning screen.
  12. Ensure that OK is highlighted, and press Return to continue with the installation. You are notified when the installation completes successfully, and are then prompted to register your DB2 software.
  13. A Warning screen informs you that you are not creating a DB2 instance. Ensure that OK is highlighted, and press Return.
  14. A Warning screen informs you that you are not creating the Administration Server. Ensure that OK is highlighted, and press Return.
  15. A notice asks if you want to exit from the DB2 Setup Utility. Exit from the DB2 Setup Utility by ensuring that OK is highlighted, and pressing Return.

Determine whether you need to update the basic DB2 installation with a fixpack 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 must install a fixpack, note the fixpack level and proceed to the section "Upgrading DB2 UDB 7.1 with a fixpack."

Upgrading DB2 UDB 7.1 with a fixpack

To upgrade DB2 UDB 7.1 with a fixpack, 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 fixpack for your level of WebSphere Application Server. Note the fixpack level needed.
  2. Go to http://www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/download.d2w/report, navigate to the download page for the needed fixpack, and download the appropriate file. Read the accompanying README file for installation tips.
  3. Ensure that you are logged into the machine with superuser (root) privileges.
  4. Move to the directory containing the downloaded file.
  5. Uncompress and untar the file to extract the DB2 files.
  6. Remove the .toc file from the download directory. This action causes smit to create a new table of contents that matches the contents of the download directory.
  7. Ensure that all DB2 processes are stopped.
  8. To install all fixes from the fixpack, use the following command: # smit update_all
  9. In the INPUT device / directory for software field, specify the path where the installation images are located and click OK.
  10. Click OK to take the default file choices for DB2 software.
  11. Click OK to continue with the installation.

To verify your DB2 installation, see "Configuring and testing DB2 UDB 7.1."