Salesforce

How to re-enable replication after having disabled it

« Go Back

Information

 
TitleHow to re-enable replication after having disabled it
URL NameP95272
Article Number000157528
EnvironmentProduct: OpenEdge
Version: 10.1x, 10.2x, 11.x
OS: All Supported Operating Systems
Question/Problem Description
How to re-enable replication after having disabled it.
What to do after -C disableSiteReplication has been run.
What steps to follow if site replication was disabled and source database needs to be restored prior to re-enabling replication.
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution

Make sure to configure Fathom Replication server properties file with defer-agent-startup set to a valid (high enough) time-out value so that it can start "source" database prior to having the replication agent running on the "target" database.

  1. Run the following command to shut down the database: 
proshut <source> -by
  1. Disable site replication on the source database.  Command:  proutil <source> -C disablesitereplication source.
  2. Run rfutil with the aimage end parameters to disable after imaging.  This will disable after imaging and reinitialize counters: 
rfutil <source> -C aimage end
  1. If the source database needed to be restored from a backup (for some reason like due to corruption), restore the database at this point in the process.  If not go to step 5.
  2. If the source database was restored, take a backup of the database using probkup.  If the backup of the database is done using Operating System commands (example: copy / cp) then use rfutil dbname -C mark backedup.
  3. Run the rfutil command with the aimage begin parameters to re-enable after imaging on the source database:
rfutil <source> -C aimage begin
  1. Delete the relevant <dbname>.repl.recovery file from both the source and target database directories.
  2. Run proutil to enable site replication on the source database: 
proutil <source> -C enableSiteReplication source
  1. Make a backup of the database.  Example:  probkup dbname dbname.bak.
  2. Run the following command on the source machine to start the database and the replication server on the source database: 
proserve <source> -DBService replserv

*Add any additional database parameters as needed.

  1. Restore the backup of the database taken in step 8 to the target machine.  Once restored, this will become the target database. 
  2. Run the proutil command to then enable site replication on the new target database: 
proutil <target> -C enableSiteReplication target
  1. Run the proserve command with the -DBService replagent to start the replication agent on the target database: 
proserve <target> -DBService replagent -S <service/port>

*Add any additional database parameters as needed.

  1. May need to run dsrutil <source> -C restart server at this point depending upon if time-out is reached.
Workaround
Notes
References to Written Documentation:

OpenEdge® Replication: User Guide: Moving From Failure to Recovery with OpenEdge Replication : Restoring a source database
Keyword Phrase
Last Modified Date9/13/2015 3:15 AM

Powered by