Refreshing a SAMPLE_RS

Refresh a SAMPLE_RS if the directories already exist.

  1. Go to the SAP Replication Server installation directory. This is one directory level above where REP-15_5 resides. This is the value for $SYBASE.
  2. Set the environment variables by sourcing the SYBASE.csh file.
  3. In the $SYBASE/interfaces file, verify that there are entries for SAMPLE_RS and SAMPLE_RS_ERSSD for this host machine:
    SAMPLE_RS
       master tcp ether localhost 11752
       query tcp ether localhost 11752
    #
    SAMPLE_RS_ERSSD
       master tcp ether localhost 11751
       query tcp ether localhost 11751
    
    Change localhost to the name of the host machine. The port numbers can be any available port on the host. If you want to use different port numbers than what is shown in the interfaces file, ensure that the SAMPLE_RS is shutdown before changing the port number of the SAMPLE_RS and SAMPLE_RS_ERSSD in the interfaces file.
    Note: The SAMPLE_RS is created with an ERSSD. One cannot have multiple ERSSDs (or ASA servers) of the same name, on the same host, running at the same time.
  4. If SAMPLE_RS is currently running, shutdown the existing SAMPLE_RS.
    isql -Usa -Ppassword -SSAMPLE_RS
    shutdown
    go
  5. Verify that the following directories and files exist under $SYBASE/REP*/samp_repserver:
    -rwxr-xr-x  1 sybase sybase   93 Dec 18 19:07 rs_init-SAMPLE_RS.sh*
    -rwxr-xr-x  1 sybase sybase 1667 Dec 18 19:08 SAMPLE_RS.res*
    drwxr-xr-x  2 sybase sybase 4096 Dec 18 19:07 samp_partition/
    
  6. If the following directories exist, ensure that the files in the directory do not contain the name of the SAMPLE_RS_ERSSD.
    drwxr-x---  2 sybase sybase 4096 Dec 19 17:50 backup/
    drwxr-x---  2 sybase sybase 4096 Dec 19 17:50 dbfile/
    drwxr-x---  2 sybase sybase 4096 Dec 19 17:50 errorlog/
    drwxr-x---  2 sybase sybase 4096 Dec 19 17:50 log/
    

    For example, in the $SYBASE/REP*/samp_repserver/dbfile directory, the file SAMPLE_RS_ERSSD.db must not exist.

    If the files exist, one either needs to choose another name for the SAMPLE_RS_ERSSD or delete the file under the directory.
    Note: These directories do not have to exist for the SAMPLE_RS to be successfully built.
  7. If the SAMPLE_RS was previously created, the following files need to be renamed or deleted:
    -rwxr-xr-x  1 sybase sybase  290 Dec 19 17:54 RUN_SAMPLE_RS*
    -rw-------  1 sybase sybase 1149 Dec 19 17:54 SAMPLE_RS.cfg
    -rw-r-----  1 sybase sybase 8906 Dec 19 17:54 SAMPLE_RS.log
    
    Note: The RUN and cfg files contain all the information, including directories and filenames, about the previous SAMPLE_RS and SAMPLE_RS_ERSSD.
  8. Validate the entries in $SYBASE/REP*/samp_repserver/SAMPLE_RS.res.
  9. Set the environment variables by sourcing the $SYBASE/SYBASE.csh file.
  10. Go to the $SYBASE/REP*/samp_repserver directory.
  11. Execute rs_init-SAMPLE_RS.sh:
    ./ rs_init-SAMPLE_RS.sh
    If the file, rs_init-SAMPLE_RS.sh does not exist, execute rs_init using the SAMPLE_RS.res file:
    $SYBASE/REP-15_5/install/rs_init -r SAMPLE_RS.res -T
    T_SEND_CLEARTEXT_PASSWORD
  12. Verify that the SAMPLE_RS is available. Log in to the SAMPLE_RS.
    isql -Usa –Ppassword -SSAMPLE_RS

    The password to the sa user ID is the value that was filled in the resource file for rs.rs_rs_sa_pass.

  13. Enter:
    admin who
    go
    
  14. End the session by exiting from the isql client.
    exit
    go