Installation, migration, upgrade, and configuration information

Hardware and software requirements

Hardware and software requirements can be viewed at the following Web site:

http://www.ibm.com/software/data/db2/udb/sysreqs.html

Installation notes

On UNIX and Linux platforms, these Installation notes apply to installation of new products only. To apply a FixPak, see the FixPak's Readme.

On Windows platforms, these Installation notes apply to both the installation of new products and the application of FixPaks. If you are applying a FixPak, these Installation notes should be used in conjunction with the FixPak Readme.

Review this entire section before installing DB2 UDB.

3 3 3

Directory path cannot contain blanks (Linux and UNIX)

3

If the db2setup program is run from a directory whose path includes a blank, 3the setup will fail with the following error:

3
<file>: not found  

Place the installable image in a directory whose path does not include 3spaces.

2 2 2

2JDK levels for DB2 UDB (Linux on IA64 and Linux on PowerPC)2

2When you install version 8.2 of DB2 Universal Database on Linux, 2the RPM-based installation attempts to install the IBM Java RPM (IBMJava2-SDK-1.4.1.-2.0.i386.rpm).

2 2
Note:
2
DB2 UDB on Linux IA64 only supports Java 1.3.1. For the most recent 2Linux SDK information, see the IBM developer kit for Linux Web page at http://www.ibm.com/developerworks/java/jdk/linux/tested.html.

2If a later level of the RPM (such as IBMJava2-SDK-1.5.0.-2.0.i386.rpm) 2already exists, the back-level RPM is not installed.

2However, in this case, the installation leaves the JDK_PATH database 2configuration parameter pointing to the Java 1.4 path, /opt/IBMJava2-14/. As a result, none of the Java-dependant functionality, 2including the installation of the DB2 Tools Catalog, will work.

Prerequisite

You must run the following command as the instance owner.

Procedure

7

7
    7
  1. To point DB2 UDB to the correct IBM Developer Kit, run the following command: 7
    db2 update dbm cfg using JDK_PATH path
    where path the 1.5 install path, such as /opt/IBMJava2-15.
7 7 7

Uncompressing installation images (Linux and UNIX)

7

Some installation images are delivered in compressed or gzipped format 7on the product CDs. Before you can install DB2 UDB from these formats, you 7need to copy the installation image to a temporary directory and uncompress 7or gunzip the installation image.

7

The compressed or gzipped installation images on the CD have the file name PRODUCT.tar.Z or PRODUCT.tar.gz, where PRODUCT is the DB2 product you are 7installing. For example, if you are installing DB2 Enterprise Server Edition, 7the compressed image on the relevant CD might be called either ese.tar.Z or ese.tar.gz.

7

In addition to the software disk requirements, you must have a filesystem 7with 2 gigabytes of free space to contain the tar.Z or tar.gz file and the 7uncompressed installation image.

7
7Procedure 7

To uncompress the installation images, perform the following steps:

7
    7
  1. Copy the compressed or gzipped installation image to a temporary file 7system containing at least 2 gigabytes of free space.
  2. 7
  3. Change to the directory where you copied the installation image by entering cd /TMP, where /TMP represents 7the directory where you copied the compressed image.
  4. 7
  5. If the product has the *.tar.Z extension, enter the following command 7to uncompress the installation image: 7
       zcat PRODUCT.tar.Z | tar -xvf -
    where PRODUCT is the DB2 product 7you are installing.
  6. 7
  7. If the product has the *.tar.gz extension, enter the following command 7to uncompress the installation image: 7
       gunzip -c PRODUCT.tar.gz | tar -xvf - 
    where PRODUCT is the DB2 product 7you are installing. 7 7
    Notes:
    7
      7
    1. gunzip is part of the AIX 5L(TM) default installation setup. If you do not 7have gunzip, install the rpm.rte fileset from the AIX 5L installation media. 7The rpm.rte fileset contains gunzip.
    2. 7
    3. You can also download gzip for AIX 5L, which includes gunzip, from http://www.ibm.com/servers/aix/products/aixos/linux/rpmgroups.html.
    4. 7
  8. 7
  9. To perform the installation using the DB2 Setup wizard, see the Installing DB2 UDB from installation images (Linux and UNIX) section.
2 2 2

