IBM Books

Quick Beginnings for DB2 Extended Enterprise Edition for UNIX


Step 2. Install DB2

The DB2 CD-ROM contains several 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.

note

Go to the installation method that you would like to use to install DB2.


Install the Product or Filesets Using the dsh Command

You can use the dsh command to install DB2 Extended Enterprise Edition on an RS/6000 SP machine that is running AIX. To use the dsh command:

  1. On the SP control workstation, create a file that lists the host names of the machines on which you want to install DB2 Extended Enterprise Edition. For example, assume that you want to install this product on three machines, machine1, machine2, and machine3, and you are using a file called machine.txt, the file contents would be:
       machine1
       machine2
       machine3
    

  2. On the control workstation, enter the following command:
       export WCOLL=/machine.txt
    

  3. Issue the hostlist or the dsh -q command to ensure that you have the correct set of machines that you want to run the dsh command on.

  4. Mount the CD-ROM drive on the control workstation; for example, /cdrom.

  5. Export the /cdrom file system to all the machines as follows:
       exportfs -o ro /cdrom
    

  6. Create a directory on each machine as follows (this directory will be used to mount the /cdrom file system):
        dsh mkdir /cdrom
    

  7. Mount the /cdrom file system from the control workstation as follows:
       dsh mount control_workstation:/cdrom /cdrom
    

    where control_workstation is the name of the control workstation.

    After this command completes, all machines will be able to access the CD-ROM.

  8. Issue the dsh command to install the DB2 package that you want on all machines; for example:
        dsh installp -qagXd /cdrom pkgname
    

    where pkgname is the name of the package that you want to install.

    For example, to install DB2 Extended Enterprise Edition on every machine, you can use the following command:

        dsh installp -qagXd /cdrom db2_05_00.xsrv
    

    For package names, see Appendix D. "Contents of the DB2 Products".



note

Now that you have finished installing DB2, go to "Install the DB2 Product Library (Optional)" and "Install the DB2 Product Messages (Optional)" to optionally install the product documentation and messages. If you do not want to install product documentation or messages, proceed to the next step.

Install Products or Filesets Using SMIT

To install DB2 Extended Enterprise Edition using SMIT, perform the following steps:

  1. Log in as root.

  2. Mount the DB2 CD-ROM.

  3. Enter the smit install_latest command. The Software Installation and Maintenance menu opens.

  4. Specify the INPUT device/directory for DB2 and press Enter.

    For example, if /cdrom is the CD-ROM mount directory, enter the following as the INPUT device:

       /cdrom/db2
    

  5. Press F4 to display a list of software to install. For a detailed description of the software packages, refer to Appendix D. "Contents of the DB2 Products" for more information.

  6. Press F7 to mark one or more packages and filesets for installation.
    Note:You must select the License Support for DB2 Extended Enterprise Edition fileset to install DB2 Extended Enterprise Edition.

  7. Press Enter to install DB2.

  8. Press F10 to exit when the command displays OK.

After the installation is complete, DB2 will be installed in the /usr/lpp/db2_05_00 directory on that machine; now you must repeat the above steps on all machines.

note

Now that you have finished installing DB2, go to "Install the DB2 Product Library (Optional)" and "Install the DB2 Product Messages (Optional)" to optionally install the product documentation and messages. If you do not want to install product documentation or messages, proceed to the next step.

Install Software Bundles Using SMIT

The following procedure shows how to install DB2 Extended Enterprise Edition using the Software Bundles feature. A software bundle is a collection of filesets. When you install a software bundle, every fileset in that bundle is installed.

  1. Log in as root.

  2. Insert and mount the DB2 CD-ROM in the drive.

  3. To proceed directly to the automatic bundle processing application, issue the smit easy_install_bundle command.

  4. Specify the installation device or directory for the installation media by pressing F4 to display a list.

  5. Select the CD-ROM drive in which you placed the DB2 CD-ROM, then press Enter.

  6. If you did not install the DB2 Media-Defined software bundle on this system, use the following procedure to install it:

    1. In the Bundle to Install menu, select the Media-Defined option, then press Enter.

    2. In the Install Bundle Contents menu, press Enter to continue with the installation. Messages may appear to indicate the status of the installation. Press Enter to continue.

    3. Press F3 to return to the Install Bundle Contents menu.

    4. Press F4 to re-display the list of software bundles.

  7. From the displayed menu, select one of the following software bundles:

    Notes:

    1. Every required and recommended fileset for a product is installed with its bundle.

    2. For a list of filesets included in a product, see Table 6.

  8. Press Enter to start the installation.

    Messages will appear to indicate the status of the installation. Press Enter to continue, or F3 if you want to cancel.

  9. Repeat the steps in this section if you want to install software bundles on other machines.

  10. Repeat the steps on every machine that you want to participate in the partitioned database system.


note

Now that you have finished installing DB2, go to "Install the DB2 Product Library (Optional)" and "Install the DB2 Product Messages (Optional)" to optionally install the product documentation and messages. If you do not want to install product documentation or messages, proceed to the next step.

Install the DB2 Product Library (Optional)

When you install DB2 using SMIT, the DB2 Product Library (HTML) is not automatically installed.

To install the DB2 Product Library, do the following:

  1. Log in as root.

  2. Mount the DB2 CD-ROM.

  3. Enter the smit install_latest command. The Software Installation and Maintenance menu opens.

  4. Enter the directory for the INPUT device/directory for software. For example, if /cdrom is the CD-ROM mount directory, enter the following as the INPUT device:
       /cdrom/db2
    

  5. Press F4 to display a list of software to install. For a detailed description of the software packages, refer to Appendix D. "Contents of the DB2 Products" for more information.

  6. Select the fileset for the DB2 Product Library (HTML) that you want to install. A separate fileset exists for every language in which DB2 documentation is translated.
    Note:Not every manual is translated into multiple languages. The DB2 Product Library (HTML) - English fileset contains a complete set of books in English.


    note

    The DB2 Product Library (HTML) fileset is listed as follows:
    DB2 Product Library (HTML) - language
    

  7. Press ENTER to start the installation.

  8. Press F10 to exit SMIT when the command completes.

  9. Run the following command to uncompress and untar the HTML files:
       /usr/lpp/db2_05_00/doc/db2insthtml locale
    

    where locale is the desired locale; for example, locale=en_US for English.

  10. From your Web browser, open the following file URL to view DB2 online manuals:
       file:/usr/lpp/db2_05_00/doc/en_US/html/index.htm
    

To recover some disk space, you may want to remove the compressed tar files. 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.

Install the DB2 Product Messages (Optional)

When you install DB2 using SMIT, DB2 product messages for locales, other than en_US (English - ISO 88591), are not automatically installed.

note

You should install messages on every machine that will function as a database partition server.

To install DB2 product messages in other locales, do the following:

  1. Log in as root.

  2. Mount the DB2 CD-ROM.

  3. Enter the smit install_latest command. The Software Installation and Maintenance menu opens.

  4. Enter the directory for the INPUT device/directory for software. For example, if /cdrom is the CD-ROM mount directory, enter the following as the INPUT device:
       /cdrom/db2
    

  5. Press F4 to display a list of software to install. For a detailed description of the software packages, refer to Appendix D. "Contents of the DB2 Products" for more information.

  6. List the software to be installed using the SOFTWARE to install option.

  7. Select the messages options for the locales you want to install.


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

[ DB2 List of Books | Search the DB2 Books ]