Release 10.1B: OpenEdge Replication
User Guide


Re-enabling OpenEdge Replication after transition

After transition, you can re-enable what was once the target database on the source machine. To accomplish this, you can perform the following steps, or you can use the failback and transition procedures described in Chapter 4, " OpenEdge Replication: From Failure to Recovery."

To re-enable what was once the target database on the source machine after transition:

  1. Shut down the former target database from the target database directory using the following command:
  2. proshut target-db-name -by 
    

  3. Back up the former target database from the target database directory using the following command:
  4. probkup target-db-name target-db-name.bak 
    

  5. Copy or move target-db-name.bak to the source machine using FTP or Remote Copy (RCP). Be sure to use binary transfer.
  6. Disable OpenEdge Replication for the source database from the source database directory using the following command:
  7. proutil source-db-name -C disablesitereplication source 
    

  8. Restore the source database from the target database backup in the source database directory using the following command:
  9. prorest source-db-name target-db-name.bak 
    

    The structure file that existed prior to transition will be used by PROREST, so the physical structure of the newly restored source database matches the structure file from the restore. If PROREST does not find a structure file, the structure of the newly restored source database will not match what it was before the restore.

    For more details about backup and recovery strategies, see OpenEdge Data Management: Database Administration .

  10. Enable after imaging on the source database from the source database directory using the following command:
  11. rfutil source-db-name -C aimage begin 
    

  12. Enable the source database for OpenEdge Replication in the source database directory using the following command:
  13. proutil source-db-name -C enablesitereplication source 
    

  14. Delete the file source-db-name.repl.recovery.
  15. Enable the target database for OpenEdge Replication in the target database directory using the following command:
  16. proutil target-db-name -C enablesitereplication target 
    

  17. Delete the file target-db-name .repl.recovery.

The source machine now has the source database, and the target database has been re-enabled. OpenEdge Replication can again be used on both databases. To start OpenEdge Replication, see the "OpenEdge Replication startup and initialization process" section.

Re-enabling a second target database

If you have a second target database that was not designated as the transition database, you can re-enable OpenEdge Replication for the second target database.

To re-enable OpenEdge Replication for the second target database directory:

  1. Disable OpenEdge Replication for the second target database using the following command:
  2. proutil target2-db-name -C disablesitereplication target 
    

  3. Restore the second target database from the target database using the following command:
  4. prorest target2-db-name target-db-name.bak 
    

    The structure file that existed prior to transition will be used by PROREST, so the physical structure of the newly restored source database matches the structure file from the restore. If PROREST does not find a structure file, the structure of the newly restored source database will not match what it was before the restore. For more details about backup and recovery strategies, see OpenEdge Data Management: Database Administration.

    Enable the second target database for OpenEdge Replication using the following command:

    proutil target2-db-name -C enablesitereplication target 
    

  5. Delete the file target2-db-name.repl.recovery.

The source machine now has the source database, and the target databases have been re-enabled. OpenEdge Replication can again be used on the three databases. For details about starting OpenEdge Replication, see the "OpenEdge Replication startup and initialization process" section.


Copyright © 2006 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095