Installing function strings

To use a non-Sybase replicate databases, function strings must:

  1. Replace stored procedure and certain language command invocations that the replicate Replication Server normally sends to a Sybase ASE replicate database, and

  2. Produce operations in the non-Sybase replicate database that emulate the behavior of the Replication Server stored procedures in a Sybase ASE replicate database.

A function-string class is defined for each supported database server; the function strings required to support the replicate database reside in the function-string class for that database. In the case of a non-Sybase database, these function strings replace the default Sybase ASE function strings that would be used by the replicate Replication Server if it were replicating into a Sybase ASE database.

Execute a SQL script in the RSSD database to install the function strings that support a non-Sybase replicate database.

StepsInstalling HDS function strings in the replicate Replication Server

Function-string installation sample scripts are provided for each database supported by HDS. The following databases and sample scripts are supported by HDS in Replication Server version 15.0.1:

Database

Script

ASA

hds_asa_funcstrings.sql

DB2

hds_db2_funcstrings.sql

Informix

hds_informix_funcstrings.sql

Microsoft SQL Server

hds_msss_funcstrings.sql

Oracle

hds_oracle_funcstrings.sql

UDB

hds_udb_funcstrings.sql

NoteDo not install the DB2 function strings provided with Replication Server version 15.0.1 if you already have a DB2 database configured as a replicate database with an earlier version of Replication Server. Instead, continue using the earlier versions with Replication Server version 15.0.1 and its HDS feature. The 15.0.1 version function strings may not be compatible with earlier versions.

Execute the appropriate script for your replicate database type.

  1. Find the function-string script you need, then edit the script for the replicate database by adding the following command line after the initial comments and before the first line of code in the script file, where rssd is the name of the RSSD database:

    use rssd
    
  2. Log in to the RSSD data server or a machine with a network connection to the RSSD host machine, using a user ID that has owner permission in the RSSD database to execute the function string installation script.

    Noteisql is used as the Open Client application to access the RSSD database in this step. You can use any Open Client application to access the RSSD database.

  3. Execute the function-string installation script with the following:

    isql -Uuser -Ppw -Sserver -Drssd -iscript_name
    

    where:

  4. After you execute the script, you must shut down and restart the replicate Replication Server to refresh its function-string cache.