Oracle11g中的JSON支持 [英] JSON Support in Oracle11g

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

问题描述

Oracle 11g是否支持JSON?我的意思是像在PL / SQL查询中操纵JSON对象。我知道Oralcle 12c支持这些东西,但似乎11g不支持。



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



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



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.

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.

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.

Appreciate your ideas/ methods in this regard.

Thank you.

推荐答案

应该使用Oracle或任何其他类型的数据库存储数据。



您的Rest图层应该处理json并使用数据库进行存储和检索。



你不应该混合两者关注即使技术允许它,或者你发现黑客/解决方法。
Oracle or any other kind of database should be used to store data.

Your Rest layer should handle processing the json and use the database for storage and retrieval.

You should not mix the two concerns even if the technology allows it or you find a hack/workaround.


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

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