IBM Books

Installing and Configuring DB2 Clients


Installing on AIX, HP-UX and Solaris Systems

To install the DB2 Client Application Enabler or the DB2 Software Developer's Kit on AIX, HP-UX and Solaris systems, you will perform the following steps:

  1. Update the kernel configuration parameters - see "Step 1. Updating Kernel Configuration Parameters". This step is not required on AIX.

  2. Mount the either the DB2 Client Pack CD-ROM or the SDK Pack CD-ROM (to install the DB2 Software Developer's Kit) - see "Step 2. Mounting the DB2 Client Pack CD-ROM".

  3. Install the DB2 products - see "Step 3. Performing the Installation".

Step 1. Updating Kernel Configuration Parameters

To run DB2 Client Application Enabler or the DB2 Software Developer's Kit for UNIX systems, you may have to update some kernel configuration parameters.

note

This step is not required on AIX.

Recommended Values for HP-UX

The following values in Table 5 are recommended for the HP-UX kernel configuration parameters.

Table 5. HP-UX Kernel Configuration Parameters (Recommended Values)
Kernel Parameter Recommended Value
msgseg
msgmnb
msgmax
msgssz

8192
65535  (1)
65535  (1)
16

Notes:

  1. Parameters msgmnb and msgmax must be set to 65535.

  2. To maintain the interdependency among kernel parameters, change parameters in the same sequence in which they appear in the preceding table.

To change the values, do the following:

  1. Use SAM and select Kernel Configuration.

  2. Select Configurable Parameters.

  3. Highlight the parameter to be changed.

  4. Select Modify Configurable Parameter from the Actions menu and make the appropriate changes.

  5. Repeat the previous two steps for every kernel parameter which needs to be updated.

  6. Create a new kernel by selecting Create a New Kernel from the Actions menu.

  7. Reboot the system so that the changes can take effect.


note

Go to "Step 2. Mounting the DB2 Client Pack CD-ROM" to continue with the installation.

Recommended Values for Solaris

The following values in Table 6 are recommended for Solaris kernel configuration parameters.

Table 6. Solaris Kernel Configuration Parameters (Recommended Values)
Kernel Parameter Recommended Value
msgsys:msginfo_msgmax
msgsys:msginfo_msgmnb
msgsys:msginfo_msgseg
msgsys:msginfo_msgssz

65535  (1)
65535  (1)
8192
16

Notes:

  1. Parameters msgsys:msginfo_msgmnb and msgsys:msginfo_msgmax must be set to 65535.

To set a kernel parameter, add a line at the end of the /etc/system file as follows:

   set parameter-name = value

For example, to set the value of parameter msgsys:msginfo_msgmax, add the following line to the end of the /etc/system file:

   set msgsys:msginfo_msgmax = 65535

After changing the kernel parameters, reboot the system so that the changes can take effect.

Step 2. Mounting the DB2 Client Pack CD-ROM

To install DB2 Client Application Enabler or the DB2 Software Developer's Kit using the DB2 Installer, you must first mount the CD-ROM. Use either the SDK Pack CD-ROM (to install the DB2 Software Developer's Kit) or the Client Pack CD-ROM to perform the installation. Once you have mounted the CD-ROM, you can start installing the DB2 products.

Mounting on AIX Systems

Perform the following steps to mount the CD-ROM on AIX operating systems:

  1. Log in as root.

  2. Insert the CD-ROM in the drive.

  3. Create a root directory by typing the following command:
       mkdir -p /cdrom
    


    * Figure hint not displayed.

    The directory name /cdrom is used here as an example only. You may use a different name for your root directory.

  4. Allocate a CD-ROM file system by typing the following command:
       smit storage
    

  5. Select FileSystems.

  6. Select Add/Change/Show/Delete FileSystems.

  7. Select CD-ROM FileSystems.

  8. Select Add CDROM FileSystems.

  9. Select the DEVICE Name.

    * Figure hint not displayed.

    Device names for CD-ROM file systems must be unique. You may need to delete a previously-defined CD-ROM file system or use another name for your directory, if there is a duplicate device name.

  10. Respond to the prompt, mount point, by typing the following:
       /cdrom
    

  11. Mount the CD-ROM file system by typing the following command:
       smit mountfs
    

  12. Select the FileSystem name. For example, the name can be /dev/cd0.

  13. Select the Directory name, /cdrom.

  14. Select the Type of filesystem, cdrfs.

  15. Set the Mount as READ-ONLY system to Yes.

  16. Log out.


