Skip to content

Commit 28eda97

Browse files
authored
Enhancements WMS ID 11382 (#851)
Enhancements to WMS ID 11382 Needed to make the workshop more bullet proof for databases where the MongoDB API is not enabled.
1 parent fa6e22d commit 28eda97

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed
292 KB
Loading
123 KB
Loading
92.1 KB
Loading
121 KB
Loading

json-mongo-duality-general/mongodb-api/mongodb-api.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,36 @@ In this section, you will:
243243
244244
### Interact with native JSON Collections in the Oracle Database using Mongo API
245245
246-
1. First, you must set the URI to the Mongo API running in ORDS on your machine. You can find the URI in the Autonomous Database console in the *Tool Configuration* tab.
246+
247+
1. First, you must set the URI to the Mongo API running in ORDS on your machine.
248+
249+
**Your Autonomous Database should be configured with an enabled MongoDB API, ready for you to go. If you don't see the MongoDB API enabled in your environment, then let's enable it quickly.**
250+
251+
You need to do two things:
252+
253+
1. Enable Access Control Lists (ACLs)
254+
255+
Due to security precautions, the MongoDB API is not enabled to the public out of the box, but requires some conscious control access. To enable ACLs, go to the details page of your autonomous database and select to edit the access control lists.
256+
257+
![Set ACL](./images/set-acl.png " ")
258+
259+
Choose an ACL that enables the machine where you have installed the MongoDB tools to access the database. For demonstration purposes, the most pragmatic way to do this is to set the CIDR block to 0.0.0.0/0 which allows full access from the Internet. **This is for demonstration purposes only and never meant for production environment or systems with sensitive data.**
260+
261+
![Set CIDR block](./images/set-cidr-block.png " ")
262+
263+
Save your changes and go back to the detail page of your Autonomous Database.
264+
265+
2. Ensure that the MongoDB API is enabled.
266+
267+
You can find the URI in the Autonomous Database console in the *Tool Configuration* tab if the MongoDB API is enabled. If the API is disabled, then enable the MongoDB API.
268+
269+
![Edit state of MongoDB API](./images/edit-mongo-api.png " ")
270+
271+
Enable the MongoDB API and save the state.
272+
273+
![Enable MongoDB API](./images/enable-mongo-api.png " ")
274+
275+
If the MongoDB API is successfully enabled, it will show you the URI to copy.
247276
248277
![Copy Mongo URI](./images/copy-mongo-uri.png " ")
249278
@@ -255,6 +284,7 @@ In this section, you will:
255284
</copy>
256285
```
257286
287+
258288
Let's create an environment variable called *URI* which contains the MongoDB URI including the user and password information.
259289
260290
On Mac or Linux, issue the following command in your shell to set the environment variable. If you close the shell, you need to set this variable again.

0 commit comments

Comments
 (0)