Starting a Replication Server

When you install a new Replication Server to your replication system, rs_init creates a runserver file in the Sybase installation directory. The runserver file is an executable script that contains the complete command line required to start a Replication Server.

The runserver file name is constructed based on the name of the server. For example, for a Replication Server named ROME_RS, the runserver file is named RUN_ROME_RS.

Start-up sequence for servers

Start servers in this order:

  1. If the Replication Server uses RSSD in Adaptive Server Enterprise, start the Adaptive Server first.

  2. Replication Servers.

Starting servers at system boot

In a production system, you must start Adaptive Servers and Replication Servers, whenever your machine reboots. To do this, see your System Administrator.

StepsStarting a Replication Server using the runserver file

  1. Log in to your system as the “sybase” user. Replication Server must execute as “sybase” so that it has the permissions required to access its configuration file, log file, and disk partitions.

  2. Set the $SYBASE_REP and $SYBASE_OCS environment variables to the path of the Sybase installation directory, as described in the Replication Server Installation Guide.

  3. From the shell prompt, execute the runserver file as a background process.

    For example, enter this command to start the TOKYO_RS Replication Server:

    $SYBASE/$SYBASE_REP/RUN_TOKYO_RS &
    

    Diagnostic messages display as the servers start up. The messages are also recorded in the servers’ log files.