Migrate Data from Amazon DynamoDB to Oracle NoSQL Database Cloud Service
There are two options to migrate data from Amazon DynamoDB to Oracle NoSQL Database Cloud Service using the Oracle NoSQL Database Migrator:
- Using the Oracle NoSQL default schema
- Using a custom schema
Both options require a configuration JSON file that includes information about the source files and the target database (sink). In both scenarios the source is Amazon DynamoDB formatted JSON files stored in Amazon S3 Object Storage, while the target is the Oracle NoSQL Database Cloud Service database. Since Amazon DynamoDB is a schema-less database, we recommend migrating using an Oracle NoSQL default schema.
Migrate Data Using the Oracle NoSQL Default Schema
When migrating using the default schema, a new Oracle NoSQL Database Cloud Service table is created with either two or three columns: partition key, sort key (optional), and document. The partition key and sort key are migrated from the Amazon DynamoDB table to the Oracle NoSQL Database Cloud Service table. Any remaining Amazon DynamoDB attributes are aggregated in JSON format in the document column.
The following steps describe how to migrate data using the Oracle NoSQL default schema.
Migrate Data Using a Custom Schema
When using a custom schema to migrate, the new Oracle NoSQL Database Cloud Service table has to be defined similarly to the schema of the Amazon DynamoDB table, by using an Oracle NoSQL Database Cloud Service Table Data Definition Language (DDL). The attribute names and types for the new table should be the same as the attribute names and types on the Amazon DynamoDB table. The partition key and sort key have a limit of 2048 and 1024 bytes respectively, while in Oracle NoSQL Database Cloud Service these keys are limited to 64 bytes.