DB2 UDB does not allow non-English installation path (Windows)

2

During DB2 UDB installation on Windows, you can enter the directory path 2for DB2 UDB. However, the directory path name you enter can contain only English 2characters.

6 6 6

Downloading and uncompressing FixPaks for multiple products (Windows)

6

Starting with DB2 Version 8 for Windows Fixpak 3, IBM is providing product-specific 6FixPaks instead of one general FixPak. This change affects only DB2 Version 68 products on Windows platforms.

6

For example, if you have DB2 UDB Enterprise Server Edition Version 8 and 6DB2 Spatial Extender Version 8 installed on the same Windows system, you must 6download the DB2 UDB Enterprise Server Edition FixPak image and the Spatial 6Extender FixPak image. You must uncompress each image under a common parent 6directory. All images must be uncompressed for the GUI installation or silent 6installation to proceed.

6

For complete FixPak installation instructions, see the latest DB2 UDB FixPak 6Readme.

7 7 7

Installing DB2 UDB from installation images (Linux and UNIX)

7
7Prerequisites 7

Before you start the DB2 Setup wizard:

7
7
7Procedure
7

If the installation images are delivered in compressed or gzipped format 7on the product CDs, you must uncompress or gunzip the installation image before 7you can install DB2 UDB. See the Uncompressing installation 7images (Linux and UNIX) section for details.

7

To perform the installation using the DB2 Setup wizard, enter the following 7command:

7
    ./PRODUCT/db2setup

where PRODUCT is the DB2 product you are installing. For 7example, if you are installing DB2 Enterprise Server Edition, enter ./ese/db2setup.

7

The installation Launchpad opens. Proceed through the installation panels.

7 7 7

Installing DB2 UDB from installation images (Windows)

7
7Prerequisites 7

Before you start the DB2 Setup wizard:

7
7

To perform the installation using the DB2 Setup wizard, insert the CD into 7the drive. If enabled, the auto-run feature automatically starts the DB2 Setup 7launchpad.

7
7Procedure 7

If the auto-run feature is not enabled, you can start the DB2 Setup wizard 7manually:

7
    7
  1. Click Start and select the Run option.
  2. 7
  3. In the Open field, enter the following 7 command: 7
     x:\setup /i language
    where: 7
      7
    • x: represents the CD drive
    • 7
    • language is the territory identifier for your language (for example, 7 EN for English).
    The /i language parameter is optional. If it is not specified, 7the DB2 Setup wizard runs in the same language as your operating system.
  4. 7
  5. Click OK. The DB2 Setup launchpad opens.
7

Proceed through the installation panels.

7 7 7

Disk space required for a DB2 UDB response file installation

7

When you install a DB2 UDB product using a response file, 1 MB of free 7disk space is required in the etc directory.

7

If you receive error message DBI1191I during a response file installation, 7the message indicates there is not enough free disk space in the root directory. 7This message is misleading. Check the amount of free disk space in the etc directory. A minimum of 1 MB of free disk space 7is required before re-running the installation.

6 6 6

Restrictions to adding products using the db2setup command (Linux, 6UNIX)

6

Once a DB2 product has been installed, additional DB2 products can be 6added. If you use the db2setup command to add 6products the following recommendations and restrictions apply.

6
6Recommendations 6

Both the installed product and the product being added should be at the 6same code level. For example, DB2 UDB ESE Server Version 8 FixPak 5 is already 6installed and you want to add the DB2 Information Integrator product. In this 6case, DB2 Information Integrator should also be at the Version 8 FixPak 5 6level.

6
6Restrictions 6

6
6

The following table summarizes the db2setup combinations:

6 666666666666666666666666666
Table 7. db2setup combinations
DB2 fixpak level Additional product fixpak 6level Is this combination permitted?
Version 8 FixPak 3 Version 8 FixPak 3 Yes. This is recommended.
Version 8 FixPak 3 Version 8 GA Yes, but Version 8 FixPak 3 must be reapplied. See the 6appropriate FixPak Readme for instructions to reapply the fixpak by going 6to the DB2 Support Web site.
Version 8 FixPak 3 Version 8 FixPak 5 No. DB2 must first be brought to the higher fix pack 6level (in this example, Version 8 FixPak 5) before installing the additional 6product. See the appropriate FixPak Readme for instructions to install the 6required Version 8 FixPak by going to the DB2 Support Web site.

