DB2 Universal Database replicate data servers on OS/390

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

As a replicate data server in a gateway environment, DB2 for OS/390 interacts with the DirectConnect for OS/390 database gateway. The DirectConnect for OS/390 gateway is responsible for accepting commands from the replicate Replication Server and applying those commands to a DB2 replicate database.

As a replicate data server in a “gatewayless” environment, DB2 for OS/390 interacts with MainframeConnect for DB2 UDB through the AMD2 CICS transaction. AMD2 accepts commands from Replication Server and applies those commands to a DB2 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 Sybase Open ServerConnect Installation and Administration Guide.

DB2 for OS/390 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 DB2 for OS/390 data server and granted authority to apply transactions in the replicate database. The Maintenance User ID must have the following permissions in the DB2 replicate database:

Replication intrusions and impacts in DB2 for OS/390

The only significant intrusions or impacts to the DB2 replicate 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 two tables in the replicate database to support Replication Server operations:

Replicate database connectivity for DB2 for OS/390

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 DirectConnect for OS/390 database gateway, the server_name is the name of the database gateway server, and the db_name is the name of the DB2 replicate 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 DirectConnect for OS/390 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 OS/390

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

Gatewayless replication to DB2 for OS/390 requires that you:

Replicate database limitations in DB2 for OS/390

The following replication limitations exist with a DB2 for OS/390 replicate data server:

DB2 for OS/390 replicate database configuration issues

The heterogeneous datatype support (HDS) feature of Replication Server provides a number of sample SQL scripts that help you set up the HDS feature in the replicate Replication Server and the DB2 for OS/390 replicate database. These include:

To replicate large-object (LOB) datatypes, you must create rs_writetext and rs_get_textptr function strings. These are not included in the Replication Server HDS sample scripts.

For descriptions of the rs_writetext and rs_get_textptr function strings, see the Replication Server Reference Manual.

DB2 for OS/390 system management issues

The following system management issues are specific to a DB2 for OS/390 replicate data server: