IBM DB2 Universal Database replicate data servers on IBM z/OS

This section describes the replicate database issues and considerations specific to the IBM DB2 Universal Database on the IBM z/OS platform in a Sybase replication system.

As a replicate data server in a gateway environment, IBM DB2 Universal Database for z/OS interacts with the Mainframe Connect DirectConnect for z/OS Option database gateway, which is responsible for accepting commands from the replicate Replication Server and applying those commands to a replicate IBM DB2 Universal Database.

As a replicate data server in a “gatewayless” environment, IBM DB2 Universal Database for z/OS interacts with Mainframe Connect DirectConnect for DB2 UDB through the AMD2 CICS transaction. AMD2 accepts commands from Replication Server and applies those commands to an IBM DB2 Universal Database. Then, AMD2 retrieves the results from those commands and returns the results to Replication Server.

NoteThe gatewayless environment requires a TCP/IP connection to the mainframe. For more information about gatewayless connections, see the Mainframe Connect Server Option for IBM IMS and MVS Installation and Administration Guide.


DB2 for z/OS replicate database permissions

To apply transactions in a replicate database, Replication Server requires a Maintenance User ID that you specify in the Replication Server create connection command. The Maintenance User ID must be defined to the IBM DB2 Universal Database for z/OS data server and granted authority to apply transactions in the replicate database. The Maintenance User ID must have the following permissions in the replicate IBM DB2 Universal Database:


Replication intrusions and impacts in DB2 for z/OS

The only significant intrusions or impacts to the replicate IBM DB2 Universal Database are the database objects created by the hds_db2_setup_for_replicate.sql script to support Replication Server replicate database operations. This script creates three tables in the replicate database to support Replication Server operations:


Replicate database connectivity for DB2 for z/OS

A Replication Server database connection name is made up of two parts: a data server name (server_name) and a database name (db_name).

When using the Mainframe Connect DirectConnect for z/OS Option database gateway, the server_name is the name of the database gateway server, and the db_name is the name of the replicate IBM DB2 Universal Database.

The replicate Replication Server looks for an interfaces file entry for the database gateway server_name specified in the Replication Server database connection. The replicate Replication Server logs in to the replicate data server using the user_name and password specified in the database connection.

You must make an entry in the Replication Server interfaces file to identify the host and port where the Mainframe Connect DirectConnect for z/OS Option database gateway server is listening. The interfaces file entry name must match the server_name portion of the Replication Server database connection.


Gatewayless connections for DB2 for z/OS

With a gatewayless connection from Replication Server to DB2 UDB using the MainframeConnect DirectConnect for z/OS Option, the server_name is the mainframe host name, and the db_name is the name of the replicate IBM DB2 Universal Database. The interfaces file entry for the server_name maps to the mainframe IP address and port.

Gatewayless replication to IBM DB2 Universal Database for z/OS requires that you: