IBM Books

Quick Beginnings


Step 1. Installing DB2 Products

Use the db2_install command, that is available on the DB2 CD-ROM to install DB2 products. If your system does not have a local CD-ROM drive, you can mount the CD-ROM on a different system and NFS mount on the current system.

To install DB2 for Solaris and its prerequisites from the DB2 CD-ROM, you will perform the following steps:

  1. Log in as root.

  2. Insert the DB2 CD-ROM into the CD-ROM drive.

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

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

       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 file system must be exported with the root access.

  4. Run the db2_install command:
       /cdrom/unnamed_cdrom/db2/db2_install
    

    The db2_install command prompts you for the product to be installed and for the base directory where the product files are to be installed. Select DB2.CONN to install DB2 Connect Enterprise Edition.
    Note:The command displays the following prompt:
       Specify one or more of the keywords followed
       by spaces.
    

  5. Type the keyword of the product to be installed when prompted.
    Note:This CD-ROM contains several DB2 products. Select the products you are licensed to install. Your Proof of Entitlement and License Information booklet identify the products for which you are licensed.

  6. Type the name of the base directory when prompted. The default base directory is /opt.

    If the default base directory is used, all files will be installed in the /opt/IBMdb2/V5.0 directory.

  7. Enter Yes to start the DB2 product installation.

Installing the DB2 Product Library (Optional)

To view DB2 product documents on-line, HTML version 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.

A separate package exists for every language in which DB2 product documents are translated. Packages for DB2 product documentation are given names such as db2ht%L50, where %L represents two letters for the language name. For example, the package name for the DB2 Product Library in English is db2hten50. For a complete list of packages for the DB2 Product Library, see Appendix C. "Contents of the DB2 Products".

To install the DB2 Product Library (HTML) package, 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 pkgadd command as follows:
       pkgadd -d <cdrom-dir>/db2/db2 <pkgname>
    

    where <cdrom> is the CD-ROM mount directory and <pkgname> is the package name. For example to install DB2 product documentation in English, you can enter the following command:

       pkgadd -d /cdrom/unnamed_cdrom/db2/db2 db2hten50
    

    This command installs 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.

  3. From your Web browser, open the following URL to view the DB2 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)

A separate package exists for every locale in which DB2 Product Messages are translated. Packages for DB2 Product Messages are given names such as db2ms%L50, where %L represents two letters for the language name. For example, the package name for the DB2 Product Messages in the de (German) locale is db2msde50. For a complete list of DB2 Product Messages, see Appendix C. "Contents of the DB2 Products".

To install DB2 Product Message packages, 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 pkgadd command as follows:
       pkgadd -d <cdrom-dir>/db2/db2 <pkgname>
    

    where <cdrom-dir> is the CD-ROM mount directory and <pkgname> is the package name.

    For example, to install the DB2 Product Messages in the de (German) locale, enter the following command:

        pkgadd -d /cdrom/unnamed_cdrom/db2/db2 db2msde50
    


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

[ DB2 List of Books | Search the DB2 Books ]