The DB2 Support Web site address is http://www.ibm.com/software/data/db2/udb/winos2unix/support

DB2 Web Tools

The application servers supported by DB2 Web Tools for the following languages are required to be compliant with the Servlet 2.3 specification:

6 6 6

Binding Query Patroller packages after applying fixpaks

6

If you have Query Patroller installed, after applying a fixpak and performing 6all post-fixpak installation tasks, perform the following steps:

6
    6
  1. Log in as a user with DBADM authority.
  2. 6
  3. Change to the proper directory: 6where INSTPATH is the DB2 UDB instance path.
  4. 6
  5. Run the following commands: 6
      db2 connect to dbname
    6  db2 bind @qpserver.lst blocking all grant public
6 6 6

Query Patroller installation at FixPak 3 level or later

6

Query Patroller is a query management system used to control the flow of 6queries against your DB2 UDB database. In DB2 UDB Version 8.1.2, DB2 Query 6Patroller became a stand-alone product. It is no longer a component of the 6DB2 Warehouse Manager.

6

If you have DB2 UDB Version 8 FixPak 3 or later installed and you install 6the DB2 Query Patroller(TM) base or GA version, you must reapply DB2 UDB FixPak 63 or later. Otherwise, the Query Patroller changes are not applied to the 6DB2 UDB FixPak level you are at.

6

If you are installing the Query Patroller server, you must also update 6the DB2 UDB instances after reapplying the DB2 UDB FixPak level. The instances 6must be restarted after they are updated.

2 2 2

Query Patroller server installation

2

When you are installing Query Patroller server note the following:

27 7 7

Defining a new database partition group in Query Patroller

7

When you define a new table space during Query Patroller installation in 7a partitioned environment, you can select an existing database partition 7group. Alternatively, you can set up a new database partition group for the 7new table space. If you choose to set up a new database partition group, 7you can select only one database partition from the list box on the install 7panel for that new database partition group. If you want to add additional 7partitions into the new database partition group, you must add them manually 7after the installation is complete.

2 2 2

Query Patroller client tools installation

2

DB2 clients do not require the Query Patroller client tools to be installed 2on them in order to submit queries to the Query Patroller server.

7 7 7

Recreating beta versions of spatial databases

7

If you created spatial databases in a beta version of DB2 Geodetic Extender 7Version 8.2, you must recreate them in the official version of Geodetic Extender 7Version 8.2.

Installing MDAC files for national language versions of DB2 UDB

If you do not install the national language version of Microsoft Data Access Components (MDAC) 2.7 prior to installing the national language version of DB2 UDB Version 8.2, DB2 Universal Database installs English MDAC files by default. This installation causes the Windows ODBC Data Source Administrator panels to appear untranslated if your operating system is in a language other than English. To fix this problem, install the "MDAC 2.7 RTM - Refresh" bundle from the Microsoft Web site at http://msdn.microsoft.com/data/downloads/updates/default.aspx. Choose the language that you want to install, download the required executable file, and run it. This procedure installs the translated ODBC Data Source Administrator files.

DB2 license policy for DB2 Universal Database Workgroup Server Edition

The Internet license policy is not valid for DB2 Universal Database Workgroup Server Edition. If you require a license for Internet users, you need to purchase DB2 Universal Database Workgroup Server Unlimited Edition.

5 5 5

5Installing additional Asian fonts (Linux)5

5IBM offers additional font packages for Linux that contain additional 5double-byte character set (DBCS) support for Asian characters. These font 5packages are necessary with some versions of Linux that install only the fonts 5required to display the country-specific or region-specific characters.

5If you run the db2setup command and 5find missing characters in the DB2 setup wizard interface, it is likely that 5your Linux system does not have all the necessary fonts installed. To enable 5the db2setup command to properly refer to the 5fonts embedded in the installation CD, perform the following task:

5
    5
  1. Enter the following command: 5
    export JAVA_FONTS=/<cdrom>/db2/<linux_platform>/java/jre/lib/fonts
    5

    where <cdrom> is the location of the install image and <linux_platform> 3is a directory name with a Linux prefix.5

  2. 5
  3. Re-run the db2setup command.

