Replicating JD Edwards data for a migration¶
What to consider when you use SQDR to migrate JD Edwards EnterpriseOne (JDE) data to another database: how to set up the groups and subscriptions, what differs by source and destination, and how to handle the largest tables.
JDE migrations are most often from Db2 for i to Oracle, from Db2 for i to SQL Server, or from Oracle to SQL Server, and usually include the three JDE schemas: production data, production control and production security.
Decide who creates the destination tables¶
There are two approaches:
- The JDE tools create them. Create the destination tables and their indexes ahead of time with the JDE tools, instead of letting the Replicator Service create them. The subscriptions then use the existing tables.
- The Replicator Service creates them, and you add any other indexes the JDE applications need with the JDE tools.
This makes sure the destination tables match the change data captured on the source. In particular:
- If the source tables are journaled with after images only (
*AFTER, for example because high-availability software set them up that way), each table needs the relative record number (RRN) as its key, in a column of the destination table that the JDE tools don't create (see Before and after images and The RRN or ROWID column). With before and after images (*BOTH), a unique index or primary key identifies the rows, and no RRN column is needed. - For SQL Server destinations, Unicode types (
NCHAR,NVARCHAR) give the most faithful mapping of IBM i EBCDIC data (see Promote CHAR types to wide-CHAR equivalent types).
- If the source tables are journaled with after images only (
Set up the incremental groups¶
| Setting | Value | See |
|---|---|---|
| Allow Checkpoint/Restart | On | Checkpoint/restart |
| Replicate Primary Keys, Replicate indexes, Replicate Foreign Keys | Off | General |
| Maximum Subscriptions | 10 | General |
| DML Replication (SQL Server destinations) | Merge | Choosing the apply method |
| Row Limit (SQL Server destinations) | 200000 | Apply |
Publish the tables you replicate (see Publish tables): Oracle sources always require it for incremental replication, and for other sources it improves performance, because SQDR can start reading the source's table definitions earlier.
Set up the subscriptions¶
- Destination DDL Options: Use existing table for baseline (tables created with the JDE tools) or Create every time subscription is Saved (tables the Replicator Service creates). See Decide who owns the destination table.
- Incremental Apply Options: Strict Apply Rules.
By source and destination¶
- Db2 for i to Oracle: for most tables, use the SQDR bundled Oracle driver with the native loader (Use native-loader function, if available), the fastest. Tables with more than 255 columns need another ODBC driver: define a second destination for the same Oracle database with that driver, and use it for those tables.
- Db2 for i to SQL Server: no special requirements.
- Oracle sources: a baseline from Oracle doesn't normally produce duplicate rows, so the destination keys can be created after the initial load, which is much faster than loading with the indexes in place.
Large tables and custom tables¶
- Large tables, mainly F0911 (general ledger), F0211 and F0902, load fastest in parallel slices with a parallel baseline.
- Production control tables can contain LOB data: set the Indeterminable-size column limit (KB) above the largest value (see Size the LOB limit).
- Custom tables (usually F59 tables, and other Fnnn tables) may need columns added after the subscription is created, because their custom columns aren't in the JDE creation scripts.
- Pausing replication for more than a day will likely require new baselines.
- JDE upgrades are best done in place with the JDE tools, outside replication.