Add an Extract for MongoDB
Extract is a process that runs agains the source data source connection and extracts, or captures, data. Learn to add an Extract for MongoDB.
Related Topics
Add an Extract (26ai)
Before you begin, ensure that you:
- Review the details specific to this source connection type.
- Configure a MongoDB replicat set:
- OCI GoldenGate for Big Data uses the operations log (oplog) to read Change Data Capture (CDC) records. The oplog is a capped collection in MongoDB that maintains a rolling record of all operations that modify the database. Oplog files are created when a replica set is enabled in MongoDB.
- MongoDB Atlas comes preconfigured with a Replicat set. For on-premises MongoDB deployments, you must manually configure and deploy a Replicat set to enable oplog and CDC functionality. For on premises MongoDB, you need to deploy a Replica set.
- Have MongoDB version 3.6 or later.
- Have OCI GoldenGate support to capture the following operations:
INSERT,UPDATE,DELETE.
To add an Extract in for MongoDB:
Add an Extract (21c)
Learn to add an Extract process for a MongoDB source in OCI GoldenGate
To add an Extract for MongoDB:
You return to the Administration Service Overview page. Click the Extract name
to view details and reports of the Extract.
Replicats fail when using Trail file from MongoDB Extract with BINARY_JSON_FORMAT
When a Replicat uses a Trail file generated from a MongoDB Extract with BINARY_JSON_FORMAT in the Extract parameter file, the Replicat fails with the following error:
ERROR 2023-08-04 17:13:13.000421 [main] - Unable to decode column 0 : Input length = 1
java.nio.charset.MalformedInputException: Input length = 1 at
java.nio.charset.CoderResult.throwException(CoderResult.java:281) ~[?:1.8.0_311]at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:816) ~[?:1.8.0_311] at
oracle.goldengate.datasource.UserExitDataSource.createColumnValue(UserExitDataSource.java:1106)
[ggdbutil-21.9.0.0.3.001.jar:21.9.0.0.3.001] Exception in thread “main”
oracle.goldengate.util.GGException: Unable to decode column 0 : Input length = 1 at
oracle.goldengate.datasource.UserExitDataSource.createColumnValue(UserExitDataSource.java:1203)Workaround: When BINARY_JSON_FORMAT is removed from the Extract parameters, the Replicat runs successfully and documents are represented in Extended JSON format.