5If you notice missing characters when using the DB2 GUI tools 5after installation, install the necessary fonts provided with the DB2 product. 5These fonts can be found in the fonts directory on any of the following 5CDs:

5In the fonts directory, there are two typefaces available: 5Times New Roman WorldType and Monotype Sans Duospace WorldType. For each typeface, 5there is a country-specific or region-specific font. The following table lists 5the eight fonts provided in compressed format in the fonts directory.

5Table 8. File names for additional Asian fonts
5Font typeface 5Font file name 5Country or Region
5Times New Roman WT J 5tnrwt_j.zip 5Japan and other countries or regions
5Times New Roman WT K 5tnrwt_k.zip 5Korea
5Times New Roman WT SC 5tnrwt_s.zip 5China (Simplified Chinese)
5Times New Roman WT TC 5tnrwt_t.zip 5Taiwan (Traditional Chinese)
5Monotype Sans Duospace WT J 5mtsansdj.zip 5Japan and other countries or regions
5Monotype Sans Duospace WT K 5mtsansdk.zip 5Korea
5Monotype Sans Duospace WT SC 5mtsansds.zip 5China (Simplified Chinese)
5Monotype Sans Duospace WT TC 5mtsansdt.zip 5Taiwan (Traditional Chinese)
Note:
5 5
These fonts do not replace the system fonts. These 5fonts are to be used in conjunction with or for use with DB2 Universal Database. 5You cannot engage in the general or unrestricted sale or distribution of these 5fonts.
Procedure

5To install an additional Asian font:

  1. 5Unzip the font package.
  2. 7Copy the font package to the /opt/IBMJava2-141/jre/lib/fonts directory. You need to create the directory if it does not already exist.
  3. 7Enter the following command: 7
    export JAVA_FONTS=/opt/IBMJava2-141/jre/lib/fonts
5As a minimum, you need to install one font of each typeface 5for your country or region. If you are in China, Korea, or Taiwan, use the 5country-specific or region-specific versions; otherwise, use the Japanese 5version of the fonts. If you have space on your system, install all eight 5fonts.

Configuring the Development Center to use Java Development Kits (Linux)

In some cases, DB2 UDB does not install a Java Development Kit on the client operating system. To use the Development Center to develop Java stored procedures on these clients, you must point the Development Center to the location of an installed Java Development Kit .

7Follow these steps to identify the location of a Java Development 7Kit:

7
    7
  1. In Development Center, select the Project -> Environment Settings menu item.
  2. 7
  3. In the Environment Settings notebook, select the Process node.
  4. 7
  5. In the Java Home section of the Process 7page, select the JDK level that will be used 7to build and run Java stored procedures.
  6. 7
  7. In the Directory field, specify a directory 7path that exists or is accessible on the client where the selected JDK is 7installed.
  8. 7
  9. If the client computer is used to develop Java stored procedures on multiple 7DB2 servers, you might need to select additional JDK levels and specify their 7installed locations, depending on which JDK levels are used by these servers.

On the DB2 server, the Java Development Kit installation might not have 7linked some Java libraries into the system /usr/lib subdirectory. 7 These links are needed to build and run Java stored procedures.

The following example shows how to create the links to a Java Development Kit on a Linux client:

 # Setup the links to the .so files 
cd /usr/lib
ln -s /opt/IBMJava2-131/jre/bin/libhpi.so 
ln -s /opt/IBMJava2-131/jre/bin/libjava.so
ln -s /opt/IBMJava2-131/jre/bin/libjitc.so
ln -s /opt/IBMJava2-131/jre/bin/libxhpi.so
ln -s /opt/IBMJava2-131/jre/bin/libzip.so
ln -s /opt/IBMJava2-131/jre/bin/classic/libjvm.so 
7 7 7

Creating group and user IDs on United Linux 1.0 and SuSE Linux distributions

7

To create group and user IDs for a DB2 UDB Version 8.2 installation on 7United Linux 1.0 and SuSE Linux distributions, use the groupadd and useradd commands, respectively. The version 8.2 Installation and Configuration Supplement incorrectly documents the mkgroup and mkuser commands to create group and user IDs, 7respectively.

7 7 7

