DB2 Getting Started Guide for Windows


Contents

Installation requirements for DB2 servers and IBM data server clients (Windows)
Disk and memory requirements
DB2 installation methods
Installing DB2 servers (Windows)
Editing a response file (Windows)
Applying fix packs
Installation of more tools can be launched from the DB2 installation

Installation requirements for DB2 servers and IBM data server clients (Windows)

To install a DB2(R) product, the following operating system, software, and hardware prerequisites must be met:

Table 1. Windows workstation platforms
Operating System Prerequisites Hardware Notes
Windows(R) XP Professional (32-bit and x64)

Windows Vista Ultimate (32-bit and x64)

Windows Vista Business (32-bit and x64)

Windows Vista Enterprise (32-bit and x64)

Windows XP Service Pack 2 or later

IBM(R) Data Server Provider for .NET client applications and CLR server-side procedures require .NET 1.1 SP1 or .NET 2.0 framework runtime

64-bit IBM data server provider for .NET applications are supported

All Intel(R) and AMD processors capable of running the supported Windows operating systems (32-bit and x64 based systems)
Table 2. Windows server platforms
Operating System Prerequisites Hardware Notes
Windows 2003 Standard Edition (32-bit and x64)

Windows 2003 Enterprise Edition (32-bit and x64)

Windows 2003 Datacenter Edition (32-bit and x64)

Service Pack 1 or later.

R2 is also supported

IBM data server provider for .NET client applications and CLR server-side procedures require .NET 1.1 SP1 or .NET 2.0 framework runtime

64-bit IBM data server provider for .NET applications are supported

All Intel and AMD processors capable of running the supported Windows operating systems

Additional software considerations

Disk and memory requirements

Disk requirements

The disk space required for your product depends on the type of installation you choose and the type of file system you have. The DB2 Setup wizard provides dynamic size estimates based on the components selected during a typical, compact, or custom installation.

Remember to include disk space for required databases, software and communication products.

On Linux(R) and UNIX(R) operating systems, 2 GB of free space in the /tmp directory is recommended.

Memory requirements

At a minimum, a DB2 database system requires 256 MB of RAM. For a system running just a DB2 product and the DB2 GUI tools, a minimum of 512 MB of RAM is required. However, 1 GB of RAM is recommended for improved performance. These requirements do not include any additional memory requirements for other software that is running on your system.

When determining memory requirements, be aware of the following:

DB2 installation methods

This topic provides information about DB2 installation methods. The following table shows the installation methods that are available by operating system.

Table 3. Installation method by operating system.
Installation method Windows LinuxLinux or UNIX
DB2 Setup wizard Yes Yes
Response file installation Yes Yes
db2_install command No Yes
Payload file deployment No Yes

The following list describes DB2 installation methods.

DB2 Setup wizard
The DB2 Setup wizard is a GUI installer available on Linux, UNIX, and Windows operating systemsLinux. The DB2 Setup wizard provides an easy-to-use interface for installing DB2 products and for performing initial setup and configuration tasks.

The DB2 Setup wizard can also create DB2 instances and response files that can be used to duplicate this installation on other machines.

Note:
For non-root installations on Linux and UNIXLinux platforms, only one DB2 instance can exist. The DB2 Setup wizard automatically creates the non-root instance.

On Linux and UNIXLinux platforms, an X server is required to display the DB2 Setup wizard.

Response file installation
A response file is a text file that contains setup and configuration values. The file is read by the DB2 setup program and the installation is performed according to the values that have been specified.

A response file installation is also referred to as a silent installation.

One benefit of this installation method is that you can create a response file without performing an installation. This feature can be useful to capture the options required to install the DB2 product. The response file can be used at a later time to install the DB2 product according to the exact options you specified.

Another advantage to response files is that they provide access to parameters that cannot be set using the DB2 Setup wizard.

On Linux and UNIX operating systems, if you embed the DB2 installation image in your own application, it is possible for your application to receive installation progress information and prompts from the installer in computer-readable form. This behavior is controlled by the INTERACTIVE response file keyword.

There are a number of ways to create a response file:

Using the response file generator (Windows platforms)
On Windows, you can use the response file generator to create a response file that replicates an existing installation. For example, you might install an IBM data server client, fully configure the client, then generate a response file to replicate the installation and configuration of the client to other computers.
Using the DB2 Setup wizard
The DB2 Setup wizard can create a response file based on the selections you make as you proceed through the DB2 Setup wizard. Your selections are recorded in a response file that you can save to a location on your system. If you select a partitioned database installation, two response files will be generated, one for the instance-owning computer and one for participating computers.

You can export a client or server profile with the db2cfexp command to save your client or server configuration, and then easily import the profile using the db2cfimp command. A client or server profile exported with the db2cfexp command can also be imported during a response file installation using the CLIENT_IMPORT_PROFILE keyword.

You should export the client or server profile after performing the installation and cataloging any data sources.

Customizing the sample response files that are provided for each DB2 product
An alternative to using the response file generator or the DB2 Setup wizard to create a response file is to manually modify a sample response file. Sample response files are provided on the DB2 product DVD. The sample response files provide details about all the valid keywords for each product.
db2_install command (Linux and UNIX platforms only)
The db2_install command installs all components for the DB2 product you specify with the English interface support. You can select additional languages to support with the -L parameter. You cannot select or deselect components.

Although the db2_install command installs all components for the DB2 product you specify, it does not perform user and group creation, instance creation, or configuration. This method of installation might be preferred in cases where configuration is to be done after installation. If you would rather configure your DB2 product while installing it, consider using the DB2 Setup wizard.

On Linux and UNIX operating systems, if you embed the DB2 installation image in your own application, it is possible for your application to receive installation progress information and prompts from the installer in computer-readable form.

This installation methods requires manual configuration after the product files are deployed.

Payload file deployment (Linux and UNIX only)
This method is an advanced installation method that is not recommended for most users. It requires the user to physically install payload files. A payload file is a compressed tarball that contains all of the files and metadata for an installable component.

This installation methods requires manual configuration after the product files are deployed.

Note:
DB2 product installations are no longer operating system packages on Linux and UNIX platforms. As a result, you can no longer use operating system commands for installation. Any existing scripts that you use to interface and query with DB2 installations will need to change.

Installing DB2 servers (Windows)

This task describes how to start the DB2 Setup wizard on Windows. You will use the DB2 Setup wizard to define your installation and install your DB2 product on your system.

Prerequisites
Before you start the DB2 Setup wizard:
Restrictions

To start the DB2 Setup wizard:

  1. Log on to the system with the local Administrator account that you have defined for the DB2 installation.
  2. If you the DB2 product DVD, insert it into the drive. If enabled, the auto-run feature automatically starts the DB2 Setup Launchpad. If the auto-run does not work, use Windows Explorer to browse the DB2 product DVD and double-click on the setup icon to start the DB2 Setup Launchpad.
  3. If you downloaded the DB2 product from passport advantage, run the executable file to extract the DB2 product installation files. Use Windows Explorer to browse the DB2 installation files and double-click on the setup icon to start the DB2 Setup Launchpad.
  4. From the DB2 Setup Launchpad, you can view installation prerequisites and the release notes, or you can proceed directly to the installation. You may want to review the installation prerequisites and release notes for late-breaking information.
  5. Click Install a Product and the Install a Product window will display the products available for installation.

    If you have no existing DB2 products installed on your computer, launch the installation by clicking Install New. Proceed through the installation following the DB2 Setup wizard's prompts.

    If you have at least one existing DB2 product installed on your computer, you can:

  6. The DB2 Setup wizard will determine the system language, and launch the setup program for that language. Online help is available to guide you through the remaining steps. To invoke the online help, click Help or press F1. You can click Cancel at any time to end the installation.

Your DB2 product will be installed, by default, in the <Program Files>\IBM\sqllib directory, where <Program Files> represents the location of the Program Files directory.

If you are installing on a system where this directory is already being used, the DB2 product installation path will have _xx added to it, where _xx are digits, starting at 01 and increasing depending on how many DB2 copies you have installed.

You can also specify your own DB2 product installation path.

For information on errors encountered during installation, review the installation log file located in the My Documents\DB2LOG\ directory. The log file uses the following format: DB2-ProductAbrrev-DateTime.log, for example, DB2-ESE-Tue Apr 04 17_04_45 2006.log.

