Migrate an Oracle JD Edwards EnterpriseOne database to AWS by using Oracle Data Pump and AWS DMS - AWS Prescriptive Guidance
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Migrate an Oracle JD Edwards EnterpriseOne database to AWS by using Oracle Data Pump and AWS DMS

Thanigaivel Thirumalai, Amazon Web Services

Summary

You can migrate and run your JD Edwards EnterpriseOne database on Amazon Relational Database Service (Amazon RDS). When you migrate your database to Amazon RDS, AWS helps manage backup tasks and high availability setup, so you can focus on maintaining your EnterpriseOne application and its functionality. For a list of key factors to consider during the migration process, see Oracle database migration strategies in AWS Prescriptive Guidance.

There are multiple ways to migrate an EnterpriseOne database, including:

  • Using Oracle Universal Batch Engine (UBE) R98403 for schema and table creation, and using AWS Database Migration Service (AWS DMS) for migration

  • Using native database tools for schema and table creation, and using AWS DMS for migration

  • Using native database tools for the migration of existing data (full load), and using AWS DMS for change data capture (CDC) tasks

This pattern covers the third option. It explains how to migrate your on-premises EnterpriseOne databases to Amazon RDS for Oracle by using Oracle Data Pump with AWS DMS and its CDC feature.

Oracle JD Edwards EnterpriseOne is an enterprise resource planning (ERP) solution for organizations that manufacture, construct, distribute, service, or manage products or physical assets. JD Edwards EnterpriseOne supports various hardware, operating systems, and database platforms.

When you migrate critical ERP applications such as JD Edwards EnterpriseOne, minimizing downtime is important. AWS DMS helps minimize downtime by supporting both full load and continuous replication from the source database to the target database. AWS DMS also provides monitoring and logging for the migration, which can help you identify and address issues that could cause downtime.

When you replicate changes with AWS DMS, you must specify a time or system change number (SCN) as the starting point for reading changes from the database logs. Keep these logs accessible on the server for a specified period (we recommend 15 days) so that AWS DMS can access these changes.

Prerequisites and limitations

Prerequisites

  • An active AWS account

  • An Amazon RDS for Oracle database provisioned in your AWS Cloud environment as the target database. For instructions, see the Amazon RDS documentation.

  • An EnterpriseOne database that’s running on premises or on an Amazon Elastic Compute Cloud (Amazon EC2) instance on AWS.

    Note

    This pattern is designed for migrating from on premises to AWS, but we tested it by using an EnterpriseOne database on an EC2 instance. If you plan to migrate from your on-premises environment, you must configure network connectivity between your on-premises environment and AWS.

  • Schema details. Identify which Oracle database schema (for example, DV920) you plan to migrate for EnterpriseOne. Before you start the migration process, gather the following details about the schema:

    • Schema size

    • The number of objects per object type

    • The number of invalid objects

Limitations

  • You must create any schemas that you want on the target Amazon RDS for Oracle database―AWS Database Migration Service (AWS DMS) doesn't create them for you. (The Epics section describes how to use Data Pump to export and import schemas.) The schema name must already exist for the target Oracle database. AWS DMS imports tables from the source schema to the user or the schema, which AWS DMS uses to connect to the target instance. To migrate multiple schemas, you can create multiple replication tasks. You can also migrate data to different schemas on a target instance. To do this, use schema transformation rules on the AWS DMS table mappings.

  • We tested this pattern with a demo dataset. Validate compatibility for your dataset and customizations.

  • This pattern uses an EnterpriseOne database that's running on Microsoft Windows. However, you can use the same process with other operating systems that AWS DMS supports.

Architecture

