Migrate your OpenEdge database with Pro2
- Last Updated: July 1, 2024
- 4 minute read
- OpenEdge Pro2
- Version 6.5
- Documentation
You can use Pro2 to migrate your OpenEdge database with planned minimal downtime.
To stay competitive in the modern business world, your applications need to run as close to 24/7 as possible. In some cases, you can only have downtime limited to 4 hours. This can make upgrading or migrating your OpenEdge database difficult, even with proper planning. With Pro2 version 6.2, you can migrate your OpenEdge database with minimal downtime.
With proper planning, two short downtime events are needed to complete the migration process. The first event is used to setup the source database and to configure how changes to the database are recorded, whether they are trigger based or CDC.
The second downtime is used as the “cut over” event. The application continues to use the original database up to the point of the cut over.
A benefit of this method is if the project becomes nonviable for any reason, the original database is intact and functional. Downtime events, though small, can be planned to accommodate business specific priorities such as end of the month, end of quarter, etc.
To migrate your OpenEdge database with Pro2, watch the following video, or use the procedure below.
The first step in the migration process is to prepare your source and target databases.
To prepare your source database for migration, you can embed Pro2 repl tables directly into your OpenEdge database. However, doing so is optional.
- Open a Proenv instance.
- Navigate to the
Pro2folder from the Proenv window. Typecdfollowed by the name of the folder where you installed Pro2, for example,cd Pro2v61. - Type
cd dbto navigate to the database folder of Pro2.Note: Check the directory of thedbfolder to view the database instances. Type dir after navigating to the database folder. - Copy the
repl.dfandrepl.stfiles from the Pro2 installation folder. - Create an empty Repl database instance by typing prodb repl empty.
- Load the required table definitions in the Repl database by typing prowin repl -1.
The Procedure Editor window appears.
- Navigate to .
- In the Data Administration window, navigate to .
- In the Load Data Definitions window,
load the repl.df file and click OK.Note: The
repl.dffile is located in Pro2 folder name/db. - Start the source
repldatabase instance by enteringproserve database name -S port numberin Proenv.
- Copy the
.stand the.dffiles from your source database. - Modify the
.dfto be a type 2 target database. - Set up the new target database with a logical name so that replication program can identify it.
- From the Pro2 web interface, navigate to the Manage Replication tab.
- Click New.
The Create Replication window appears.
- Set up the settings for the replication instance, for example, Source DB Mode is set to Triggers, and the Source DB Connection is set to LAN.
- Click Next.
The Select Source tab appears.
- Enter Source DB Name
- Enter Host Name
- Enter the port number in the
Host Port/Servicefield (for example, 2233). - (Optional) Enter your User
Name and Password. Note: Enter your user name and password only if it is required by your source database.
- Select Test Connection.
If the test is successful, move on to set the target database. Review your source database details to ensure they are correct.
- Click Next.
The Set Target tab appears.
- Set OpenEdge as the Target Database Type.
- Enter the Target Database Name and Logical Name.
- Set the DB Host Name IP address.
- Enter the port number in the DB Port/Service field.
- Next, Generate the Target Schema
.dffiles.This
.dffiles contain the changes needed to facilitate the database migration. - Copy and paste them on to your target database.
- Open the Data Administrator and
use Load Data and definitions to load
the target database
.dffile. - After the process is completed, verify that the Pro2 fields have populated.
- Now load the inactive index
.dffile. This deactivates all of the running indexes. - When complete, verify that the indexes are inactive.
Return to Pro2 and finish the replication configuration process.
- Go to Actions.
- Click Run bulk load.
- Select your OpenEdge source database.
- Clear the bulk load results and click Run.
After the Bulk load process is completed, go to you target database and run the Procedure editor to confirm that the records were replicated.
It is essential that both bulk load and replication processes are running.
.df file. - Go to Actions.
- Select Target Database Utilities.
- Click Target Differential.
- Enter the Source Database name.
- Select OpenEdge Database Migration, and click Submit.
- After the job completes, copy and paste the sync
.dffile into your target database.Note: All Pro2 related fields and indexes are be generated in one of three different .df files if there is a default index present in any source table. The .df files generated are:- database name-tgt.df
- database name-inactIndex.df
- database name-defaultindex.df
- In the last step, you validate that there are no differences between your two databases by generating a CRC report.
You are now ready to start using your new database.