从iOS访问Oracle [英] Oracle access from iOS

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

问题描述

我正在开发一个需要只读访问Oracle数据库的iPad应用程序。

I'm developing an iPad app that needs read-only access to an Oracle database.

有没有办法做到这一点?据我所知,唯一的选择是使用OCI,它需要以即时客户端(而不是为ARM构建)或OJDBC驱动程序的形式预建二进制文件。这两个似乎都是不可能的。

Is there any way to do this? As far as I can see, the only options are using OCI, which requires a prebuilt binary in the form of the instant client (and not built for ARM), or OJDBC drivers. Both of these seem to be out of the question.

在我的研究中,我发现libmysqlclient可以通过最少的调整来编译arm。这是一个延伸,但有没有可能的方法来利用这个优势?

In my research I have discovered that libmysqlclient compiles for arm with minimal tuning. This is a stretch, but is there any possible way to use this to my advantage?

我见过此产品通过使用ODBC客户端库使用Windows网关机器提供odbc连接,但此解决方案目前不适合我。

I have seen this product providing odbc connectivity through the use of a Windows gateway machine using the ODBC client libraries, but this solution really isn't an option for me at the present time.

任何想法?

推荐答案

在最底层,只有两个库访问Oracle:

At the very bottom, there are only two libraries for accessing Oracle:


  1. OCI二进制库。

  2. Java OJDBC Jar文件。

所有其他库(如ODBC,ADO.NET)都基于其中一个库(通常在OCI上)。

All other libraries (such as ODBC, ADO.NET) build upon one of these libraries (usually on OCI).

据我所知,iPhone(或任何ARM架构)没有OCI库,也没有使用OJDBC的Java VM。因此,您无法直接从iPhone连接到Oracle数据库。

There's no OCI library for the iPhone (or any ARM architecture as far as I know) and there's no Java VM to use OJDBC. So you cannot directly connect from the iPhone to an Oracle database.

因此,无论您的解决方案是什么,它都需要一个中间服务器(或网关)。

So whatever your solution will be, it'll require an intermediate server (or gateway).

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

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