IBM Books

Quick Beginnings


Overview

If your application programs have been pre-compiled with both the CONNECT 2 and SYNCPOINT TWOPHASE options, you can use DB2 Connect Enterprise Edition to update multiple DB2 for OS/390 Version 5.1 databases over TCP/IP connections using two-phase commit.
Note:For ODBC applications, use the ODBC Manager to set the DSN two-phase option ON for the database.

Any connection between your two-phase commit application and a DB2 for OS/390 Version 5.1 database can also participate with DB2 Universal Database Version 5 database servers in the same transaction.

Additionally, when using DB2 Connect Enterprise Edition Version 5, DB2 for OS/390 Version 5.1 can act as the TM_DATABASE for the entire two-phase commit transaction providing that all the databases participating in the unit of work are either:

You can set the TM_DATABASE database manager configuration parameter using the following CLP command:

   update dbm cfg using tm_database 1ST_CONN

What to Do

Follow these steps:

  1. Choose your setting for TM_DATABASE. We recommend 1ST_CONN, especially if the first database connected to will be a DB2 for OS/390 Version 5.1 database. Set TM_DATABASE as indicated above.

  2. Ensure that those databases to be updated by your DUOW transaction over TCP/IP connections will be accessible READ-WRITE if required. See "Limitations".

  3. CLP users must turn off autocommit and use the following set client command prior issuing connect commands:
       set db2options=+c
       set client connect 2 syncpoint twophase
    

Limitations

The following limitations apply when using two-phase commit with DB2 Connect Enterprise Edition Version 5.0:

Migration

The diagram Figure 25 illustrates possible two-phase commit scenarios:

Figure 25. Two-Phase Commit Migration Scenarios.


* Figure SQLC0BIG not displayed.




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

[ DB2 List of Books | Search the DB2 Books ]