Upgrading Using Existing Directories

Upgrade using the existing directories.

  1. Shut down the preupgrade version of Replication Server.
  2. Back up the entire set of files and directories under %SYBASE%.
    Note: Keep this backup in case you need to downgrade from Replication Server version 15.7.1 SP100 to an earlier version.
  3. Use the relevant version of the Replication Server Installation Guide for Windows to install your new version of Replication Server into the existing version directories under %SYBASE%.
    Note: Do not install the SAMPLE_RS sample Replication Server from the new version if you are using the SAMPLE_RS from the earlier version.
    The installation process:
    • Updates all subdirectories of %SYBASE% that share directory names in both versions.
    • Backs up existing SYBASE.* files, where * can be .env or .bat, by adding a "save" suffix to the file. For example, Sybase.env is backed up as Sybase.env.save
  4. Set the relevant environment variables in the SYBASE.env file in the Replication Server 15.7.1 SP100 installation directory.
    See Replication Server Installation Guide > Postinstallation Tasks > Environment Variables on UNIX.See Replication Server Installation Guide > Postinstallation Tasks > Environment Variables on Windows.
  5. You can use the repserver or rs_init utilities to upgrade Replication Server from versions 15.5 and later to version 15.7.1 SP100.
    However, to upgrade from versions 15.5, 15.6 and later to version 15.7, you can only use rs_init.
    For example, to upgrade the tokyo_rs Replication Server using repsrvr, enter:
    C:\sybase\rs1560esd1\REP-15_5\bin\repsrvr.exe -upgr -Stokyo_rs 
    -CC:\sybase\rs1560esd1\REP-15_5\install\toky_rs.cfg 
    -EC:\sybase\rs1560esd1\REP-15_5\install\tokyo_rs.log 
    -IC:\sybase\rs1560esd1\ini\sql.ini 
    -A C:\sybase\rs1560esd1\REP-15_5\ASA11
    After the upgrade, you see a new entry in the configuration file. For example after upgrading tokyo_rs, you see:
    erssd_release_dir=C:\sybase\rs1560esd1\REP-15_5\ASA11
    erssd_start_cmd=C:\sybase\rs1560esd1\REP-15_5\ASA11\win32\dbspawn.exe 
    -f -q C:\sybase\rs1560esd1\REP-15_5\ASA11\win32\dbsrv11.exe 
    -ti 0 -x "tcpip(PORT=11753;DOBROAD=NO;BLISTENER=NO)" 
    -o C:\sybase\rs1560esd1\REP-15_5\errorlog\tokyo_rs_erssd.out 
    C:\sybase\rs1560esd1\REP-15_5\dbfile\tokyo_rs_erssd.db
    RS_random=b6BAdgNj4GOgnJ47vYwkgcPoQflYvQOxidNOsgnrqCgIk6tmrvYrWmF20hcV/SnPRH
    Note: You see the RS_random encryption attribute only if you upgrade to version 15.7.1 and later either with repserver or rs_init. As earlier versions of Replication Server cannot use the attribute, you can leave it in the configuration file or delete it if you downgrade from versions 15.7.1 and later.
  6. Change the runserver file you copied from the backup to use the upgraded Replication Server executable, and then start Replication Server.
    See Runserver File in the Replication Server Configuration Guide for Windows.