IBM Books

Quick Beginnings


Step 1. Installing DB2 Products

Use the swinstall program to install DB2 for HP-UX. To install, perform the following steps:

  1. Log in as root.

  2. Insert the DB2 CD-ROM into the CD-ROM drive and mount it. For example:
       mkdir /cdrom
       /usr/sbin/mount /dev/dsk/c0t2d0 /cdrom
    

    where /cdrom is the CD-ROM mount directory.

  3. Run the swinstall program using the following command:
       swinstall -x autoselect_dependencies=true
    

    This opens the Software Selection window and the Specify Source window.

  4. If necessary, change the Source Host Name in the Specify Source window.

  5. Enter /cdrom/db2 as the value for the Source Depot Path field, where /cdrom is the CD-ROM mount directory.

  6. To return to the Software Selection window, select the OK button.

  7. On the Software Selection window, highlight DB2V5CONN.

  8. Select Mark for Install from the Actions menu to choose the product to be installed.
    Note:Ignore the error message similar to the following:
    The software "DB2V5CAE r=5.0.0,a=HP-UX_B.10.10_700/800,v=IBM" was
    successfully marked, but it depends on the following software items
    which could not be found in the source. However, these items may
    already be in the target. This will be checked during the Analysis
    Phase: OS-Core.CMDS-AUX,r>=B.10.10,a=HP-UX_?.10.??_7800,v=HP
    OS-Core.CMDS-MIN,r>=B.10.10,a=HP-UX_?.10.??_7800,v=HP
    SOE.SOE,r>=B.10.10,a=HP-UX_?.10.??_7800,v=HP
    

  9. Select OK when the following message appears:
       In addition to the software you just marked, other software was
       automatically marked to resolve dependencies.  This message will
       not appear again.
    

  10. Select Install (analysis) from the Actions menu to begin product installation and to open the Install Analysis window.

  11. Select OK in the Install Analysis window when the Status field displays a Ready message.

  12. Select the Yes button in the Confirmation window windows to confirm that you want to install the HP-UX software products.

    View the Install window to read processing data while the software is being installed, until the Status field indicates Ready and the Note Window opens. The swinstall program loads the fileset, and runs the control scripts for the fileset.

  13. Select Exit from the File menu to exit out of swinstall.

The HP-UX operating system provides detailed help for swinstall. For help, type:

   man swinstall

Installing the DB2 Product Library (Optional)

To view DB2 product documents on-line, HTML versions of these documents are provided for installation. These documents are translated into several languages. However, not every manual in the DB2 product library is translated into multiple languages. The English version of every manual is available in HTML format.

The DB2V5HTML product includes filesets for all the DB2 product documentation. A separate fileset exists for each language. For example, the fileset name for the DB2 product library in English is DB2V5HTML.en_US. For a complete list of filesets in the DB2V5HTML product, see Appendix C. "Contents of the DB2 Products".

To install the DB2 Product Library (HTML) filesets, do the following:

  1. Log in as root and mount the DB2 product CD-ROM as described in "Step 1. Installing DB2 Products".

  2. Run the swinstall command as follows:
       swinstall -s /cdrom/db2
    

    where /cdrom is the CD-ROM mount directory.

  3. From the list of products displayed, highlight the DB2V5HTML product and press Enter.

    This will display a list of all the filesets in the DB2V5HTML product.

  4. Highlight one or more filesets that you want to install and select Mark for Install from the Actions menu.

    For example, to install the DB2 product Library in English, highlight the following fileset:

       en_US     DB2 Product Library (HTML) - English
    

  5. Follow the remaining installation procedure, starting at Step 9 in "Step 1. Installing DB2 Products".

    This will install the compressed-tar files for the DB2 documents in the /opt/IBMdb2/V5.0/doc/<lang>/html directory, where <lang> is the language/locale identifier.

  6. Run the following command to uncompress and un-tar the HTML files:
       /opt/IBMdb2/V5.0/doc/db2insthtml lang
    

    where lang is the language/locale identified. For example, lang=en_US for English. For valid language/locale identifiers, see Table 51.

  7. From your Web browser, open the following URL to view DB2 online manuals:
       file:/opt/IBMdb2/V5.0/doc/en_US/html/index.htm
    

To recover some disk space, you may want to remove the compressed-tar files for DB2 books in HTML format. It is recommended that you do not just remove the compressed-tar HTML files. Instead, you should remove the fileset for the DB2 Product Library.

After the fileset is removed, only compressed-tar files will be removed. You will still be able to view the online DB2 books.

Installing DB2 Product Messages (Optional)

While DB2 Product Message documents are translated into several languages, the English language DB2 Product Messages are always installed. To install the DB2 Product Messages in other locales, you have to install one or more filesets in the DB2V5MSG product.

The DB2V5MSG product includes a separate fileset for every locale in which DB2 Product Messages are available. There is no fileset for the English (en_US.iso88591 or en_US.roman8) locale since these messages are installed with the base product. For example, to install the DB2 Product messages in the fr_FR.iso88591 locale, you need to install the fileset DB2V5MSG.fr_FR. For a complete list of filesets in the DB2V5MSG product, see Appendix C. "Contents of the DB2 Products".

To install DB2 Product Message filesets, do the following:

  1. Log in as root and mount the DB2 product CD-ROM as described in "Installation Steps".

  2. Run the swinstall command as follows:
       swinstall -s /cdrom/db2
    

    where /cdrom is the CD-ROM mount directory.

  3. From the list of products displayed, highlight the DB2V5MSG product and press Enter.

    This will display a list of all the filesets in the DB2V5MSG product.

  4. Highlight one or more filesets that you want to install and select Mark for Install from the Actions menu.

    For example, to install the DB2 Product Library in the fr_FR.iso88591 locale, highlight the following fileset:

       fr_FR     DB2 Product Library (HTML) - fr_FR
    

  5. Follow the remaining installation procedure, starting at Step 9 in "Step 1. Installing DB2 Products".


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

[ DB2 List of Books | Search the DB2 Books ]