Connect to Oracle API for MongoDB
Use the Oracle API for MongoDB connection type to replicate data from MongoDB to a user-managed on premises or cloud Oracle Database.
Before you begin
Before you create the connection, ensure you have the following:
- Oracle Database (21c/ 23ai)
- A pluggable database (PDB) in Oracle Database.
- A user created for ORDS.
- ORDS which allows to connect to Oracle Database
using Oracle Database MongoDB API
- Generate SSL certificates for ORDS. Ensure you configure the certificates with FQDN.
- Install ORDS and configure with SSL.
- Configure the required policies to enable secure Vault and Secrets access, such as use secrets, use vaults, and read secret-bundles. For more information, see Minimum recommended policies.
Create the connection
To connect to Oracle API for MongoDB:
After the connection is created, it appears in the Connections list.
Ensure that you assign the connection to a deployment, and then Add a Replicat for MongoDB.
Known issues
MongoDB, DocumentDB, and Oracle JSON Collection TLS Security Protocol
If the MongoDB Replicat, DocumentDB Replicat, or Oracle JSON
Collection connection fails with the following error in the Report
file:
Error: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Workaround: Add the following property to your
Properties file, update <connection_ocid>
with your connection OCID and keep the rest as is.
jvm.bootoptions=-Djavax.net.ssl.trustStore=/u02/connections/<connection_ocid>/truststore.pkcs12 -Djavax.net.ssl.trustStorePassword=Welcome123