note

Go to "Step 3. Performing the Installation" to continue with the installation.

Mounting on HP-UX Systems

Perform the following steps to mount the CD-ROM on HP-UX operating systems:

  1. Log in as root.

  2. Insert the CD-ROM in the drive and mount it as in the following example:
        mkdir /cdrom
        /usr/sbin/mount /dev/dsk/c0t2d0 /cdrom
    

    where /cdrom is the CD-ROM mount directory.

  3. Log out.


note

Go to "Step 3. Performing the Installation" to continue with the installation.

Mounting on Solaris Systems

Perform the following steps to mount the CD-ROM on Solaris operating systems:

  1. Log in as root.

  2. Insert the CD-ROM in the drive.

    If the Volume Manager (vold) is installed on your system, the CD-ROM is automatically mounted as:

       /cdrom/unnamed_cdrom
    

    where /cdrom/unnamed_cdrom is the CD-ROM mount directory.

    If the Volume Manager is not installed on your system, mount the CD-ROM by entering commands as shown in the following example:

       mkdir -p /cdrom/unnamed_cdrom
       mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom/unnamed_cdrom
    

  3. Log out.

Step 3. Performing the Installation

After you mount the CD-ROM file system, use the DB2 Installer to install the DB2 products.

* Figure hint not displayed.

If you are installing the DB2 Client Application Enabler from a remote server, it is better to open a telnet session instead using the rlogin command to connect to your remote server.  

  1. Log in as root.

  2. Insert the DB2 Client Pack in the drive.

  3. If required, mount the CD-ROM. Refer to "Step 2. Mounting the DB2 Client Pack CD-ROM" if required.

  4. Change to the directory where DB2 install images are available by typing the following command:

  5. Type the following command to start the DB2 Installer:
       ./db2setup
    


    * Figure hint not displayed.

    It will take some time for the DB2 Installer to start up, as it is scanning your system for information. 

  6. Select Install to display the Install DB2 V5 screen as shown as follows.
    * Figure dbinstcl not displayed.

  7. From the product list on the Install DB2 V5 screen, select the DB2 products that you want to install.

    To display the required and optional components for the product you want to install, select Customize. The optional components that are most typically used are pre-selected for you.

    When you have finished selecting the product components to install, select OK to go to the Create DB2 Services screen. To undo any selections you made, select Cancel.

    note

    Go to step 10 if you do not want to create a DB2 Instance at this time.

  8. At the Create DB2 Services screen, select Create a DB2 Instance to display the DB2 Instance screen as shown as follows.
    * Figure dbcliins not displayed.

    You can use the default values displayed at the DB2 Instance screen or change them. To change the default User ID for the instance, deselect Use Default UID and enter a new value for the User ID.

  9. Enter the information and select OK to return to the Create DB2 Services screen.

  10. After entering the values for the DB2 Instance, select OK to display the Summary Report as shown in the following screen. The report lists the installable items as well as the location of the installation log file.
    * Figure dbsumrpt not displayed.

  11. Use the Up or Down arrow keys to review the Summary Report. If the selections are not correct, press the F3 key, to return to the previous screen. Otherwise select Continue to start the installation.

  12. When the installation is complete, use the Up or Down arrow keys to review the Status Report. Select ViewLog to view the installation log file. Select OK to close the Status Report screen.

  13. Select Close from the DB2 Installer screen to terminate the DB2 Installer.

After the installation is complete, the software is installed in the DB2DIR directory,
where DB2DIR = /usr/lpp/db2_05_00 on AIX


= /opt/IBMdb2/V5.0 on HP-UX or Solaris


note

Proceed either to Chapter 9. "Configuring Client to DB2 Server Communications Using the CCA" or "Installing on Other UNIX Systems".


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]