Help system daemon does not start after installing with the db2_install 7command (UNIX)

7

If you are installing the DB2 Information Center on UNIX platforms using 7the db2_install command, the help system daemon (db2icd) does not start following 7the installation. You need to manually start the help system daemon or restart 7your computer to access the documentation.

7

See the topic titled "DB2 Information Center daemon" in the Documentation updates | Installation and configuration section of the Version 8.2 Release Notes.

Ready for Tivoli enablement (UNIX)

When you purchase an IBM software product that carries the Ready for Tivoli(R) logo, you can manage your IBM software products through various Tivoli offerings. The Tivoli products allow you to automatically discover, monitor, and inventory one or more Ready for Tivoli applications.

IBM software products that are Ready for Tivoli can be managed through products such as IBM Tivoli Configuration Manager. IBM Tivoli Monitoring for Databases provides support for all leading databases including DB2 UDB, Oracle, and Informix(R).

For additional information, point your browser to the IBM Web site at http://www.tivoli.com/products/tivoli_ready/

Ready for Tivoli Instrumentation and DB2 UDB Version 8

To install and configure your instrumentation, have your Tivoli administrator do the following:

  1. The Tivoli Ready signature file for this DB2 product is named xxx.sys. As of FixPak 4 these signature files will be refreshed per FixPak instead of per version release. Confirm the signature files are installed in the directory:
       %install DB2DIR%/tivready
  2. Install and configure Tivoli GEM 2.2 Tivoli Ready enablement on all the computers that you intend to monitor. To download Tivoli Ready enablement and detailed installation and use instructions, point your browser to http://www.tivoli.com/support/tme10gem/tivoli-ready
  3. Advanced database manageability is achieved through IBM Tivoli Monitoring for Databases. The ITM for Databases product uses the new advanced edition Distributed Monitoring product (called IBM Tivoli Monitoring or ITM) and provides significant enhancement in monitoring capability based on the use of this new monitoring engine. ITM for Databases provides DB2 UDB support through a Proactive Analysis Component (PAC). This PAC is tightly integrated with DB2 UDB and provides an out-of-the-box set of monitors for quick deployment and activation. Custom monitors, thresholds, and tasks can also be defined by the DBA.

    Additional information available at: http://www.tivoli.com/products/index/monitor-db/

Information on other Tivoli products is available at: http://www.tivoli.com/products/index/

7 7 7

Installation image reduction tool (Windows)

7

The db2iprune command line utility can reduce the size of your DB2 UDB 7Windows product installation image. The tool is particularly useful for large 7scale deployments of DB2 UDB. The tool is also useful for embedding DB2 UDB 7within an application.

7

The db2iprune tool consists of an input file and an executable file. The 7input file (.prn), contains a full list of removable components and is used 7to indicate which features and languages you would like to remove from the 7installation image. The db2iprune executable file (db2iprune.exe) then removes 7the cabinet files associated with those features and languages. The result 7is a new, smaller DB2 UDB image that can be installed using the regular installation 7methods. Fixpaks are also applied using the regular methods. When the fixpak 7is installed it detects and updates only the components that were installed 7using db2iprune.

7

The db2iprune tool is located in the \db2\windows\utilities\db2iprune directory on your DB2 UDB product installation CD. This directory also 7contains a Readme file. Refer to the db2iprune Readme for detailed instructions 7on how to use db2iprune.

DB2 Universal Database, Version 8 HTML documentation installation restriction (Windows)

On Windows, do not install the DB2 Universal Database, Version 8 HTML documentation on a workstation or server where a DB2 Universal Database, Version 7 (or earlier) product is already installed. The installer detects the earlier version and removes the earlier product.

3 3 3

Previous installations updated to the latest level (Windows)

3

If you have a DB2 product that is installed at an earlier Version 8 level, 3the installation image detects this and updates the product to the latest 3level.

3 3 3

System requirements for the DB2 .NET Data Provider (Windows)

3

Before using the DB2 UDB installation program to install the DB2 .NET Data 3Provider, you must have the .NET Framework already installed on the computer. 3If the .NET Framework is not installed, the DB2 UDB installation program will 3not register the DB2 .NET Data Provider.

3

