Kbase P87745: Sample script to enable database replication using Fathom Replication
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/9/2010 |
|
Status: Verified
GOAL:
Sample script to enable database replication using Fathom Replication
GOAL:
What are the steps to enable Fathom Replication
GOAL:
Steps to deploy replication using Fathom Replication
FACT(s) (Environment):
All Supported Operating Systems
Fathom Replication
FIX:
This script will enable database replication using Fathom for Replication using a copy of the sports2000 database.
It will use the default port and names, so make sure the port 4501 is not in use.
Follow the steps to run the script:
1. Make sure the environment variables for Progress is set correctly. Using proenv (from the OpenEdge Program Group) is a good way to do it.
2. Go to the working directory (proenv will tell what this is when you launch it if you do not know).
3. Create a file called add.st with the after image extents.
This is an example of a .st file that creates 3 variable AI extents on the database:
a .
a .
a .
For Windows create a batch file with the extension .bat and enter this information:
CALL procopy %DLC%\sports2000 source
CALL probkup source source.full.bkp
CALL prostrct add source add.st
CALL rfutil source -C aimage begin -G 0
CALL proutil source -C enableSiteReplication source
CALL probkup source incremental source.incr.bkp
CALL prorest target source.full.bkp
CALL prorest target source.incr.bkp
CALL proutil target -C enableSiteReplication target
CALL copy %DLC%\properties\source.repl.properties source.repl.properties
CALL copy %DLC%\properties\target.repl.properties target.repl.properties
CALL proserve -db target -DBService replagent -S 4501
CALL proserve -db source -DBService replserv
From a proenv prompt run fle-name.bat
For UNIX:
procopy $DLC/sports2000 source
probkup source source.full.bkp
prostrct add source add.st
rfutil source -C aimage begin -G 0
proutil source -C enableSiteReplication source
probkup source incremental source.incr.bkp
prorest target source.full.bkp
prorest target source.incr.bkp
proutil target -C enableSiteReplication target
cp /usr/progress/91d/repl20/properties/source.repl.properties source.repl.properties
cp /usr/progress/91d/repl20/properties/target.repl.properties target.repl.properties
proserve -db target -DBService replagent -S 4501
proserve -db source -DBService replserv