IBM Books

Quick Beginnings for DB2 Connect Enterprise Edition


Installing DB2 Remotely Using SMS

With Microsoft Systems Management Server (SMS), you can install DB2 across a network onto remote Windows NT systems, setting up the installation from a central location.

note

You can also use SMS to remove all DB2 products from a target workstation. Simply follow the instructions below, but when creating the SMS package, select Uninstall DB2 Products instead of selecting the packages to be installed.

To install DB2 using SMS, perform the steps in the following sections:

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 DB2 and its components.

Creating a Username for Installing DB2

Windows 95 and Windows 98
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 G. Naming Rules.

Windows NT
You need to have a username that will be used to install DB2. The username may belong to the Domain or local Administrators group.


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 installations that use a response file, the setup program sets the parameters ADMIN.USERID to DB2ADMIN and ADMIN.PASSWORD to DB2ADMIN. ADMIN.USERID specifies 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 G. Naming Rules.

The setup program checks to see if the username specified for the Administration Server exists. If that username does not exist, the setup program creates it. 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 the DB2 administration tools.

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

SMS Requirements

You must already have SMS installed and configured on your network. Refer to Microsoft's Systems Management Server for Windows NT Administrator's Guide for information on how to:



note

To create an SMS package that copies the required files directly from the CD-ROM, insert the appropriate CD-ROM into the drive and go to Step 2. Create a Response File for Unattended Installation.

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 and Windows 98, 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 interact with the install program, filling in a series of panels to set up and configure DB2. During an unattended installation, you supply the setup and configuration data in a response file you create before running the installation. 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 in:

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 4. Distribute the DB2 Installation Package Using SMS.

Edit the sample response file. 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/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.

    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 32-bit operating systems unattended installation:



    note

    • Install DB2 only on a drive that 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. Import the DB2 Install Files into SMS

To import the DB2 install files into SMS:

  1. Insert the appropriate CD-ROM into the drive.

  2. From the Start button select Programs, then Systems Management Server, and then SMS Administrator. The SMS Administrator window opens.

  3. Open the Package Properties window. The first time you start the SMS Administrator program you will see a dialog box prompting you to open an SMS Window. You can select the Packages option from there. Otherwise, select File->New from the menu bar.

  4. Click on the Import push button. The File Browser opens.

  5. In the File Name field, select the db2.pdf file.

    The server db2.pdf file for DB2 Universal Database is located in the

       x:\db2\common directory (for DB2 Server)
       x:\db2\winnt95\common directory (for DB2 CAE or DB2 SDK)
     
    

    where x: designates your CD-ROM drive

Step 4. Distribute the DB2 Installation Package Using SMS

In this step, you create an SMS package and send it to the SMS client where you want to install DB2.

To create the SMS package:

  1. From the Package Properties window, click on the Workstations push button. The Setup Package For Workstations window opens, showing a list of predefined DB2 installation packages that you can use.

  2. In the Source Directory field, type the name of the parent directory where you put the copied DB2 files (for example, q:\db2prods).

  3. Select the name of the product to install from the Workstation Command Lines list.

  4. If you changed and renamed the sample response file, click on the Properties push button and change the value of the parameter to match the new response file name.

    If you do not specify the language, setup will determine the system language, and launch the appropriate DB2 install for that language. If you want to install a different language, use the /I parameter to specifies the two-character code that represents your language (for example, EN for English). Table 49 lists the code for each available language.

  5. Click on the Close push button.

  6. Click on OK to close the opened windows.

    The Packages window shows the name of the new SMS package.

  7. Specify where to run the package:

    1. Open the Sites and Packages windows.

    2. In the Packages window, select the appropriate package and drag it onto the target client in the Sites window. The Job Details window opens.

    3. Select the Run Workstation Command check box and select the installation package that you want to use for the Run Command on Workstation job. For more information about completing the Job Details window, refer to Microsoft's Systems Management Server for Windows NT Administrator's Guide.

    4. When the job specifications are complete, click on OK to close the opened windows.

    The job is created and sent to the SMS client.

Step 5. Run the Installation on the SMS Client

Now that the remote installation package has been prepared and sent, the SMS client on the target machine can run the installation.

  1. On the SMS client 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. Select Start->Programs -> Systems Management Client and then click on Package Command Manager. The Package Command Manager window opens.

  3. When packages are sent from the SMS server, they are listed in the window. Select the DB2 package, then click on the Execute push button. The installation runs automatically.

  4. Following installation, you must reboot the SMS client before using DB2.
    Note:If you specified REBOOT=yes in your response file the SMS client 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 DB2 software to access remote DB2 servers, go to Chapter 48. "Using the Client Configuration Assistant" .


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

[ DB2 List of Books | Search the DB2 Books ]