Configuring Replication Server for replication to the target data server

This section describes the required configurations for Replication Server for replication to the target IBM DB2 Universal Database data server.

StepsTo create a Replication Server connection to replicate

  1. Navigate to the Replication Server scripts $SYBASE/REP-15_0/scripts directory:

  2. Make a copy of the hds_udb_connection_sample script:

    cp hds_udb_connection_sample.sql
    my_udb_rs_create_repl_connection.sql
    
  3. Before executing the my_udb_rs_create_repl_connection.sql script against your Replication Server, change the name of the connection that Replication Server uses to connect to DirectConnect server, where:

    For example:

    create connection to DCOServer.my_udb_db
    set error class rs_sqlserver_error.class
    set function string class rs_udb_function_class
    set username maintuser
    set password “password”
    set batch to “off”
    go
    

    NoteIn the above example, password is a Replication Server reserved word and, therefore, must be enclosed in double quotes.

  4. Create the connection to the replicate database:

    isql –Usa –P –SSAMPLE_RS -i my_udb_create_rs_repl_connection.sql
    
  5. To verify the Replication Server connection to the replicate database, log in to SAMPLE_RS and verify the Replication Server connection to the replicate database:

    isql –Usa –P –SSAMPLE_RS
    admin who
    go
    

    You should see a message returned for the DSI connection {rds}.{rdb}. Verify that the status is “Awaiting Message” or “Awaiting Command.”

  6. Exit the isql session with the quit command.