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!

ORDS 24.4 to 25.2 invalid package OAUTH_INTERNAL for DB 11.2.0.4, 12.1.0.2

TimS74Aug 14 2025 — edited Aug 15 2025

Hello,
I appreciate (really I do) that 11.2.0.4 and 12.1.0.2 are old, out of support and should have been replaced some years ago.
I'm trying to at least keep ORDS up to date while progressing with the above.

11.2.0.4 and 12.1.0.2 were supported as target databases for ORDS 24.4, and looking at My Oracle Support certification tab, it looks like they still are with ORDS 25.2. However, on trying to upgrade targets to ORDS 25.2 the OAUTH_INTERNAL package is invalid, e.g. the below from an 11.2.0.4 database.

[*** script: oauth_internal.pls]

Package OAUTH_INTERNAL compiled

LINE/COL ERROR
--------- -------------------------------------------------------------
22/3 PL/SQL: Declaration ignored
22/43 PLS-00702: second argument to PRAGMA EXCEPTION_INIT must be a numeric literal
Errors: check compiler log

At the end of the upgrade process 6 objects are invalid because of the above and the final message is:

ERROR at line 1:
ORA-20006: ERROR: Validating objects failed. ORA-20006: ERROR: ORDS schema database objects contains INVALID status.
ORA-06512: at "ORDS_METADATA.VALIDATE_ORDS", line 474
ORA-06512: at line 3

Please could you confirm whether ORDS 25.2 still supports 11.2.0.4 and 12.1.0.2 and if so whether the above is a known issue etc.

Many thanks
Tim

Comments
Post Details
Added on Aug 14 2025
5 comments
207 views