Installing DB2 Universal Database (UDB) 7.2
This article describes how to do the following:
- Install DB2 on a local AIX 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 need to 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.
Note: Install DB2 before installing WebSphere Application Server.
Installing DB2 UDB
The DB2 software CD-ROM contains the packages necessary to install and configure
DB2 on a local AIX machine.
Perform the following steps to install DB2:
- Ensure that you are logged into the machine with superuser (root) privileges.
- 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.
- Insert the DB2 UDB V7.2 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 -o ro -v cdrfs /dev/cdnumber /cdrom
In this command, number is the CD-ROM number for your system,
usually 0 (zero). Note that this command assumes that the CD-ROM is mounted at /cdrom.
- Navigate to the /cdrom directory.
- Start the DB2 Setup Utility by using the db2setup command, as follows:
# ./db2setup
- 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/lpp/db2_07_02 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.
- Remove the .toc file from the download directory. The AIX Software Management Interface Tool (SMIT)
creates a new table of contents file that matches the contents of the download directory.
- Ensure that all DB2 processes are stopped.
- Invoke SMIT to update all files by entering the following command:
# smit update_all
- In the INPUT device / directory for software field, specify the full pathname of the
directory containing the uncompressed and untarred FixPak files, and click OK.
- Accept the SMIT default choices for updating DB2, and click OK.
- Click OK to install the FixPak.
- When this process is complete, exit from SMIT.
- Proceed to the article Configuring and testing DB2 UDB 7.2 to
verify your DB2 installation.
|
|