Migrate Data from MongoDB to Oracle NoSQL Database Cloud Service
There are two options to migrate data from MongoDB 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 MongoDB formatted JSON files stored in OCI Object Storage, while the target is the Oracle NoSQL Database Cloud
Service database. The configuration JSON file must include the transforms
section when using a custom schema.
Migrate Data Using the Oracle NoSQL Default Schema
id
, and document
. For each entry in the MongoDB JSON export file, the _id
column is migrated to id
in the Oracle NoSQL Database Cloud
Service table, while the other columns of the MongoDB JSON export file are aggregated in the new 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 must be defined similarly to the schema of the MongoDB table. The NoSQL Database Migrator configuration file must include a transform entry instructing NoSQL Database Migrator how to convert the column _id
to id
in the new table.
The following steps describe how to migrate data using an Oracle NoSQL custom schema.