The following diagram shows a system that runs JD Edwards EnterpriseOne on an Oracle source database and an Amazon RDS for Oracle target database. You export the data from the source Oracle database, import it into the target Amazon RDS for Oracle database by using Oracle Data Pump, and replicate ongoing changes by using change data capture (CDC) in AWS Database Migration Service (AWS DMS).

  1. Capture the current system change number (SCN) on the source database. This SCN is the consistency point for the Data Pump export and the starting point for CDC in AWS DMS.

  2. Oracle Data Pump exports the JD Edwards EnterpriseOne schemas as of the SCN (expdp with flashback_scn). You copy the dump file to the Amazon RDS for Oracle instance over a database link by using DBMS_FILE_TRANSFER, and then import it by using impdp.

  3. AWS DMS reads ongoing changes from the source database redo logs, starting at the SCN. The changes travel over AWS Direct Connect to the AWS DMS source endpoint.

  4. The replication task on the AWS DMS replication instance continuously sends the changes to the target endpoint.

  5. AWS DMS applies the changes to the Amazon RDS for Oracle instance in a private subnet. Replication continues until cutover.

  6. At cutover, you stop the JD Edwards EnterpriseOne application and the replication task, synchronize the sequence values on the target, and then point JD Edwards EnterpriseOne to the Amazon RDS for Oracle instance.

Tools

AWS services

Other services

  • Oracle Data Pump helps you move data and metadata from one database to another at high speed.

Best practices

Migrating LOBs

If your source database contains large binary objects (LOBs) that need to be migrated to the target database, AWS Database Migration Service (AWS DMS) provides the following options:

  • Full LOB mode – AWS DMS migrates all the LOBs from the source to the target database regardless of their size. Although the migration is slower than the other modes, the advantage is that data isn’t truncated. For better performance, you can create a separate task on the new replication instance to migrate the tables that have LOBs that are larger than a few megabytes.

  • Limited LOB mode – You specify the maximum size of LOB column data, which allows AWS DMS to pre-allocate resources and apply the LOBs in bulk. If the size of the LOB columns exceeds the size that is specified in the task, AWS DMS truncates the data and sends warnings to the AWS DMS log file. You can improve performance by using limited LOB mode if your LOB data size is within the limited LOB size.

  • Inline LOB mode – You can migrate LOBs without truncating the data or slowing the performance of your task by replicating both small and large LOBs. First, specify a value for the InlineLobMaxSize parameter, which is available only when full LOB mode is set to true. The AWS DMS task transfers the small LOBs inline, which is more efficient. Then, AWS DMS migrates the large LOBs by performing a lookup from the source table. However, inline LOB mode works only during the full load phase.

Generating sequence values

During the AWS DMS CDC process, sequence values aren't replicated from the source database. To avoid duplicate values after cutover, inventory the sequences after the import, keep target triggers disabled during CDC, and reset each target sequence from the source value after replication stops. For the steps, see the Cut over epic.

AWS Secrets Manager

To help manage your credentials, we recommend that you follow the instructions in the blog post Manage your AWS DMS endpoint credentials with AWS Secrets Manager.

Performance

  • Replication instances ‒ For guidance on choosing an appropriate instance size, see Selecting the best size for a replication instance in the AWS DMS documentation.

  • Connectivity options ‒ To help avoid latency issues, we recommend that you choose a connectivity option that meets your latency and bandwidth requirements. AWS Direct Connect provides a dedicated connection between your corporate data centers and AWS. While in transit, your network traffic remains on the AWS global network and doesn't go over the internet. This reduces the chance of hitting bottlenecks or unexpected increases in latency when compared with using a VPN or the public internet.

  • Network bandwidth ‒ To optimize performance, verify that your network throughput is sufficient for your workload. If you use a VPN tunnel between your on-premises source database and AWS DMS, verify that the VPN bandwidth is sufficient for your workload.

  • Task parallelism ‒ You can speed up data replication by loading multiple tables in parallel during full load. This pattern uses relational database management system (RDBMS) endpoints, so this option applies only to the full load process. The MaxFullLoadSubTasks parameter controls task parallelism. This parameter determines how many full load subtasks run in parallel. By default, this parameter is set to 8, which means that AWS DMS loads eight tables (if selected in table mapping) together during full load mode. You can adjust this parameter in the full-load task settings section of the JSON script for the task.

  • Table parallelism ‒ AWS DMS also enables you to load a single large table by using multiple parallel threads. This is particularly useful for Oracle source tables that have billions of records as well as multiple partitions and subpartitions. If the source table isn’t partitioned, you can use column boundaries for parallel loads.

  • Split loads ‒ When you split loads across multiple tasks or replication instances, consider transaction boundaries when you capture changes.

Epics

TaskDescriptionSkills required

Generate the SCN.

