Configuring Replication Server for replication to the target database

StepsCreating a Replication Server connection

  1. Navigate to the $SYBASE/MA-15_2/scripts/oracle directory.

  2. Make a copy of the oracle_create_rs152_standby_connection.sql script:

    cp oracle_create_rs152_standby_connection.sql
    my_oracle_create_rs152_standby_connection.sql
    
  3. Before executing the my_oracle_create_rs152_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
    
    using profile rs_oracle_to_oracle;standard
    
    set username maintuser
    
    set password "password"
    
    set batch to "off"
    
    go
    

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

  4. Create the connection to the standby database:

    isql –Usa –P –SSAMPLE_RS -i my_oracle_create_rs152_standby_connection.sql
    
  5. Log in to SAMPLE_RS and verify the Replication Server connection to the standby 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.