在 Oracle 11g 中支持 JSON [英] Support for JSON in Oracle 11g

查看:77
本文介绍了在 Oracle 11g 中支持 JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Oracle 11g 是否支持 JSON?我的意思是在 PL/SQL 查询中操作 JSON 对象之类的东西.我知道 Oralcle 12c 支持这些东西,但 11g 似乎没有.

Does Oracle 11g support JSON? I mean stuff like manipulating JSON objects in PL/SQL Queries. I know Oralcle 12c has the support for these things but it seems 11g does not.

我主要关心的是是否可以在 PL/SQL 代码中处理从 RESTfull API 调用(使用 UTL_HTTP 包)返回的 JSON 对象.

My main concern is whether it is possible to handle JSON objects returned from RESTfull API calls (using UTL_HTTP package) in PL/SQL code.

这就是我调用 RESTfull API 的方式:

This is how I call RESTfull APIs:

req := UTL_HTTP.BEGIN_REQUEST('https://xxxx/api/job/all', 'GET', 'HTTP/1.1');

  UTL_HTTP.set_header(req, 'Content-Type', 'application/json');
  UTL_HTTP.set_header(req, 'apikey','xxxxx');
  resp := UTL_HTTP.GET_RESPONSE(req);

然后需要以某种方式将返回的 JSON 数据保存在表中.我的 Oracle 环境是:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 位生产.

Then need to somehow save retruned JSON data in tables. My Oracle envirment is: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production.

有什么想法吗?

谢谢.

推荐答案

不,在 Oracle 数据库 12c 第 2 版 (12.1.0.2) 中引入了 JSON 支持

No, JSON support was introduced in Oracle database 12c release 2 (12.1.0.2)

问候

这篇关于在 Oracle 11g 中支持 JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