Hello everyone
In my last post, I presented how you can configure the Oracle Autonomous JSON Database to use the API for MongoDB.
And today, we're going to use the API to connect into MongoDB shell, create a simple collection and use those documents in the ADJ console.
If you want to see the first post, feel free to click here.
But always remember:
- This step-by-step worked for me, but it may not work for you.
- It's a basic and limited environment. The real life will be different, for sure.
- This post is for study and testing as well, and has no concern for performance and security best practices.
mongosh -u admin -p XXXZZZ 'mongodb://XXZZZ-IRONMAN.adb.sa-saopaulo-1.oraclecloudapps.com:27017/admin?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true'
I'll create a new collection and a new document using MongoSH. After that I'll create a new document using ADJ console and at the end I'll select this data in the console and MongoSH as well.
This example was adapted from the post "SQL NESTED Clause Instead of JSON_TABLE in Oracle Database 19c" from amazing ORACLE-BASE.
2) Now, I'll access the ADJ console. Click on the "Database Actions" button and select the option "JSON".
Nenhum comentário:
Postar um comentário
Isso te ajudou? Comente...