Using dsedit to change the Replication Server host name

If either the primary or the replicate Adaptive Server is not on the Replication Server machine, you must change the default host name “localhost” in the Replication Server interfaces file to the actual server name.

To change the default host name in the Replication Server, perform the following steps:

  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.

  2. Follow directions for your platform.

    On Windows:

    Navigate to %SYBASE%\OCS-15_0\bin.

    On UNIX:

    Navigate to $SYBASE/OCS-15_0/bin.

  3. On Windows:

    Double-click dsedit.exe.

    On UNIX:

    Enter the following command:

    dsedit
    

    The Select Directory Service window appears.

    For more information on dsedit, see Chapter 5, “Using dsedit” in the Adaptive Server Enterprise Utility Guide.

  4. Select InterfacesDriver and click OK. The InterfacesDriver window appears.

  5. Select SAMPLE_RS in the left pane.

  6. Double-click the Server Address line in the right pane. The Network Address Attribute window appears.

  7. Click Edit.

  8. In the Network Address field:

    • Delete localhost.

    • Add the name of the machine on which Replication Server will run.

  9. Click OK.

  10. Click OK.

  11. Select File | Exit.

  12. Restart the sample Replication Server:

    • On Windows by one of:

      • 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.