Skip to content

Commit 6540651

Browse files
Update lab9_mongodb_api.txt
1 parent fda2c89 commit 6540651

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

data-platform/autonomous-database/autonomous-json/python-duality-views/files/lab9_mongodb_api.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ wget https://downloads.mongodb.com/compass/mongodb-mongosh-2.0.2.x86_64.rpm
77
yum localinstall mongodb-mongosh-2.0.2.x86_64.rpm
88

99
--we can find the url at the ords log we defined before, and we will have something like this:
10+
-- PLEASE CHANGE YOUR_PASSWORD TO A REAL PASSWORD !
11+
1012
--mongodb://[{user}:{password}@]localhost:27017/{user}?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true
1113

1214
--It is a default string. Let's connect with our user.
1315
--For the password is required to change # with %23: https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/mongo-using-oracle-database-api-mongodb.html
16+
-- PLEASE CHANGE YOUR_PASSWORD TO A REAL PASSWORD !
17+
1418

1519
mongosh --tlsAllowInvalidCertificates 'mongodb://myapp:YOUR_PASSWORD@localhost:27017/myapp?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true'
1620

@@ -125,4 +129,4 @@ db.BILLING_COLLECTION.insertOne(
125129
==========
126130

127131

128-
db.BILLING_COLLECTION.find({"email":"[email protected]"})
132+
db.BILLING_COLLECTION.find({"email":"[email protected]"})

0 commit comments

Comments
 (0)