IBM Books

Replication Guide and Reference


Working with Customized Replication Control Tables

The replication control tables are created in two ways:

If you use the second option, you cannot customize the replication control tables for your site without dropping the existing control tables and customizing the tables as discussed below. The default custom tables are designed for the DB2 Universal Database platforms. If you are running on MVS/ESA, VSE/ESA, or VM/ESA, you must customize the replication control tables.

You need to customize the file for your platform before performing any replication action at the server. See comments within the file for tailoring the SQL to run on a specific database platform. You will need to customize the DPCNTL file for the following definitions:

When you create customized control tables, you need to customize SQL files for the CREATE TABLE statements. The DPCNTL file contains the SQL for creating control tables. There is a DPCNTL file for each platform located in the SQLLIB\SAMPLES\REPL\ directory. The files names are:

DPCNTL.UDB
Creates control tables for the DB2 Universal Database platform.

DPCNTL.MVS
Creates control tables for the DB2 for MVS platform.

DPCNTL.VM
Creates control tables for the DB2 for VSE and VM platforms.

To customize the SQL for creating control tables:

  1. Open the SQLLIB\SAMPLES\REPL\DPCNTL.platform_name file as ASCII in an editor, where platform_name is the platform name in the previous list.

  2. Read the commented areas for each platform and table.

  3. Edit the file for your site or application.

  4. Close the file.

  5. Run the file by entering the following command from a command line window:
    db2 -tf dpcntl.platform_name
    

When you drop customized control tables, you need to customize SQL files for the DROP TABLE statements. The DPNCNTL file contains the SQL for dropping control tables. There is a DPNCNTL file for each platform located in the SQLLIB\SAMPLES\REPL\ directory. The files names are:

DPNCNTL.UDB
Drops control tables for the DB2 Universal Database platform.

DPNCNTL.MVS
Drops control tables for the DB2 for MVS platform.

DPNCNTL.VM
Drops control tables for the DB2 for VSE and VM platforms.

To customize SQL for dropping the control tables:

  1. Open the SQLLIB\SAMPLES\REPL\DPNCNTL.platform_name file as ASCII in an editor, where platform_name is the platform name in the previous list.

  2. Read the commented areas for each platform and table.

  3. Edit the file for your site or application.

  4. Close the file.

  5. Run the file by entering the following command from the command line window:
    db2 -tf dpncntl.platform_name
    


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

[ DB2 List of Books | Search the DB2 Books ]