Skip to content

Instantly share code, notes, and snippets.

@dincosman
Last active May 14, 2024 19:25
Show Gist options
  • Select an option

  • Save dincosman/a974aa233fc850c6517f4fe9109efa42 to your computer and use it in GitHub Desktop.

Select an option

Save dincosman/a974aa233fc850c6517f4fe9109efa42 to your computer and use it in GitHub Desktop.
Configure ORDS, enabling the MongoDB API and setting it to serve on a custom port (27003)
[oracle@oradev01 ~]$ export ORDS_CONFIG=/home/oracle/ordsconfig
[oracle@oradev01 ~]$ export PATH=/home/oracle/ords/bin:/opt/oracle/product/23ai/dbhomeFree/jdk/bin:$PATH
[oracle@oradev01 ~]$ export JAVA_HOME=/opt/oracle/product/23ai/dbhomeFree/jdk
[oracle@oradev01 ords]$ export ORACLE_HOME=/opt/oracle/product/23ai/dbhomeFree
[oracle@oradev01 ords]$ ords config set mongo.enabled true
[oracle@oradev01 ords]$ ords config set mongo.port 27003
ORDS: Release 24.1 Production on Sat May 04 20:24:41 2024
Copyright (c) 2010, 2024, Oracle.
Configuration:
/home/oracle/ordsconfig
The global setting named: mongo.enabled was set to: true
[oracle@oradev01 ords]$ ords serve
ORDS: Release 24.1 Production on Sat May 04 20:26:47 2024
Copyright (c) 2010, 2024, Oracle.
Configuration:
/home/oracle/ordsconfig
2024-05-04T20:26:48.929Z INFO HTTP and HTTP/2 cleartext listening on host: 0.0.0.0 port: 8080
2024-05-04T20:26:48.957Z INFO Disabling document root because the specified folder does not exist: /home/oracle/ordsconfig/global/doc_root
2024-05-04T20:26:48.958Z INFO Default forwarding from / to contextRoot configured.
2024-05-04T20:26:49.003Z SEVERE ORAMLVERSION null
2024-05-04T20:26:49.007Z INFO Oracle API for MongoDB listening on port: 27003
2024-05-04T20:26:49.007Z INFO The Oracle API for MongoDB connection string is:
mongodb://[{user}:{password}@]localhost:27003/{user}?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true
2024-05-04T20:26:52.065Z INFO Configuration properties for: |default|lo|
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment