Installing DB2 Universal Database (UDB) 7.2
This article describes how to do the following:
- Install DB2 on a local Linux machine.
- Apply a FixPak to the installation.
These instructions assume the following:
- Your machine has enough memory and disk space for your installation. See the DB2 product
documentation on the DB2 Online Support Web site at
www.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/v7pubs.d2w/en_main for the
requirements.
- You do not have a previous version of DB2 already installed on the machine. If a previous
version of DB2 is installed, you can migrate servers and instances, depending on the
version installed. In this case, do not follow these instructions. Instead, refer to the DB2
product documentation on the DB2 Online Support Web site at
www.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/v7pubs.d2w/en_main.
- Your DB2 database server will reside on the same machine as WebSphere Application Server. This
configuration and the use of the default settings documented in these instructions are appropriate
only for development and small production environments. For larger environments where it is
preferable to configure the DB2 server on a remote machine, you must install and configure a DB2
client on the same machine on which you install WebSphere Application Server and verify the remote
database connectivity. See the
IBM Redbook, WebSphere V3.5 Handbook, on the IBM Redbooks Web site at
www.redbooks.ibm.com/redbooks/SG246161.html
for more information about implementing this configuration.
Installing DB2 UDB
The DB2 software CD-ROM contains the packages necessary to install and configure
DB2 on a local Linux machine.
Before installing DB2, it is recommended that you prepare you Linux distribution
for database installation. See the Linux Documentation Project's HOWTO Web site for databases at
www.linuxdoc.org/HOWTO/HOWTO-INDEX/apps.html#SERVERDBMS
for more information about preparing your specific distribution.
Note: Installing DB2 on a machine running certain Linux distributions requires installation of
the Public Domain Korn Shell (pdksh), which is not part of a default Linux installation.
Refer to your Linux documentation
for information about installing this package by using the rpm command.
Perform the following steps to install DB2:
- Ensure that you are logged into the machine with superuser (root) privileges.
- Insert the DB2 UDB software CD-ROM into the CD-ROM drive.
- If necessary, use the mkdir command to create a mount point for the
CD-ROM. The following command creates a mount point at the directory /cdrom; you can mount
the CD-ROM at any location on the machine's local file system.
# mkdir /cdrom
The commands in these steps assume the CD-ROM is mounted at /cdrom. If you
mount the CD-ROM at a different location, use that location when issuing
commands.
- Mount the CD-ROM drive by entering the following command:
# mount -t iso9660 -o ro /dev/cdrom /cdrom
This command assumes that the CD-ROM is mounted at /cdrom.
Note: |
Some window managers automatically mount a CD-ROM for you. Consult your operating system
documentation for more information. |
- Navigate to the /cdrom directory.
- Start the DB2 Setup Utility by using the db2setup command, as follows:
# ./db2setup
Note: |
The DB2 Setup Utility works with only the bash, Bourne, and Korn shells. |
- The Install DB2 V7 window opens. Press Tab to move between available options
and fields. Press Return to select or deselect an option. Perform the following steps
to select the appropriate products and components for installation:
- Highlight and press Return for the following products:
- DB2 Administration Client
- DB2 UDB Enterprise Edition
- DB2 Connect Enterprise Edition
- DB2 Application Development Client
- Highlight the Customize option for the DB2 Product Library
option and press Return.
- The DB2 Product Library dialog box opens. In the DB2 Product Library (HTML)
section, highlight the appropriate option for your locale (en_US for U.S. English)
and press Return.
- On the DB2 Product Library dialog, highlight OK and press Return.
- On the Install DB2 V7 dialog, highlight OK and press Return.
- On the Create DB2 Services dialog, accept the default values Do not create
DB2 Instance and Do not create the Administration Server, ensure that OK
is highlighted, and press Return. You will create a DB2 instance and Administration Server
after installing the required FixPak. Installing a FixPak is discussed in the section
"Upgrading DB2 UDB with a FixPak."
- A Warning dialog informs you that you are not creating a DB2 instance. Ensure that
OK is highlighted, and press Return to exit from the Warning dialog.
- A Warning dialog informs you that you are not creating an Administration Server.
Ensure that OK is highlighted, and press Return to exit from the Warning dialog.
- The Summary Report dialog box opens. Ensure that Continue is highlighted, and
press Return to continue with the installation.
- A Warning dialog informs you that it is your last chance to stop the installation. Ensure
that OK is highlighted, and press Return to continue with the installation. When
installation is complete DB2 software is installed in the /usr/IBMdb2/V7.2 directory.
- A Notice dialog informs you when the installation process has completed successfully. Ensure
that OK is highlighted, and press Return.
- You can be prompted to register the DB2 software. Enter the information required to register
DB2, or exit from the registration window by clicking Exit.
- The Status Report dialog displays the status of each component you selected for installation.
You can choose to view the contents of the installation log file by highlighting View Log
and pressing Return, or highlight OK and press Return to continue.
- The DB2 Setup Utility dialog box opens. Highlight Close and press Return to exit
from the DB2 Setup Utility.
- A Warning dialog informs you that a DB2 instance has not been created. Ensure that
OK is highlighted, and press Return.
- A Warning dialog informs you that the Administration Server has not been created.
Ensure that OK is highlighted, and press Return.
- A Notice dialog prompts you to exit from the DB2 Installer. Ensure that
OK is highlighted and press Return.
- Unmount the CD-ROM before removing it from the CD-ROM drive by using the umount
command, as follows:
# umount /cdrom
- See the WebSphere Application Server Supported Software and APIs Web site at
www.ibm.com/software/webservers/appserv/doc/latest/prereq.html to
determine if it is necessary to install a DB2 FixPak for your version of WebSphere Application Server.
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.
Perform the following steps to install a FixPak for DB2:
- See the WebSphere Application Server Supported Software
and APIs Web site at www.ibm.com/software/webservers/appserv/doc/latest/prereq.html
to determine the required FixPak level for your version of WebSphere Application Server.
- Go to the DB2 Universal Database and DB2 Connect 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 required FixPak, and download the appropriate file.
Read the accompanying README file for installation suggestions.
- Ensure that you are logged into the machine with superuser (root) privileges.
- Navigate to the directory containing the downloaded tar file.
- Untar the file you downloaded to extract the DB2 packages by using the tar
command, as follows:
# tar -xvf file_name.tar
In this command, file_name is the name of the tar file you downloaded.
- After you untar the file you downloaded, the directory containing the tar file now also contains a
new subdirectory. Navigate to the new subdirectory.
- Install the FixPak by using the installpatch script, as follows:
# ./installpatch
- Proceed to the article "Configuring and testing DB2 UDB 7.2."