MongoDB on OCI

https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/mongo-using-oracle-database-api-mongodb.html

MongoShell download install

https://github.com/mongodb-js/mongosh/releases

wget https://github.com/mongodb-js/mongosh/releases/download/v2.2.5/mongodb-mongosh-2.2.5.x86_64.rpm

sudo rpm -ivh mongodb-mongosh-2.2.5.x86_64.rpm

  1. Open the Oracle Cloud Infrastructure Console for your Autonomous Database.
  2. Select Database Actions.
  3. From the Database Actions Launchpad, select Administration > Database Users.
  4. Select + Create User on the Database Users page.
  5. Enter a User Name and Password for your test user. Select Web Access, and set the Quota on tablespace DATA.

mongosh –tls –tlsAllowInvalidCertificates ‘mongodb://TESTUSER:Felix_test_123456@xpcyy1qu.adb.ap-tokyo-1.oraclecloudapps.com:27017/[user]?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true’

Print Friendly, PDF & Email

Leave a Reply

Your email address will not be published. Required fields are marked *