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

查看:758
本文介绍了在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数据库11g企业版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天全站免登陆