Configuring Replication Server for replication to the target data server

This section describes the required configurations for Replication Server for replication to the target Oracle data server.

StepsTo create a Replication Server connection to replicate

  1. Navigate to the Replication Agent scripts $SYBASE/RAX-15_1/scripts/oracle directory.

  2. Create the Oracle error class.

    • Execute these three scripts:

      NoteThe oracle_error_class_1_rs.sql and oracle_error_class_3_rs.sql scripts are executed to the Replication Server. The oracle_error_class_2_rssd.sql script is executed in the RSSD.

    isql -Usa -P -SSAMPLE_RS -i oracle_create_error_class_1_rs.sqlisql -U SAMPLE_RS_RSSD_prim -P SAMPLE_RS_RSSD_prim_ps -SSAMPLE_RS_ERSSD 
    -i oracle_create_error_class_2_rssd.sql -DSAMPLE_RS_ERSSDisql -Usa -P -SSAMPLE_RS -i oracle_create_error_class_3_rs.sql
    
  3. Make a copy of the oracle_create_rs_standby_connection.sql script:

    cp oracle_create_rs_standby_connection.sql
    my_oracle_create_rs_standby_connection.sql
    
  4. Before executing the my_oracle_create_rs_standby_connection.sql script against your Replication Server, change all occurrences of value {rds}.{rdb} to the name of the connection that Replication Server uses to connect to DirectConnect server, where:

    For example:

    create connection to DCOServer.oratest2
    set error class oracle_error_class
    set function string class rs_oracle_function_class
    set username maintuser
    set password “password”
    set batch to “off”
    go
    

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

  5. Create the connection to the replicate database:

    isql –Usa –P –SSAMPLE_RS -i my_oracle_create_rs_standby_connection.sql
    
  6. 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.”

  7. Exit the isql session with the quit command.