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.
![]() |
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:
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.
This section describes usernames required to install DB2 and its components.
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.
![]() |
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.
|
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:
![]() |
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:
|
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:
![]() | 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. |
To make the DB2 install files accessible to the machine where DB2 will be installed:
The command syntax is:
for:
where:
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:
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.
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:
for:
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.
![]() | 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.
![]() |
For more information on:
|
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:
Specifies the destination directory for DB2.
Note: | Check the value for the FILE keyword. FILE specifies where to install the product. If you do not change this value, it defaults to x:\sqllib where x: is the drive on which your operating system is installed. |
Specifies whether to reboot the system following installation.
Specifies the type of install. The options are:
0=Compact
1=Typical (default)
2=Custom
For 0 and 1 (compact and typical), any Custom Keywords (COMP) value will be ignored.
For all types, default communication values will be used where applicable, as follows:
DB2.DB2NBADAPTERS ADMIN.DB2NBADAPTERS DB2.NNAME ADMIN.NNAME
DB2.PORT_NUMBER ADMIN.PORTNUMBER DB2.SVCENAME ADMIN.SVCENAME
DB2.FILESERVER ADMIN.FILESERVER DB2.OBJECTNAME ADMIN.OBJECTNAME DB2.IPX_SOCKET ADMIN.IPX_SOCKET
DB2.TPNAME ADMIN.TPNAME
Note: | You may override these values; however, if the associated protocol has not been detected or specified, the values will not be used. |
Specifies the product you want installed. The options are:
Note: | You can use this parameter more than once. |
Specifies the components you want installed. The installation program automatically installs components that are required for a product, and ignores requested components that are not available.
Note: | Component selections have no effect unless you specify a custom installation. |
Table 44 lists COMP keywords and the components they represent.
Specifies whether or not to automatically start the Control Center each time the system is rebooted.
Note: | By default, the Control Center starts automatically unless this parameter is set to NO. |
Specifies whether or not to automatically start the DB2 instance each time the system is rebooted.
Note: | By default, the DB2 instance starts automatically unless this parameter is set to NO. |
Specifies whether or not to automatically start the Client Configuration Assistant each time the system is rebooted.
Note: | By default, the Client Configuration Assistant starts automatically unless this parameter is set to NO. |
Specifies the username that the DB2 Administration Server will use to log on to the system. If ADMIN.USERID is not activated, the account DB2ADMIN/DB2ADMIN will be created and used, if applicable. See Determining the Username for the Administration Server When Using a Response File:
Specifies the password for the DB2 Administration Server.
![]() |
|
If you are installing directly from the CD-ROM, you must store the renamed response file on another drive.
To import the DB2 install files into SMS:
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
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:
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.
The Packages window shows the name of the new SMS package.
The job is created and sent to 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.
Note: | If you specified REBOOT=yes in your response file the SMS client will reboot automatically. |
![]() | 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. |
![]() | 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" . |