To install a DB2(R) product, the following operating system, software, and hardware prerequisites must be met:
| 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) |
| 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 |
The Microsoft LDAP client is included with the operating system for Windows XP, and Windows Server 2003.
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.
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:
For DB2 server products, the self-tuning memory feature simplifies the task of memory configuration by automatically setting values for several memory configuration parameters. When enabled, the memory tuner dynamically distributes available memory resources among several memory consumers including sort, the package cache, the lock list and buffer pools.
This topic provides information about DB2 installation methods. The following table shows the installation methods that are available 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.
The DB2 Setup wizard can also create DB2 instances and response files that can be used to duplicate this installation on other machines.
On Linux and UNIXLinux platforms, an X server is required to display the DB2 Setup wizard.
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:
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.
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.
This installation methods requires manual configuration after the product files are deployed.
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.
To start the DB2 Setup wizard:
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:
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.
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.
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:
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.
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:
The single server image contains the new and updated code required for all DB2 server products and the IBM Data Server Client. If more than one DB2 server product is installed in a single location, the DB2 server fix pack applies maintenance code updates to all the installed DB2 server products. The Data Server Client fix pack is contained within the one DB2 server fix pack (namely the fix pack that can service any one of the following server products: Enterprise Server Edition, Workgroup Server Edition, Express Edition, Personal Edition, Connect Enterprise Edition, Connect Application Server Edition, Connect Unlimited Edition for zSeries(R), and Connect Unlimited Edition for i5/OS(R)). You can use the DB2 server fix pack to upgrade a Data Server Client.
A single server image can also be used to install any of the DB2 database server products, at a particular fix pack level, with a DB2 try and buy license by default.
Use this fix pack only if you only have non-server database products or add-on products installed. For example, IBM Data Server Runtime Client or Query Patroller.
Do not use this type of fix pack if the installed DB2 products are only DB2 server products or a Data Server Client. Instead, use the single server image fix pack.
For Windows platforms, if you have more than one DB2 database product (which includes at least one product that is not a Data Server Client or a DB2 server) installed in a single DB2 copy, you must download and uncompress all of the corresponding product-specific fix packs before starting the fix pack installation process.
The universal fix pack services installations where more than one DB2 database product has been installed.
The universal fix pack is not needed if the installed DB2 products are only DB2 server products or a Data Server Client. In this case, the single server image fix pack should used.
For details on the override option, see the installFixPack command.
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:
Check the log file for any post-installation steps, or error messages and recommended actions.
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.