Use the repserver utility to upgrade the Replication Server RSSD or ERSSD, and user databases in one step.
sp_role 'grant', sa_role, primary_user
sp_role 'revoke', sa_role, primary_user
isql -Usa -Psa _password - Srs_name go
shutdown go
repsrvr –upgr –S rs_name –A erssd_release_dir –C config_file –I interfaces_file –E errorlog_file
In upgrade mode, Replication Server upgrades the ERSSD or RSSD it is using, automatically connects to each user database to which it has maintenance user access, and where a connection exists, applies the upgrade scripts to the database.
The full syntax is:
repsrvr [-C config_file] [-i id_server]
[-S rs_name] [-I interfaces_file]
[-E errorlog_file] [-M] [-v] [-K keytab_file]
[-upgr] [-A erssd_release_dir] [-purgeq]
[–nodb {all|dbid_1[,dbid_2[,dbid_3[,…]]]]}
[-e]
c:\sybase\REP-15_5\ASA11
If you do not include the -A option, Replication Server obtains the release directory location from the Replication Server configuration file if the configuration file contains the information. Replication Server ignores the release directory location in the configuration file if you specify the -A option because what you specify manually in the repsrvr command overrides configuration file settings.
repsrvr –upgr . . . -A . . . -nodb 101,102,105
repsrvr –upgr –SNY_RS –Ac:\sybase\REP-15_5\ASA11 –Cny_rs.cfg –Isql.ini –E ny_rs_errorlog
If the upgrade is successful, the upgrade mode shuts down Replication Server and you do not see any warning or error messages.
sp_start_rep_agent RSSD_name
resume log transfer from all
resume route to dest_rs
Upgraded RSSD successfully. The current RSSD version is '1571100'.
select * from rs_config where optionname='current_rssd_version'