我正在尝试以下代码:
DECLARE
l_object json_object_t;
BEGIN
l_object := json_object_t.parse ('{"Name":"Elvis"}');
DBMS_OUTPUT.put_line (l_object.get_string ('Name'));
END;
我遇到以下错误:
ORA-06550: line 2, column 15:
PLS-00201: identifier 'JSON_OBJECT_T' must be declared
ORA-06550: line 2, column 15:
PL/SQL: Item ignored
ORA-06550: line 4, column 4:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 4, column 4:
PL/SQL: Statement ignored
ORA-06550: line 5, column 26:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 5, column 4:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
我不能使用以下任何JSON_OBJECT_T
; JSON_ARRAY_T
; JSON_OBJECT_T
; JSON_KEY_LIST
; JSON_ARRAY_T
; JSON_OBJECT_T
; JSON_KEY_LIST
;
我想念什么?
编辑:
我正在使用Oracle 12cR1。经过12cR2测试,工作正常。但是在我的项目中,我无法将其更新为12cR2。有没有一种方法可以编写Java方法并在COLUMNS
的{{1}}部分中使用它?