IBM Books

Quick Beginnings for DB2 Extended Enterprise Edition for UNIX


Installing on AIX, HP-UX and Solaris Systems

To install the DB2 Client Application Enabler on AIX, HP-UX and Solaris systems, perform the following steps:

Step 1. Update Kernel Configuration Parameters

To run DB2 Client Application Enabler for UNIX systems, you may have to update some kernel configuration parameters.

note

This step is not required on AIX. If you are installing an AIX client, skip this step and go to "Step 2. Mount the DB2 Client Application Enablers CD-ROM"

Recommended Values for HP-UX

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

Table 9. 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. Mount the DB2 Client Application Enablers CD-ROM" to continue with the installation.

Recommended Values for Solaris

The following values in Table 10 are the recommend Solaris kernel configuration parameters.

Table 10. 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. Mount the DB2 Client Application Enablers CD-ROM

To install DB2 Client Application Enabler using the DB2 Installer, you must first mount the CD-ROM. Use the DB2 Client Application Enablers 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 entering the following command:
       mkdir -p /cdrom
    

  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 mount point prompt 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 could 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 off.


note

Go to "Step 3. Perform 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. Perform 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. If the Volume Manager is not running on your system, enter the following commands to mount the CD-ROM:
       mkdir -p /cdrom/unnamed_cdrom
       mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom/unnamed_cdrom
    

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

    Figure hint not displayed.

    If you are mounting the CD-ROM drive from a remote system using NFS, the CD-ROM file system on the remote machine must be exported with root access. You must also mount that file system with root access on the local machine.

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

       /cdrom/unnamed_cdrom
    

  3. Log out.

Step 3. Perform the Installation

After you mount the CD-ROM file system, use the DB2 Installer program 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 use the telnet command to open a telnet session instead of using the rlogin command to connect to your remote server.  

  1. Log in as root.

  2. Insert the DB2 Client Application Enablers CD-ROM in the drive.

  3. If required, mount the CD-ROM. Refer to "Step 2. Mount the DB2 Client Application Enablers CD-ROM" if required.

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

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


    Figure hint not displayed.

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

    Note:Your screen will be different if you have already installed DB2 Version 5 products on your system.

    Selecting installable products and components

  6. 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.

    Figure hint not displayed.

    To refresh the current screen, press the F5 key or Ctrl+L. 

    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 9 if you do not want to create a DB2 Instance at this time.

  7. At the Create DB2 Services screen, select Create a DB2 Instance to display the DB2 Instance screen as follows:
    Entering information to create a DB2 Instance (CAE)

    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.

    note

    If you are running file collections on an RS/6000 SP system that is running AIX, ensure that the instance user ID is created from the file collections server. When file collections is run, the user ID and group will be deleted if added to an RS/6000 SP node that is not the file collections server.

    To see if file collections is running, issue the crontab -l command from one of the RS/6000 SP nodes and look for an entry such as:

    10 * * * * /var/sysman/supper update sup.admin
    user.admin node.root
    

  8. Complete the fields and select OK to return to the Create DB2 Services screen.

  9. 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.
    DB2 Installer Summary Report

  10. 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.

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

  12. Select Close from the DB2 Installer screen to terminate the DB2 Installer program.

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 14. "Configuring Client-to-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 ]