Removing the SAMPLE_RS from the System

Remove the SAMPLE_RS from the system if it is not part of a multiple SAP Replication Server environment.

  1. Go to $SYBASE.
  2. Source the SYBASE.csh.
  3. If the SAMPLE_RS is running, shut it down:
    isql –Usa –Ppassword -SSAMPLE_RS
    shutdown
    go
    
  4. View the file that starts up the SAMPLE_RS.
    The default installation is at $SYBASE/REP*/samp_repserver/RUN_SAMPLE_RS.
  5. Make note of the file location identified by the –C parameter (the SAP Replication Server configuration file) the –E (the SAP Replication Server log ) and the –I (the interfaces file).
  6. Go to the file identified by the –C parameter (the configuration file). Record the files and directories in the following lines in the configuration file:
    erssd_errorlog
    erssd_dbfile
    erssd_translog
    erssd_logmirror
    erssd_backup_dir
    
  7. For the filename referenced by the erssd_dbfile parameter, note the name of the ERSSD.
    The name of the ERSSD will be the name in front of the .db file extension. If the entry looks like /opt/sybase/REP-15_5/samp_repserver/dbfile/SAMPLE_RS_ERSSD.db, SAMPLE_RS_ERSSD is the name of the ERSSD.
  8. In the directory identified in the erssd_backup_dir, remove all files with the name of the ERSSD.
    For example, SAMPLE_RS_ERSSD.db must be removed.
  9. Delete the file identified in the:
    • erssd_errorlog
    • erssd_dbfile
    • erssd_translog
    • erssd_logmirror
  10. In the $SYBASE/REP*/samp_repserver directory, delete the RUN file, the configuration file, and the SAMPLE_RS log file.
  11. Edit the interfaces file to remove the entries for the SAMPLE_RS and the SAMPLE_RS_ERSSD.