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.

Error while installing ORDS 23.1 on Oracle19c

Kam__apexFeb 11 2025 — edited Feb 11 2025

Dear Friends

I am installing ORDS (Ver 23.1) for Oracle19c but its giving below error. Please help.

Error report -
ORA-01031: insufficient privileges
ORA-06512: at line 110
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to perform a database operation without
the necessary privileges.
*Action: Ask your database administrator or designated security
administrator to grant you the necessary privileges
2025-02-11T19:57:13.922Z SEVERE Error executing script: ords_grant_privs.sql Error: ORA-01031: insufficient privileges
ORA-06512: at line 110

Refer to log file for details

Regards

Kam

This post has been answered by Zoltán on Feb 11 2025
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 Feb 11 2025
2 comments
70 views