Set up Mirror Replication Agent connection parameters for Replication Server

Complete all the tasks described in “Setting up Mirror Replication Agent connectivity”, except the following:

When connecting to the Replication Server, the Mirror Replication Agent can use the login name that was created for the primary database RepAgent thread.

Use the following procedure to find the values of the RepAgent thread configuration parameters.

NoteYou must have a System Administrator or Database Owner user role in the primary Adaptive Server to perform this procedure.

StepsTo find the Replication Server login name for the RepAgent thread

  1. Log in to the primary Adaptive Server with a System Administrator or Database Owner user role.

  2. View the current values of the RepAgent thread configuration parameters in the primary database:

    use pdb
    sp_config_rep_agent pdb
    

    where pdb is the name of the primary database.

Make a note of the current values returned for the following RepAgent thread parameters:

NoteThe password for the Replication Server user login is not displayed with the other RepAgent thread parameters. Consult the System Administrator or System Security Officer for the Replication Server to obtain the password that the Mirror Replication Agent must use.

Use the following procedure to set up the Mirror Replication Agent connection configuration for Replication Server.

StepsTo set up connection parameters for the Replication Server

  1. Log in to the Mirror Replication Agent administration port, and verify that the Mirror Replication Agent instance is in Admin state.

    1. Use the following command to verify that the Mirror Replication Agent instance is in Admin state:

      ra_status
      
    2. If the instance is not in Admin state, use the following command to put it in Admin state:

      suspend
      
  2. Specify the Replication Server host name:

    ra_config rs_hostname, rs_host
    

    where rs_host is the network name of the Replication Server host machine.

  3. Specify the Replication Server port number:

    ra_config rs_port_number, NNN
    

    where NNN is the number of the network port where Replication Server listens for connections.

  4. Specify the Replication Server user login name for the Mirror Replication Agent instance:

    ra_config rs_username, mra_rs_user
    

    where mra_rs_user is the value of the RepAgent thread rs username parameter.

  5. Specify the user login password for the Mirror Replication Agent instance:

    ra_config rs_password, mra_rs_pwd
    

    where mra_rs_pwd is the password you received from the System Administrator.

  6. Specify the primary data server name for the Replication Server primary database connection:

    ra_config rs_source_ds, pds
    

    where pds is the value of the RepAgent thread connect dataserver parameter.

  7. Specify the primary database name for the Replication Server primary database connection:

    ra_config rs_source_db, pdb
    

    where pdb is the value of the RepAgent thread connect database parameter.

After you set up the Mirror Replication Agent connection configuration parameters, use the Mirror Replication Agent test_connection RS command to test connectivity between the Mirror Replication Agent and the Replication Server. See “Testing network connectivity” for more information.