DB2 Universal Database primary data servers on UNIX or Windows

This section describes the primary database issues and considerations specific to the DB2 Universal Database server on a UNIX or Microsoft Windows platform in a Sybase replication system.

Replication Agent for UDB

As a primary data server, DB2 Universal Database interacts with Sybase Replication Agent. An instance of the Sybase Replication Agent configured for DB2 Universal Database is referred to as a Replication Agent for UDB.

The Replication Agent for UDB identifies and transfers information about data-changing operations or transactions from a DB2 Universal Database primary data server to a primary Replication Server.

The Replication Agent interacts with the primary Replication Server and with the RSSD of the primary Replication Server, if so configured.

DB2 Universal Database primary database permissions

The Replication Agent for UDB requires a DB2 Universal Database login that has permission to access data and create new objects in the primary database.

The DB2 login must have the following permissions in the primary database:

The DB2 login must also have READ authority on the DB2 log data sets.

Replication intrusions and impacts in DB2 Universal Database

The performance and operation of DB2 Universal Database primary data servers in a Sybase replication system might be affected by the following:

Primary data server connectivity

Replication Agent for UDB requires the following to connect to a DB2 Universal Database primary data server:

Replication Server connectivity

The values of the following Replication Agent configuration parameters must be set as described so that the Replication Agent for UDB can connect to the primary Replication Server:

NoteSybase Replication Agent uses TCP/IP and the Sybase JDBC driver (jConnect for JDBC, which is included in Replication Agent installation) to communicate with other Sybase servers. The Replication Agent does not rely on the Sybase interfaces file for connectivity information.

RSSD connectivity

The values of the following Replication Agent configuration parameters must be set as described so that the Replication Agent for UDB can connect to the RSSD of the primary Replication Server:

Primary database limitations in DB2 Universal Database

Sybase Replication Agent does not support stored procedure replication for DB2 Universal Database.

Replication Server Manager has the following limitations with a DB2 Universal Database primary data server:

DB2 Universal Database primary database configuration issues

All the installation issues and configuration parameter details for a DB2 Universal Database primary data server are provided in the Sybase Replication Agent Installation Guide. The following are a few items that may need additional attention:

Following is the full syntax for IsqlApp help:

c:\>java -cp "%SYBASE%\jConnect-6_0\classes;%SYBASE%\jConnect-6_0\classes \jconn3.jar" IsqlApp -help

The following is displayed:

  IsqlApp [-U <username>] [-P <password>] [-S <servername>]				[-G <gateway>] [-p <http|https>] [-D <debug-class-list>]				[-C <charset>] [-L <language>] [-T <sessionID>]				[-v] [-I <input command file>] [-c <command terminator>]				[-s <starting tag/section marker>] [-e <ending tag/section 		marker>]			
				[-t <tag name> <new value>] [-n <section name to execute>]				[-N] [-K <service principal name for kerberos login>]				[-F <path to JAAS login config file>]				[-V <version {2,3,4,5,6}] -d

Examples for connecting to remote machines

To connect to an ASE on the local machine:

java -cp "$SYBASE/jConnect-6_0/classes:$SYBASE/jConnect-6_0/classes /jconn3.jar" IsqlApp -U sa -P sapwd -S jdbc:sybase:Tds:localhost:4100

To connect to a Replication Server on a remote machine:

java -cp "$SYBASE/jConnect-6_0/classes:$SYBASE/jConnect-6_0/classes /jconn3.jar" IsqlApp -U sa -P sapwd -S jdbc:sybase:Tds:dock:4200 -C iso_1

Replication definitions for primary tables in DB2 Universal Database

The Replication Agent use_rssd configuration parameter controls whether the Replication Agent sends Log Transfer Language (LTL) that contains only the columns specified in a replication definition, or all of the columns in the primary table.

When the value of the use_rssd parameter is set to false, the Replication Agent sends LTL with data for all of the columns in the primary table. When the value of the use_rssd parameter is set to true, the Replication Agent sends LTL with data for only the columns specified in the replication definition for each primary table.

By sending data for only the columns specified in the replication definition, network traffic is reduced, which can improve performance.

In addition, column names and parameter names are removed from the LTL because the Replication Agent can send information in the order identified by the replication definition. The LTL minimal columns and structured tokens options are also available when the value of the use_rssd parameter is set to true. For more information, see the Sybase Replication Agent Administration Guide.

DB2 Universal Database primary datatype translation issues

The Sybase Replication Agent allows you to control how it sends DB2 DATE, TIME, and TIMESTAMP column values to the Replication Server. There are two options:

The value of the Replication Agent pdb_convert_datetime configuration parameter determines how the Replication Agent handles temporal datatypes.

If you set the pdb_convert_datetime parameter to true, all corresponding datatypes in a replication definition for DATE, TIME, and TIMESTAMP columns are converted to the Sybase datetime datatype.

If you set the pdb_convert_datetime parameter to false, the datatype in a replication definition for a DATE, TIME, or TIMESTAMP column must be either:

The character (char or varchar) datatype specified in a replication definition for for a DATE, TIME, or TIMESTAMP column must have sufficient length to accommodate the column’s default display length.

See the Sybase Replication Agent Administration Guide for more information about the pdb_convert_datetime parameter and a complete list of datatype mapping for DB2 Universal Database datatypes. For more information about UDDs and their use, see the Replication Server Administration Guide.

DB2 Universal Database system management issues

The Sybase Replication Agent provides a number of commands that return metadata information about the primary database (database names, table names, procedure names, column names, and so on). It does this by issuing specific JDBC calls designed to return this information or by querying the system tables directly.

Other primary database issues for DB2 Universal Database

The Sybase Replication Agent provides a set of sample scripts that you can use to set up simple, single-table replication from DB2 Universal Database to Adaptive Server. These scripts are located in the $SYBASE/RAX-12_6/scripts directory of the Sybase Replication Agent installation.

For more information about the sample scripts and their use, see the Sybase Replication Agent Administration Guide.