Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unknown command: ords ords.war - What am I doing wrong installing ORDS 22.1.1.133.1148?

Adam vonNiedaJun 14 2022 — edited Jun 16 2022

Edit: See the last post for the root cause of this

Redhat 7 x86_64 / Oracle 19c / Java 17
java -version
java version "17.0.3.1" 2022-04-22 LTS
export PATH=/tmp/22.1.1.133.1148/bin:$PATH
pwd
/tmp/22.1.1.133.1148
==========================================
ords --config /opt/app/oracle/apex_config_upg install
==========================================
2022-06-14T20:47:11.436Z INFO Your configuration folder /tmp/22.1.1.133.1148 is located in ORDS product folder. Oracle recommends to use a different configuration folder.
ORDS: Release 22.1 Production on Tue Jun 14 20:47:11 2022
Copyright (c) 2010, 2022, Oracle.
Configuration:
/tmp/22.1.1.133.1148/
Unknown command: ords ords.war
Use ords --help to review the help for this command
================
So I try "ords --help"
================
2022-06-14T20:49:15.280Z INFO Your configuration folder /tmp/22.1.1.133.1148 is located in ORDS product folder. Oracle recommends to use a different configuration folder.
ORDS: Release 22.1 Production on Tue Jun 14 20:49:15 2022
Copyright (c) 2010, 2022, Oracle.
Configuration:
/tmp/22.1.1.133.1148/
Unknown command: ords ords.war
Use ords --help to review the help for this command

This post has been answered by thatJeffSmith-Oracle on Jun 15 2022
Jump to Answer

Comments

thatJeffSmith-Oracle Feb 13 2025

Your ENTRA users will get authenticated via JSON Web Tokens, and their Entra roles will determine which ORDS REST APIs they can hit.

When they hit an endpoint, it'll execute code in the database as the database user that owns the schema where the REST API is defined, not as Entra defiend end user. In fact, the Entra users won't have accounts in the database (they could, but wont' need to).

The :current_user field as far as ords is concerned would be the corresponding oauth2 client or JWT issued for the authorizied session.

Your prehook should be able to alter the session to set the context that would put your RLS/VPD security policy in play.

1 - 1

Post Details

Added on Jun 14 2022
4 comments
2,832 views