Creating and Initializing a Replication Agent Instance

Execute the resource file to create the Replication Agent instance.

  1. After validating the resource file, create the Replication Agent instance:
    %SYBASE%\RAX-15_5\bin\ra_admin -r myra.rs
    Execution results are returned as either:
    • Response-file processing completed

      or:

    • Response-file processing completed with errors

    See the Replication Agent Administration Guide.

  2. If initialize_instance is no in your resource file, start the Replication Agent instance.
    1. Change to the directory containing your Replication Agent instance RUN file.
    2. Execute the RUN file, for example:
      RUN_myra
  3. Use dsedit to update the Replication Server sql.ini to include an entry for the Replication Agent location.
    To use direct load materialization, also add the server name part of the connection name to the interfaces file. This entry should point to Replication Agent. For example:
    pds
    master tcp ether hostname 9030
    query tcp ether hostname 9030
    Note: The server name is the same value as the rs_source_ds value in the resource file used to create a Replication Agent instance.
  4. Verify the connection to Replication Agent.
    1. Open a command window in the %SYBASE% directory of your Replication Agent installation.
    2. Set the environment variables by executing the SYBASE.bat file.
    3. Log in to Replication Agent:
      isql –Usa –Psa_pass –Smyra
  5. If initialize_instance in no in your resource file, open a new command window, log in to the Replication Agent instance, and initialize the Replication Agent instance and the primary Microsoft SQL Server database using this Replication Agent command:
    ra_admin init

Your Replication Agent instance is now running and has been initialized.