When the source database is active and in use by the EnterpriseOne application, initiate the data export with Oracle Data Pump. You must first generate a system change number (SCN) from the source database for both data consistency during the export with Oracle Data Pump and as a starting point for CDC in AWS DMS.

To generate the current SCN from your source database, use the following SQL statement:

SQL> select current_scn from v$database; CURRENT_SCN ----------- 30009727

Save the generated SCN. You will use the SCN when you export the data and to create the AWS DMS replication task.

DBA

Create the parameter file.

To create a parameter file for exporting the schema, you can use the following code.

directory=DMS_DATA_PUMP_DIR logfile=export_dms.log dumpfile=export_dms_data.dmp schemas=<schema name> flashback_scn=<SCN from previous command>
Note

You can also define your own DATA_PUMP_DIR by using the following commands, based on your requirements.

SQL> CREATE OR REPLACE DIRECTORY DMS_DATA_PUMP_DIR AS '<Directory for dump>'; Directory created. SQL> GRANT READ, WRITE ON DIRECTORY DMS_DATA_PUMP_DIR TO SYSTEM; Grant succeeded.
DBA

Export the schema.

To perform the export, use the expdp utility as follows:

C:\Users\Administrator>expdp system/********@<DB Name> PARFILE='<Path to PAR file create above>' Export: Release 19.0.0.0.0 - Production on *** *** ** **:**:** **** Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production Starting "SYSTEM"."SYS_EXPORT_SCHEMA_02": system/********@<DB Name>PARFILE='E:\exp_dms_datapump.par' Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Processing object type SCHEMA_EXPORT/STATISTICS/MARKER Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT . . exported "<Schema Name>"."<Table Name>" 228.9 MB 496397 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded ****************************************************************************** Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_02 is: E:\DMSDUMP\EXPORT_DMS_DATA.DMP Job "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully completed at *** *** ** **:**:** **** elapsed 0 00:01:57
DBA
TaskDescriptionSkills required

Transfer the dump file to the target instance.

To transfer your files by using the DBMS_FILE_TRANSFER utility, you need to create a database link from the source database to the Amazon RDS for Oracle instance. After the link is established, you can use the utility to transfer the Data Pump files directly to the Amazon RDS instance.

Alternatively, you can transfer the Data Pump files to Amazon Simple Storage Service (Amazon S3) and then import them into the Amazon RDS for Oracle instance. For more information about this option, see the Additional information section.

To create a database link ORARDSDB that connects to the Amazon RDS master user at the target DB instance, run the following commands on the source database:

sqlplus / as sysdba SQL*Plus: Release 19.0.0.0.0 on *** *** ** **:**:** **** Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle. All rights reserved. Connected to: Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 Version 19.3.0.0.0 SQL> create database link orardsdb connect to admin identified by "******" using '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orcl.******.us-east-1.rds.amazonaws.com)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))'; Database link created. SQL>
DBA

Test the database link.

Test the database link to make sure that you can connect to the Amazon RDS for Oracle target database by using sqlplus.

SQL> select name from v$database@orardsdb; NAME --------- ORCL
DBA

Transfer the dump file to the target database.

To copy the dump file over to the Amazon RDS for Oracle database, you can either use the default DATA_PUMP_DIR directory or you can create your own directory by using the following code, which has to run on the target Amazon RDS instance:

exec rdsadmin.rdsadmin_util.create_directory(p_directory_name => 'DMS_TARGET_PUMP_DIR'); PL/SQL procedure successfully completed.

The following script copies a dump file named EXPORT_DMS_DATA.DMP from the source instance to a target Amazon RDS for Oracle database by using the database link named orardsdb. You must run the script on the source database instance.

BEGIN DBMS_FILE_TRANSFER.PUT_FILE( source_directory_object => 'DMS_DATA_PUMP_DIR', source_file_name => 'EXPORT_DMS_DATA.DMP', destination_directory_object => 'DMS_TARGET_PUMP_DIR', destination_file_name => 'EXPORT_DMS_DATA.DMP', destination_database => 'orardsdb'); END; PL/SQL procedure successfully completed.
DBA

List the dump file in the target database.

After the PL/SQL procedure is complete, you can list the data dump file in the Amazon RDS for Oracle database by using the following code:

select * from table (rdsadmin.rds_file_util.listdir(p_directory => 'DMS_TARGET_PUMP_DIR'));
DBA

Create JDE-specific users in the target Instance.

Create a JD Edwards profile and role by using these commands in the target instance:

SQL> CREATE PROFILE "JDEPROFILE" LIMIT IDLE_TIME 15; Profile created. SQL> CREATE ROLE "JDE_ROLE"; Role created. SQL> CREATE ROLE "JDEADMIN"; CREATE ROLE "JDEUSER"; Role created. Role created.

Grant the required permissions to the role:

SQL> GRANT CREATE ANY SEQUENCE TO JDE_ROLE; GRANT DROP ANY SEQUENCE TO JDE_ROLE; GRANT CREATE ANY TRIGGER TO JDE_ROLE; GRANT DROP ANY TRIGGER TO JDE_ROLE;
DBA, JDE CNC

Create tablespaces in the target instance.

Create the required tablespaces in the target instance by using the following commands for the schemas that are involved in this migration:

SQL> CREATE TABLESPACE <Tablespace Name for Tables>; Tablespace created. SQL> CREATE TABLESPACE <Tablespace Name for Indexes>; Tablespace created.
DBA, JDE CNC

Initiate the import on the target database.

Before you start the import process, set up the roles, schemas, and tablespaces on the target Amazon RDS for Oracle database by using the data dump file.

To perform the import, access the target database with the Amazon RDS primary user account, and use the connection string name in the tnsnames.ora file, which includes the Amazon RDS for Oracle Database tns-entry. If necessary, you can include a remap option to import the data dump file into a different tablespace or under a different schema name.

To start the import, use the following code:

impdp admin@orardsdb directory=DMS_TARGET_PUMP_DIR logfile=import.log dumpfile=EXPORT_DMS_DATA.DMP

To ensure a successful import, check the import log file for any errors, and review details such as object count, row count, and invalid objects. If there are any invalid objects, recompile them. Additionally, compare the source and target database objects to confirm that they match.

DBA

Inventory sequences on the source and target.

Record each sequence and its current value. You use this list to sync and validate sequences at cutover. Run this query on the source, and then on the target after the import:

SELECT sequence_owner, sequence_name, last_number,

increment_by, cache_size

FROM dba_sequences

WHERE sequence_owner IN ('<JDE schema>')

ORDER BY sequence_owner, sequence_name;

Confirm that the number of sequences on the target matches the source. On Amazon RDS for Oracle, run the query as the primary user, which can read DBA_SEQUENCES.

DBA

Disable triggers on the target during CDC.

Triggers on the target fire again when AWS Database Migration Service (AWS DMS) applies changes. That can call NEXTVAL on the target or duplicate audit rows. Find the enabled triggers and disable them until cutover:

SELECT owner, trigger_name, table_name

FROM dba_triggers

WHERE owner IN ('<JDE schema>') AND status = 'ENABLED';

ALTER TRIGGER <owner>.<trigger_name> DISABLE;

Save the list. You re-enable these triggers in the Cut over epic.

DBA
TaskDescriptionSkills required

Download the template.

Download the AWS CloudFormation DMS_instance.yaml template to provision the AWS DMS replication instance and its source and target endpoints.

Cloud administrator, DBA

Start the stack creation.

  1. Sign in to the AWS Management Console, and open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation.

  2. Choose Create stack.

  3. For Specify template, choose Upload a template file.

  4. Choose Choose file.

  5. Choose the DMS_instance.yaml file.

  6. Choose Next.

Cloud administrator, DBA

Specify the parameters.

  1. For Stack name, enter your stack name.

  2. For AWS DMS Instance Parameters, enter the following parameters:

    • DMSInstanceType – Choose the required instance for the AWS DMS replication instance, based on your business needs.

    • DMSStorageSize – Enter the storage size for the AWS DMS instance, based on the size of your migration.

  3. For Source Oracle Database Configuration, enter the following parameters:

    • SourceOracleEndpointID – The source Oracle database server name

    • SourceOracleDatabaseName – The source database service name or session ID (SID) as applicable

    • SourceOracleUserName – The source database username (the default is system)

    • SourceOracleDBPassword – The source database username’s password

    • SourceOracleDBPort – The source database port

  4. For Target RDS for Oracle Database Configuration, enter the following parameters:

    • TargetRDSOracleEndpointID – The target RDS database endpoint

    • TargetRDSOracleDatabaseName – The target RDS database name

    • TargetRSOracleUserName – The target RDS username

    • TargetRDSOracleDBPassword – The target RDS password

    • TargetOracleDBPort – The target RDS database port

  5. For VPC, Subnet and Security Group Configuration, enter the following parameters:

    • VPCID – The VPC for the replication instance

    • VPCSecurityGroupId – The VPC security group for the replication instance

    • DMSSubnet1 – The subnet for Availability Zone 1

    • DMSSubnet2 – The subnet for Availability Zone 2

  6. Choose Next.

Cloud administrator, DBA

Create the stack.

  1. On the Configure stack options page, for Tags, enter any optional values.

  2. Choose Next.

  3. On the Review page, verify the details, and then choose Submit.

The provisioning should complete in approximately 5–10 minutes. It is complete when the AWS CloudFormation Stacks page shows CREATE_COMPLETE.

Cloud administrator, DBA

Set up the endpoints.

  1. Open the AWS DMS console at https://console.aws.amazon.com/dms/v2/.

  2. For Resource management, choose Replication instances, and then review the replication instances.

  3. For Resource management, choose Endpoints, and then review the endpoints.

Cloud administrator, DBA

Test connectivity.

After the source and target endpoints shows the status as Active, test the connectivity. Choose Run test for each endpoint (source and target) to make sure that the status shows as successful.

Cloud administrator, DBA
TaskDescriptionSkills required

Create the replication task.

Create the AWS DMS replication task by using the following steps:

  1. Open the AWS DMS console at https://console.aws.amazon.com/dms/v2/.

  2. In the navigation pane, choose Database migration tasks.

  3. In the Task configuration box, for Task identifier, enter your task identifier.

  4. For Replication instance, choose the AWS DMS replication instance that you created.

  5. For Source database endpoint, choose your source endpoint.

  6. For Target database endpoint, choose your target Amazon RDS for Oracle database.

  7. For Migration type, choose Replicate data changes only. If you receive a message that supplemental logging needs to be turned on, follow the instructions in the Troubleshooting section.

  8. In the Task settings box, choose Enable custom CDC start mode.

  9. For System change number, enter the Oracle database SCN that you generated from the source Oracle database.

  10. Choose Enable validation.

  11. Choose Enable CloudWatch logs.

    By turning on these settings, you can validate the migrated data and use Amazon CloudWatch Logs to review the AWS DMS replication task logs.

  12. Under Selection rules, complete the following:

    • For Schema, choose Enter a schema.

    • For Schema name, enter the JDE schema name (for example: DV920).

    • For Table name, enter %.

    • For Action, choose Include.

  13. Choose Create task.

After you create the task, AWS DMS migrates ongoing changes to the Amazon RDS for Oracle database instance from the SCN that you provided under CDC start mode. You can also verify the migration by reviewing the CloudWatch logs.

Cloud administrator, DBA

Repeat the replication task.

Repeat the previous steps to create replication tasks for other JD Edwards schemas that are part of the migration.

Cloud administrator, DBA, JDE CNC administrator
TaskDescriptionSkills required

Validate the data transfer.

After the AWS DMS task starts, you can check the Table statistics tab on the Tasks page to see the changes made to the data.

You can monitor the status of ongoing replication in the console on the Database migration tasks page.

For more information, see AWS DMS data validation.

Cloud administrator, DBA
TaskDescriptionSkills required

Stop the source application.

Stop the JD Edwards EnterpriseOne services (enterprise, web, and batch servers) that connect to the source database so that no new transactions are created. Confirm that no application sessions remain.

App owner

Confirm that replication has caught up.

In the AWS DMS console, open the replication task. Confirm that the CDCLatencySource and CDCLatencyTarget metrics are near zero and that table statistics show no new changes. If data validation is turned on, confirm that no tables are in an error or mismatched state.

Cloud administrator, DBA, JDE CNC administrator

Stop the replication task.

Stop the AWS DMS task for each JD Edwards schema.

DBA, Cloud administrator

Generate the sequence sync script.

On the source database, generate one statement for each sequence:

SET PAGESIZE 0 LINESIZE 300 FEEDBACK OFF

SPOOL seq_sync.sql

SELECT 'ALTER SEQUENCE "' || sequence_owner || '"."' || sequence_name ||

'" RESTART START WITH ' || (last_number + increment_by) || ';'

FROM dba_sequences

WHERE sequence_owner IN ('<JDE schema>');

SPOOL OFF

LAST_NUMBER is the cached high-water mark, so the new start value is greater than any value that the source has issued. This can leave gaps in numbering but helps prevent duplicates. For sequences with a negative increment, review the generated value manually.

DBA

Apply the script on the target.

Connect to the Amazon RDS for Oracle instance as the primary user (or the schema owner) and run the script:

SQL> @seq_sync.sql

ALTER SEQUENCE ... RESTART requires Oracle Database 18c or later. On earlier releases, drop and re-create each sequence with START WITH <value>, keeping the original INCREMENT BY, CACHE, and CYCLE settings, and then grant the privileges again.

DBA

Validate the sequences.

Run the inventory query from the import epic on both databases. For each sequence, the target LAST_NUMBER must be greater than or equal to the source LAST_NUMBER. Also compare the Next Numbers tables (F0002 and F00021) for the key document types.

DBA, App owner

Re-enable triggers on the target.

Re-enable the triggers that you disabled during CDC by running ALTER TRIGGER <owner>.<trigger_name> ENABLE; for each one. Then recompile invalid objects and confirm that the invalid-object count matches the source.

DBA

Launch the JD Edwards application.

Launch the target JD Edwards presentation and logic tier application on AWS, and direct it to the Amazon RDS for Oracle database. When you access the application, confirm that all connections use the Amazon RDS for Oracle database. Enter a test transaction to confirm that numbering continues without errors.

DBA, App owner

Turn off the source database.

After you confirm that there are no more connections, you can turn the source database off.

DBA

Troubleshooting

IssueSolution

You receive a warning message to enable supplemental logging in the source database for on-going replication

Enter these commands to enable supplemental logging:

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS; SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS; SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (UNIQUE) COLUMNS; SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (FOREIGN KEY) COLUMNS; SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS; SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (UNIQUE) COLUMNS;

AWS DMS has supplemental logging turned off.

Supplemental logging is turned off by default in AWS DMS. To turn it on for a source Oracle endpoint:

  1. Sign in to the AWS Management Console and open the AWS DMS console at https://console.aws.amazon.com/dms/v2/.

  2. Choose Endpoints.

  3. Choose the Oracle source endpoint that you want to add supplemental logging to.

  4. Choose Modify.

  5. Choose Advanced, and then add the following code to the Extra connection attributes text box:

    addSupplementalLogging=Y
  6. Choose Modify.

Supplemental logging isn’t enabled at the CDB level.

  1. Enter this command:

    SQL> alter session set container = CDB$ROOT; Session altered.
  2. Repeat the steps to enable supplemental logging.

You receive the error message: "Test Endpoint failed: Application-Status: 1020912, Application-Message: LogMiner is not supported in Oracle PDB environment Endpoint initialization failed."

If you encounter this error message, you can use Binary Reader instead of LogMiner.

Under Endpoint settings, add this line to the extra connection attributes for your source database:

useLogMinerReader=N;useBfile=Y;

Related resources

Additional information

Transfer files using Amazon S3

To transfer the files to Amazon S3, you can use the AWS Command Line Interface (AWS CLI) or the Amazon S3 console. After you transfer the files to Amazon S3, you can use the Amazon RDS for Oracle instance to import the Data Pump files from Amazon S3.

If you choose to transfer the dump file using Amazon S3 integration as an alternative method, perform the following steps:

  1. Create an S3 bucket.

  2. Export the data from the source database using Oracle Data Pump.

  3. Upload the Data Pump files to the S3 bucket.

  4. Download the Data Pump files from the S3 bucket to the target Amazon RDS for Oracle database.

  5. Perform the import using the Data Pump files.

Note

To transfer large data files between Amazon S3 and Amazon RDS DB instances, use the Amazon S3 Transfer Acceleration feature.