IBM Books

Quick Beginnings


Installing DB2 Products from a Code Server Hard Disk or CD-ROM

To install DB2 products for OS/2, from a code server hard disk or CD-ROM, on local or remote workstations, perform the steps in the following sections:



note

You can also use the following procedure to remove all DB2 products from a target workstation. Simply follow the instructions below, but when editing the command file, specify D (Delete) instead of I (Install).

Step 1. Make DB2 Files Available for Installation

In this section, you make the DB2 install files accessible to the client machine where DB2 will be installed.

If performing a remote installation, you must enable your network clients to access the DB2 install files.

Grant shared access authority to the directory that you just created, or to the CD-ROM drive if installing directly from CD-ROM.

Step 2. Create a Response File for Unattended Installation

During an interactive installation, you provide the information needed to install DB2 and configure its environment. During an unattended installation, this information is provided as keywords and values in a response file. DB2's install package includes a ready-to-use sample response file, with default entries already in place.

note

If you intend to use the sample response file provided, without making any changes to its values, you can skip this step and go to "Step 3. Run the CMD File from the Remote Workstation".

To edit the sample response file:

  1. Find the correct sample response files for the product you want to install.

    If installing directly from the CD-ROM, substitute x:\os2 for e:\clients in the directory names below.

  2. The response file contains:

    note

    For more information on:


  3. To activate an item in the response file, remove the asterisk (*) to the left of the keyword/registry value, erase the current setting to the right of the value and type in a new setting. The possible settings are listed to the right of the current setting.

    An example section of a response file appears below:

    ...
    FILE               = c:\sqllib
    COMP               = Client Application Enabler
    ...
    *DB2ACCOUNT        = BLANK or char(199)
    *DB2BQTIME         = BLANK or 1 - MAX
    ...
    

    Keywords unique to installation are parameters that are only specified in a response file during an unattended installation. The following is a list of keywords unique to OS/2 and Windows 3.1 unattended installation:

  4. Exit the file. If you have made any changes, save the file under a new file name to preserve the original sample response file.

    If you are installing directly from the CD-ROM, you must store the renamed response file on another drive.

Step 3. Run the CMD File from the Remote Workstation

A command (CMD) file contains the commands which will start the installation program. You must edit this file before running the installation.

  1. Find and open the correct CMD file.

    If installing directly from the CD-ROM, substitute x:\os2 for e:\clients in the directory names below.

  2. Edit the command in the file, to fill in the information needed for the installation.
    * Figure SQLRWUNA not displayed.

    The following is an example of a complete command in the sample command files:

       win e:\ins\install\install /A:I /X
          /P:"IBM Client Application Enabler for Windows 3.1 V5
          /R:e:\ins\db2caew.rsp /L1:d:\L1 /L2:\L2
    

    where:

    /d:\path
    Specifies the location of the install files. If installing from the code server's hard drive, specify the directory created in Step 1.

    /R
    Specifies the fully qualified response file name. If you changed and renamed the sample response file provided, make sure this parameter matches the new name.

    /A
    Specifies the action to be performed.

    I
    Specifies install.
    Note:If you want to remove all DB2 products from a target workstation, specify D (Delete) instead of I (Install).

    /X
    Specifies that the installation will run in unattended mode.

    /P
    Specifies the name of the product you want to install.

    /L1
    Specifies the fully qualified log file name, where setup information and any errors occurring during setup are logged.

    /L2
    Specifies the fully qualified history log name, where all the files processed by the installation program are listed.

  3. Save and exit the CMD file.

    If you are installing directly from the CD-ROM, you must rename the CMD file, store it on another drive, and use that file name in the next step.

  4. Start the installation by typing the CMD file's name on the command line.

  5. When installation is complete, check the error and history logs for any errors or problems.


note

To configure your DB2 Connect workstation to access remote hosts, go to the Chapter 11. "Configuring Communications to Host and AS/400 Databases Manually" manual. To configure your client to access remote DB2 Connect workstations or DB2 servers, go to Chapter 32. "Configuring Client to DB2 Connect Server Communications Using the CCA".


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

[ DB2 List of Books | Search the DB2 Books ]