Changing the Replication Server Host Name Using dsedit

Modify the default host name "localhost" in the Replication Server interfaces file to the actual server name if either the primary or the replicate Adaptive Server is not on the Replication Server machine.

  1. Shut down the sample Replication Server by executing shutdown at the isql prompt in %SYBASE%\REP-15_5\samp_repserver on Windows or $SYBASE/REP-15_5/samp_repserver on UNIX.
    Note: The installer creates the samp_repserver directory, if you choose to create a sample Replication Server directory and configure SAMPLE_RS after installation.
  2. Navigate to %SYBASE%\OCS-15_0\bin (Windows), or $SYBASE/OCS-15_0/bin (UNIX).
  3. On Windows, double-click dsedit.exe.

    On UNIX, enter:

    dsedit
  4. Select InterfacesDriver and click OK.
  5. In the left pane, select SAMPLE_RS.
  6. In the right pane, double-click Server Address, then click Edit.
  7. In the Network Address field:
    • Delete localhost.
    • Add the name of the machine on which Replication Server will run.
  8. Click OK twice, then select File > Exit.
  9. Restart the sample Replication Server.

    On Windows, either:

    • Select Control Panel > Administrative Tools > Services, right-click Sybase Rep_SAMPLE-RS, and select Start.
    • Double-click RUN_SAMPLE_RS.bat or execute RUN_SAMPLE_RS.bat on the command line from %SYBASE%\REP-15_5\samp_repserver.
    On UNIX and Linux – execute RS_SAMPLE_RS on the command line from $SYBASE/REP-15_5/samp_repserver.

For more information on dsedit, see Adaptive Server Enterprise Utility Guide > Using dsedit.