DB2 10.5 for Linux, UNIX, and Windows

Setting up a partitioned database environment

This topic describes how to set up a partitioned database environment. You will use the DB2 Setup wizard to install your instance-owning database server and to create the response files that will in turn be used to create your participating database servers.

Before you begin

Note: A partitioned database environment is not supported in non-root installations.

About this task

A database partition is part of a database that consists of its own data, indexes, configuration files, and transaction logs. A partitioned database is a database with two or more partitions.

Procedure

To set up a partitioned database environment:

  1. Install your instance-owning database server using the DB2 Setup wizard. For detailed instructions, see the appropriate "Installing DB2 servers" topic for your platform.
    • On the Select installation, response files creation, or both window, ensure that you select the Save my installation settings in a response files option. After the installation has completed, two files will be copied to the directory specified in the DB2 Setup wizard: PROD_ESE.rsp and PROD_ESE_addpart.rsp. The PROD_ESE.rsp file is the response file for instance-owning database servers. The PROD_ESE_addpart.rsp file is the response file for participating database servers.
    • On the Set up partitioning options for the DB2 instance window, ensure that you select Multiple partition instance, and enter the maximum number of logical partitions.
  2. Make the DB2 install image available to all participating computers in the partitioned database environment.
  3. Distribute the participating database servers response file (PROD_ESE_addpart.rsp).
  4. Install a DB2 database server on each of the participating computers using the db2setup command on Linux and UNIX, or the setup command on Windows:
    Linux and UNIX
    Go to the directory where the DB2 database product code is available and run:
    ./db2setup -r /responsefile_directory/response_file_name
    Windows
    setup -u x:\responsefile_directory\response_file_name
    For example, here is the command using the PROD_ESE_addpart.rsp as the response file:
    Linux and UNIX
    Go to the directory where the DB2 database product code is available and run:
    ./db2setup -r /db2home/PROD_ESE_addpart.rsp
    where /db2home is the directory where you have copied the response file.
    Windows
    setup -u c:\resp_files\PROD_ESE_addpart.rsp
    where c:\resp_files\ is the directory where you have copied the response file.
  5. (Linux and UNIX only) Configure the db2nodes.cfg file. The DB2 installation only reserves the maximum number of logical partitions you want to use for the current computer, but does not configure the db2nodes.cfg file. If you do not configure the db2nodes.cfg file, the instance is still a single partitioned instance.
  6. Update the services file on the participating servers to define the corresponding FCM port for the DB2 instance. The services file is in the following location:
    • /etc/services on Linux and UNIX
    • %SystemRoot%\system32\drivers\etc\services on Windows
  7. For partitioned database environments on Windows 2000 or later, start the DB2 Remote Command Service security feature to protect your data and resources.

    To be fully secure, start either the computer (if the service is running under the context of the LocalSystem account) or a user for delegation (if the service is being run under the logon context of a user).

    To start the DB2 Remote Command Service security feature:

    1. Open the Active Directory Users and Computers window on the domain controller, click Start and select Programs > Administrative tools > Active Directory Users and Computers
    2. In the right window panel, right-click the computer or user to start, select Properties
    3. Click the General tab and select the Trust computer for delegation check box. For user setting, click the Account tab and select the Account is trusted for delegation check box in the Account option group. Ensure that the Account is sensitive and cannot be delegated box has not been checked.
    4. Click OK to start the computer or user for delegation.

    Repeat these steps for each computer or user that needs to be started. You must restart your computer for the security change to take effect.