IBM Books

Installing and Configuring DB2 Clients


Installing Thin Clients using the Code Server

To set up a code server and install one or more thin clients which will access it, perform the steps in the following sections:

If you plan to install multiple thin clients in a row, perform all the steps for the first thin client, then perform only "Step 3. Make Thin Client Setup Program Accessible to the Target Workstation" and "Step 4. Install Thin Client on the Target Workstation" for each subsequent thin client on that code server.

Before You Begin

Read and perform the steps in this section before you begin the installation to ensure that you have the required items and information you will need.

Creating a Username for Installing DB2 Products

Windows 95
The username must be a valid DB2 username.

A valid DB2 username is eight characters or less, and complies with DB2's naming rules. For more information on DB2's naming rules, see Appendix C. "Naming Rules".

Windows NT
You need to have a username that will be used to install DB2. The username must belong to the Administrators group, and also be a valid DB2 username or have the "Act as part of the operating system" advanced user right.

A valid DB2 username is eight characters or less, and complies with DB2's naming rules. For more information on DB2's naming rules, see Appendix C. "Naming Rules".

If this username does not comply with DB2's naming rules, but has the "Act as part of the operating system" advanced user right, the setup program will create the username DB2ADMIN to perform the installation.

Note:The above requirements apply to both the codeserver and the target thin client workstation.


note

This username will be removed from the system when the installation is complete.

Thin Client Security Considerations

The Thin Client Installation program performs three types of actions that are subject to security restrictions:

Windows NT Considerations:

Windows 95 Considerations:

Step 1. Install DB2 Client Application Enabler on the Code Server

See Chapter 4. "Installing DB2 Clients on Windows 95 or Windows NT Workstations" for complete instructions on installing DB2 Client Application Enabler on the code server machine. For the thin client feature, keep the following considerations in mind:

Step 2. Create a Response File for Thin Client Installation

When you have done "Step 1. Install DB2 Client Application Enabler on the Code Server", the DB2 Client Application Enabler on the code server will contain the directory c:\codesrv\sqllib\thnsetup which will contain all files needed for the thin client setup, including the sample response file.

During an interactive installation, you provide the information needed to install DB2 and configure its environment. During an unattended installation, this information is provided in the form of keywords and values in a response file. DB2 Client Application Enabler installed on the code server includes a ready-to-use sample response file, db2thin.rsp, with default entries already in place. This information will be applied when you install a thin client.



note

You can create a different response file, and therefore a different configuration, for each thin client installation. You can also edit and resave the response file to create one or two or more "standard" configurations, using the same ones as templates for multiple thin client installations.

Edit the sample response file using your favorite editor. For example, you can use Notepad or WordPad.

  1. The sample response file, db2thin.rsp, is located in the c:\codesrv\sqllib\thnsetup directory on the code server in our example.

  2. The response file contains:

    note

    For more information on


    To activate an item in the response file, remove the asterisk (*) to the left of the keyword/environment variable, 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.

  3. You can edit the keywords unique to installation contained within the response file. These are as follows:
    *REBOOT            = Yes, No
    *TYPE              = 0,1,2 (0=compact,1=typical,2=custom)
    *COMP              = Graphical Tools
    *COMP              = Client Configuration Assistant
    *COMP              = Control Center
    *COMP              = Visual Explain
    *COMP              = Performance Monitor
    *COMP              = IBM DB2 ODBC Driver
    *COMP              = Installing and Configuring DB2 Clients
    *COMP              = Messages Reference
    *USERNAME          = (userid that the security service will run under)
    *PASSWORD          = (password for the security service id)
     
    


    note

    You will need to reboot the target workstation after installing. To have this done automatically, activate the REBOOT keyword.

    The TYPE keyword specifies the type of install that you want.



    note

    On Windows NT, you should also specify a value for both USERNAME and, if applicable, PASSWORD. Specify a username that belongs to the local Administrator's group, is eight characters or less, and complies with DB2's naming rules.

    If the username that you specify does not meet DB2's naming rules, but has the "Act as part of the operating system" advanced user right, the setup program will create a temporary username (that belongs to the Administrators group) called DB2ADMIN, with a password of DB2ADMIN. The setup program will use this username to perform the installation.

  4. Edit the environment variables contained within the response file.

    The following is a sample section of the environment variables contained within a response file:

    *DB2BQTIME         = 1 -
    *DB2BQTRY          = 0 -
    *DB2CHKPTR         = ON, OFF
    *DB2CODEPAGE       =
    *DB2DBDFT          =
    DB2INSTPROF        = C:\CFG
    *DB2IQTIME         = 1 -
    *DB2OPTIONS        =
    ...
    


    note

    The only environment variable setting that must be specified within the response file is DB2INSTPROF. To set up a separate client configuration for each thin client, set the DB2INSTPROF value to a directory on the thin client workstation. To maintain one client configuration on the code server, set DB2INSTPROF to a directory on the code server workstation.

  5. Edit the configuration parameters contained within the response file.

    The following is a sample section of the configuration parameters contained within a response file:

    *DB2.DIAGLEVEL      = 0 - 4
    *DB2.DIAGPATH       =
    *DB2.DIR_CACHE      = YES, NO
    *DB2.DIR_OBJNAME    =
    *DB2.DIR_PATH_NAME  =
    *DB2.DISCOVER       = DISABLE, KNOWN or SEARCH
    ...
    

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

Step 3. Make Thin Client Setup Program Accessible to the Target Workstation

This step gives the target workstation access to the thin client setup program, so that the thin client install can run. From the target workstation, perform one of the following:

Step 4. Install Thin Client on the Target Workstation

This step installs the thin client code on the target workstation, and sets up the links to the code server.
Note:Make sure that the thin client setup program is available to the client machine. You can accomplish this by performing either of the methods detailed in "Step 3. Make Thin Client Setup Program Accessible to the Target Workstation".

  1. At the workstation where the thin client code will be installed, logon as a username that meets the requirements for installing DB2. See "Creating a Username for Installing DB2 Products" for more information.

  2. Run the setup program:

    1. Click on Start, and select Run.

    2. In the Open field, type the path to the setup program. The path accepts the following command line arguments:
      * Figure SQLRTHIN not displayed.

      Specify the fully qualified path to invoke the program. For example:

         x:\sqllib\thnsetup\thnsetup /P x:\sqllib
            /U x:\sqllib\thnsetup\db2thin.rsp /L c:\logdir\db2log.txt
            /M \\db2server /S db2path
       
      

      where:

      /P
      Specifies the path to the location where the client is installed on the code server. If you specify the sharename, then the install program will implicitly perform a NET USE for you. It will take the drive letter specified on this argument, the machine specified, and the sharename, and issue the NET USE.

      /U
      Specifies the fully qualified response file name.

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

      If you do not specify the log file's name, DB2 names it db2.log, and stores it in a directory called db2log, on the drive on which your operating system is installed.

      /M
      Specifies the machine name of the code server.

      /S
      Specifies the share name of the code server drive/directory where DB2 Client Application Enabler is installed.

      If this share requires a username and/or password, specify the share name as: sharename,userid,password.

      If there is no password, type: sharename,userid.

      If a username is not required, type: sharename only.

    3. Click on OK to start the setup program.

  3. Check the messages in the log file when the installation finishes.

  4. After the installation, the workstation must be rebooted before you use the thin client.


note

To configure the thin clients to access servers, go to Chapter 9. "Configuring Client to DB2 Server Communications Using the CCA".


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

[ DB2 List of Books | Search the DB2 Books ]