Oracle primary data servers

This section describes the primary database issues and considerations specific to the Oracle data server in a Sybase replication system.

Replication Agent for Oracle

As a primary data server, Oracle interacts with Sybase Replication Agent. The Replication Agent identifies and transfers information about data-changing operations (or transactions) from an Oracle 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.

NoteSybase Replication Agent is a Java program and it requires a Java Runtime Environment (JRE) to run. Some operating systems require system patches to properly support Java. See the Sybase Replication Agent release bulletin for more information on your specific operating system version and the patches required.

Oracle primary database permissions

The Replication Agent requires an Oracle login ID that has permission to access data and create new objects in the primary database.

The Oracle login ID must have the following permissions:

Stored procedures that are created by the Replication Agent require access to two Oracle system views (dynamic performance views) that do not have SELECT authority granted by default. Any user that updates a table or procedure marked for replication must have SELECT authority on the following views:

Only the Oracle SYS user (or a user with SYSDBA ROLE) can grant SELECT authority on these views. To simplify implementation, you can grant SELECT authority on these views to PUBLIC.

Replication intrusions and impacts in Oracle

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

Primary data server connectivity

Sybase Replication Agent requires the following to connect to an Oracle 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 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 can connect to the RSSD of the primary Replication Server:

Primary database limitations in Oracle

Sybase Replication Agent imposes the following limitations on an Oracle primary data server:

Replication Server Manager has the following limitations with an Oracle primary data server:

Oracle primary database configuration issues

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

Replication definitions for primary tables in Oracle

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. See the Sybase Replication Agent Administration Guide for more information.

Oracle primary datatype translation issues

The Sybase Replication Agent allows you to control how it sends Oracle DATE 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 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 column must be either:

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

See the Sybase Replication Agent Administration Guide for a full description of the pdb_convert_datetime parameter and a complete list of datatype mapping for Oracle datatypes. See the Replication Server Administration Guide for more information on UDDs and their use.

Oracle 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 forth). It does this by issuing specific JDBC calls designed to return this information, or by querying the Oracle system tables directly.

Replication Server Manager (RSM) can be configured to use either the Replication Agent or a DirectConnect database gateway to return information about a primary database. Typically, RSM uses a Replication Agent to obtain information from a primary database, and uses a DirectConnect gateway to obtain information from a replicate database. You can specify which product is used to return metadata information to RSM when you add a non-Sybase data server using the RSM Add Server wizard.)

Further considerations of using RSM are:

NoteOracle does not support multiple databases within a single server instance as Adaptive Server Enterprise does. Because RSM is designed primarily to work with Adaptive Server, an Oracle database represented in RSM must have a database name as well as a server name. To accommodate this, RSM uses the data server and database name specified in the Replication Server primary database connection to identify the Oracle data server.

Other primary database issues for Oracle

The Sybase Replication Agent provides a set of sample scripts which can be used to set up a simple, single-table replication from Oracle to Adaptive Server. These scripts can be found in the $SYBASE/rax-12_6/scripts directory of the Sybase Replication Agent installation.

See the Sybase Replication Agent Administration Guide for more information about the sample scripts and their use.