IBM Books

Quick Beginnings


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

To install DB2 products for Windows 95 or Windows NT, from a code server hard disk or CD-ROM to local or remote workstations, perform the steps in the following sections:

You can also use this procedure to perform an interactive remote install instead of an unattended remote one. Follow the instructions below.

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 Usernames for DB2 Installation and Operation

This section describes usernames required to install the DB2 product and its components.

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 D. "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 D. "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

On servers, this username will be removed from the system when the installation is complete, unless it will be used by the Administration Server. See "Determining the Username for the Administration Server When Using a Response File:" for more information.

On clients, this username will be removed from the system when the installation is complete.

Determining the Username for the Administration Server When Using a Response File:
Note:This section only applies to Windows NT.

During installation, you will be asked to provide a username and password that will be used by the Administration Server to log on to the system and to start itself as a service.

By default, for installs using a response file, the setup program will set the parameters ADMIN.USERID to DB2ADMIN and ADMIN.PASSWORD to DB2ADMIN. ADMIN.USERID is used to specify the username for Windows NT. You can accept these default values, or provide your own. If you provide your own ADMIN.USERID, you must ensure that it is eight characters or less, and complies with DB2's naming rules. For more information, see Appendix D. "Naming Rules".

The setup program will check to see if the username specified for the Administration Server exists; if it does not, it will be created. If it does exist, the setup program will:



note

If you use the default username db2admin, and did not change the default password for this username, you should change this password immediately following the installation.

When the setup program creates the db2admin username, it also makes it a member of the Administrators group. Since its password is well known, you should do the following:

  1. Change the password for db2admin, using the User Manager function of Administration Tools.

  2. Change the password for the DB2-DB2DAS00 service to match the new password that you specified for the db2admin username.

Step 1. Make DB2 Files Available for Installation

To make the DB2 install files accessible to the 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 to the directory that you just created, or to the CD-ROM drive.

To set up a share:

  1. Click on Start and select Programs->Windows Explorer.

  2. Select the directory that you want to share, for example q:\db2prods.

  3. Select Files->Properties from the menu bar. The properties window for the directory will open. Click on the Sharing tab.

  4. Select the Shared As radio button.

  5. In the Share Name field type a share name. For example, type db2nt.

  6. To specify read access for everyone on Windows NT:

    1. Select the Permissions push button. The Access Through Share Permissions window opens.

    2. In the Name box, make sure that Everyone is selected.

    3. In the Type of Access box, select Read.

    4. Click on OK.

    On Windows 95, you do not need to specify type of access when you set up a share. By default, everyone is allowed read access.

In our example scenario, q:\db2prods uses a share name of db2nt. We will use this value in the examples that follow.

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 number of ready-to-use sample response files, with default entries already in place.

The sample response files are located

where x is the letter that designates the CD-ROM drive. There is a different response file for each product on the CD, so that the user has a valid list of parameters for each product.

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 Setup from the Workstation".

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

  1. Open the sample response file for the package you want to install.

  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
    REBOOT             = No
    *COMP              = Control Center
    ...
    

    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 installation for Windows 95 and Windows NT unattended installation:



    note

    • Install DB2 products only on a drive which is local to the target workstation. Installing on a non-local drive can cause performance and availability problems.
    • By default, the name of the response file will be used to determine the products to be installed. You can override this setting by providing one or more PROD parameter values in the response file.

  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 Setup from the Workstation

To perform the installation:

  1. At the workstation where DB2 will be installed, logon as a username that meets the requirements for installing DB2. See "Creating Usernames for DB2 Installation and Operation" for more information.

  2. If performing a remote install, connect to the shared directory of the code server hard disk, or to the CD-ROM drive, using a command similar to the following:
       net use e: \\machine\directory
    

    where:

    For example, type:

       net use e: \\codeserv\db2nt
    

    Based on the example set up in previous steps, this points to q:\db2prods on the code server.

  3. Run the setup program:

    1. Click on Start and select Run.

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

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

         e:\setup /U d:\db2\common\db2setup.rsp /L db2log.log /I language
      

      where:

      /U
      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.

      /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.

      /I
      Specifies the two-character country code that represents your language (for example, EN for English). Table 47 lists the code for each available language.

      If you do not specify the language, setup will determine the system language, and launch the appropriate DB2 install for that language.

    3. Click on OK to start the setup program.

    4. The installation proceeds without further action on your part.

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

    * Figure hint not displayed.

    For information on errors encountered during product installation, see the db2.log file. The db2.log file stores general information and error messages resulting from installation and uninstall activities. By default, the db2.log is located in the x:\db2log directory; where x: is the drive on which your operating system is installed.

  5. Following installation, you must reboot the workstation before using DB2.
    Note:If you specified REBOOT=yes in your response file, the workstation will reboot automatically.


    note

    If you are installing a server and used the default username DB2ADMIN, remember to change the default password for this username. You should change this password immediately following installation.


note

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


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

[ DB2 List of Books | Search the DB2 Books ]