If you want your DB2 product to have access to DB2 documentation either on your local computer or on another computer on your network, then you must install the DB2 Information Center. The DB2 Information Center contains documentation for the DB2 database system and DB2 related products. By default, DB2 information will be accessed from the web if the DB2 Information Center is not locally installed.

DB2 Express and DB2 Workgroup Server Edition memory limits
If you are installing DB2 Express Edition, the maximum allowed memory for the instance is 4GB.

If you are installing DB2 Workgroup Server Edition, the maximum allowed memory for the instance is 16GB.

The amount of memory allocated to the instance is determined by the INSTANCE_MEMORY database manager configuration parameter.

Important notes when migrating from Version 9.1:
  • If the memory configuration for your Version 9.1 DB2 product exceeds the allowed limit, the DB2 product might not start after migrating to the current version.
  • The self tuning memory manager will not increase your overall instance memory limit beyond the license limits.

Editing a response file (Windows)

After creating a response file, you might need to make changes to the response file to activate or deactivate keywords.

One of the following scenarios should apply:

You should 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.

To edit a response file:

  1. If you are using the sample response file, make a copy of it and open it in a text editor. If you are using the response file created by the DB2 Setup wizard, open it in a text editor.
  2. Customize the response file.

    To activate an item in the response file, remove the asterisk (*) to the left of the keyword. Then, replace the current setting to the right of the value with the new setting. The possible settings are listed to the right of the equal sign.

    Some product response files have mandatory keywords that you must provide values for. The mandatory keywords are documented in the comments of each response file.

    Keywords that are unique to installation are only specified in a response file during a response file installation.

  3. Save the file on the shared network drive so that it is available to the installation server. 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 product DVD, you should store the renamed response file on another drive.

Applying fix packs

It is recommended that you keep your DB2 environment running at the latest fix pack level to ensure problem-free operation. To install a fix pack successfully, perform all of the necessary pre-installation and post-installation tasks.

A DB2 fix pack contains updates and fixes for problems (Authorized Program Analysis Reports, or "APARs") found during testing at IBM, as well as fixes for problems reported by customers. Each fix pack contains an APARLIST.TXT file, which describes the fixes it contains.

Fix packs are cumulative. This means that the latest fix pack for any given version of DB2 contains all of the updates from previous fix packs for the same version of DB2.

The fix pack images available are:

Restrictions

For non-root installations on Linux or UNIX, root-based features (such as High Availability and operating system-based authentication) can be enabled using the db2rfe command. If root-based features were enabled after installing your DB2 product, you must rerun the db2rfe command each time a fix pack is applied in order to re-enable those features. For details, see the non-root related links below.

On Linux or UNIX operating systems, if national languages have been installed, you also require a separate national language fix pack. The national language fix pack can not be installed alone. A universal or product-specific fix pack must be applied at the same time and they must both be at the same fix pack level. For example, if you are applying a universal fix pack to non-English DB2 database products on Linux or UNIX, you must apply both the universal fix pack and the national language fix pack to update the DB2 database products.

If you have multiple DB2 copies on the same system, those copies can be at different version and fix pack levels. If you want to apply a fix pack to one or more DB2 copies, you must install the fix pack on those DB2 copies one by one.

To install a fix pack:

  1. Access and download the latest DB2 fix pack by selecting the link for fix pack downloads from the DB2 Support Web site at http://www.ibm.com/software/data/db2/udb/support.html.
  2. Check fix pack prerequisites, and perform the necessary tasks prior to installing a fix pack. If you already have DB2 database products installed, you must also stop various DB2 processes. See the fix pack Readme for details.
  3. Choose a fix pack installation method and install the fix pack.

Check the log file for any post-installation steps, or error messages and recommended actions.

Installation of more tools can be launched from the DB2 installation

You can choose to install the data server developer tool or the data server administrator tool during a DB2 server product installation.

If you choose to install the data server developer tool or the data server administrator tool during a DB2 server installation, the DB2 Setup wizard now launches a standalone installation program after it installs your DB2 server product. You can also now install the data server developer tool or the data server administrator tool from the DB2 Setup launchpad without installing a DB2 server product.

The data server developer tool and the data server administrator tool have their own standalone installation program that you can launch independently from a DB2 installation. The DB2 installation program does not support the installation of these tool using DB2 response files.

To install the data server developer tool or the data server administrator tool in silent mode, use the non-interactive installation methods provided by the standalone installation program.