IBM Books

DB2 Replication Guide and Reference


Configuring the Capture and Apply Programs

The following sections provide instructions for configuring the Capture and Apply programs for Windows NT, and for providing end-user authentication at the source server.

Configuring the Capture Program

To configure the Capture program:

  1. From the source server system, ensure that the user ID under which the Capture program is to run has the required privileges:

  2. Log on with the user ID.

  3. Update the source database with LOGRETAIN on by entering:
    DB2 UPDATE DATABASE CONFIGURATION FOR SAMPLE USING LOGRETAIN ON
    

  4. Enable database logging by entering:
    DB2 BACKUP DATABASE SAMPLE
    

  5. From the DB2 command line processor or the Command Center, connect to the source server database by entering:
    DB2 CONNECT TO SAMPLE
    

  6. Change to the \SQLLIB\BND directory, which is where the bind files are located.

  7. Create and bind the Capture program package to the source server database by entering the following command:
    DB2 BIND @CAPTURE.LST ISOLATION UR BLOCKING ALL
    

    If your system does not support uncommitted read format, substitute CS (cursor stability format) for UR instead.

    These commands create a list of packages, the names of which can be found in the CAPTURE.LST file.

Configuring the Apply Program

To configure the Apply program:

  1. From the source, control, and target server system, ensure that the user ID under which the Apply program is to run has the required privileges:

  2. Log on with the user ID.

  3. Connect to the source server database by entering:
    DB2 CONNECT TO SAMPLE
    

  4. Create and bind the Apply package to the source server database by entering both of the following commands:
    DB2 BIND @APPLYUR.LST ISOLATION UR BLOCKING ALL
    

    DB2 BIND @APPLYCS.LST ISOLATION CS BLOCKING ALL
    

    These commands create a list of packages, the names of which can be found in the APPLYUR.LST and APPLYCS.LST files.

  5. Connect to the target server database by entering:
    DB2 CONNECT TO COPYDB
    

  6. Create and bind the Apply package to the target server database by entering both of the following commands:
    DB2 BIND @APPLYUR.LST ISOLATION UR BLOCKING ALL
    

    DB2 BIND @APPLYCS.LST ISOLATION CS BLOCKING ALL
    

    These commands create a list of packages, the names of which can be found in the APPLYUR.LST and APPLYCS.LST files.

Providing End-User Authentication at the Source Server

For end-user authentication to occur at the source server, you must provide a password file with an AUTH=SERVER scheme for the Apply program to use when connecting to the source server. It is advisable to limit read access of this file to the user ID that will run the Apply program.

The password file must meet the following criteria:

To create a password file:

  1. Type the following records in your editor. Do not include blank lines or comment lines in the file.
    SERVER=SAMPLE USER=userid PWD=password 
    
    SERVER=COPYDB USER=userid PWD=password 
    

  2. Save the file as DEPTQUALdb2COPYDB.PWD.

For more information about authentication and security, refer to the IBM DB2 Administration Guide for common servers.


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

[ DB2 List of Books | Search the DB2 Books ]