I'm encountering an error in Oracle Forms 14c when trying to use the JSON_ARRAYAGG function:
identifier JSON_ARRAYAGG must be declared
Here's the context:
- Oracle Forms version: 14c (14.1.2)
- Database version: 19c
- I'm trying to use JSON_ARRAYAGG in a PL/SQL block within Forms
What I've tried:
- The same query works fine when executed directly in Toad.
- I've verified the database version supports JSON_ARRAYAGG (it works outside of Forms)
Sample code:
DECLARE l_json CLOB; BEGIN SELECT JSON_ARRAYAGG( JSON_OBJECT( 'id' VALUE employee_id, 'name' VALUE first_name ) ) INTO l_json FROM hr.EMPLOYEES WHERE department_id = 10; END;
Questions:
- Is there a compatibility issue between Oracle Forms 14c and JSON functions?
- Do I need to enable a specific setting or library in Forms to use JSON functions?
- Are there known workarounds for using JSON functionality in Oracle Forms?