Identifier 'APEX_JSON.PARSE' must be declared in oracle 11.2.0

北城以北 提交于 2019-12-13 01:17:48

问题


I want to parse JSON in Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production. But below error reported:

ORA-06550: line 4, column 5:
PLS-00201: identifier 'APEX_JSON.PARSE' must be declared

Here is my sample code:

DECLARE
    s varchar2(32767) := '{ "a": 1, "b": ["hello", "world"]}';
BEGIN
    apex_json.parse(s);
    sys.dbms_output.put_line('a is '||apex_json.get_varchar2(p_path => 'a'));
END;

Does this version support this feature?


回答1:


This depends on the APEX version within your database, which I'm guessing may still be 4.x on your 11.2 instance.

SELECT VERSION_NO FROM APEX_RELEASE;

The apex_json package was introduced with 5.0 http://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_json.htm#AEAPI29635



来源:https://stackoverflow.com/questions/45912026/identifier-apex-json-parse-must-be-declared-in-oracle-11-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!