If DB2 UDB is installed and the .NET Framework is not installed, the DB2 3.NET Data Provider is not registered. If the .NET Framework is installed 3at a later date, you can run the db2nmpreg executable to register the provider. 3 This executable resides in the sqllib\bin directory. There are no parameters.

3

To register DB2 .NET Data Provider, enter db2nmpreg from any command window.

Installing DB2 Version 8 Clients and DB2 Connect PE as a non-Administrator (Windows)

When installing a DB2 Administration client, DB2 Application Development client, or DB2 Connect Personal Edition, you must update your Windows TCP/IP services file if the following conditions apply:

If all of the these conditions apply, the following entries need to be added to the Windows TCP/IP services file:

Table 9. Entries required in Windows TCP/IP services file
Port name Port number
vwkernel 11000/tcp
vwd 11001/tcp
vwlogger 11002/tcp

Without these entries, the Data Warehouse Center will not function properly.

Migration notes

7 7 7

Migrating DB2 UDB (Windows)

7

The following steps show the correct order for the migration prerequisites 7for DB2 UDB on Windows.

7
7Prerequisites 7

Before migrating:

7
    7
  1. Review the migration recommendations, restrictions, and space recommendations.
  2. 7
  3. Record configuration settings before DB2 migration.
  4. 7
  5. Change the diagnostic error level.
  6. 7
  7. Verify that databases are ready for DB2 migration.
  8. 7
  9. Back up your databases.
  10. 7
  11. If you are using replication, you must archive all of the DB2 log files.
  12. 7
  13. You must have SYSADM authority.
  14. 7
  15. Take the DB2 server offline for DB2 migration.
1 1 1

Migrating DB2 Universal Database when using DataJoiner or replication

1

If you want to migrate an instance of DataJoiner(R) or DB2 Universal 1Database for Linux, UNIX, and Windows on which you are running the Capture 1or Apply programs for DB2 Universal Database replication, you must prepare 1to migrate your replication environment before you migrate the DB2 Universal 1Database or DataJoiner instance. Detailed instructions for carrying out the 1required preparation are included in the migration documentation for DB2 DataPropagator(TM), 1Version 8. You can find migration documentation for DB2 DataPropagator, Version 18 at http://www.ibm.com/software/data/dpropr/.

5 5 5

Migrating a DB2 Version 8 Windows 32-bit database to Windows 564-bit

5

This topic lists the steps for migrating your 32-bit DB2 Version 58 database on a 32-bit computer to a 64-bit database on a 64-bit 5Windows operating system.

5
5Prerequisites 5
5
5Procedure 5

To migrate to DB2 Version 8 on Windows 64-bit:

5
    5
  1. Backup your DB2 Version 8 databases on your 32-bit Windows system.
  2. 5
  3. Restore your DB2 Version 8 backup (created in step #1) on your 64-bit 5Windows system.
5 5
Note:
5
In addition to migrating DB2 UDB from 32-bit systems to 64-bit 5systems, the following migrations are also possible: 5 5

Detailed information is available in the following IBM Redbook: Scaling 5DB2 UDB on Windows Server 2003. This Redbook can be found at the following 5URL:

5

http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg247019.html

2 2 2

Migrating XML Extender from previous versions

2

If you are using an earlier version of DB2 XML Extender, you must migrate 2 each database that is enabled for XML Extender before you use an existing 2 XML-enabled database with the updated XML Extender release. Each new fix 2 pack contains all of the previous fix packs' updates.

2

Before running the migration program, create a backup of the database.

2

To migrate an XML enabled database and XML enabled columns, complete the 2following steps.

2
    2
  1. From the DB2 Command Line, enter: 2
    db2 connect to database_name
    2db2 bind dxxinstall/bnd/@dxxMigv.lst
    2db2 bind dxxinstall/bnd/@dxxbind.lst
    where dxxinstall is the directory path in which you installed DB2 Universal 2Database .
  2. 2
  3. From the DB2 Command Line, enter: 2
    dxxMigv database_name
4 4 4

Database migration (HP-UX on IA64)

4

Database migration is not supported for DB2 UDB for HP-UX on IA64 throughout 4the Version 8.x releases.

4

Restoring a Version 7 DB2 backup image to a Version 8 instance is not 4supported on DB2 UDB for HP-UX on IA64.

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