Oracle access from iOS

前端 未结 3 1043
-上瘾入骨i
-上瘾入骨i 2021-01-20 21:38

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

Is there any way to do this? As far as I can see, the only options are using OCI, whic

相关标签:
3条回答
  • 2021-01-20 22:05

    While I did end up using an intermediary server... I have since realized that this isn't strictly necessary. Direct access should be obtainable by using the OJDBC drivers directly on iOS using gcj to compile them for ARM. Since Objective-C is a superset of C, you could use JNI for communication to and from. Hope this helps anyone who comes here :)

    0 讨论(0)
  • 2021-01-20 22:11

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

    1. The OCI binary library.
    2. The Java OJDBC Jar file.

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

    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).

    0 讨论(0)
  • 2021-01-20 22:15

    Direct access to an Oracle database from iOS is not possible as of this moment. Exchanging data with an Oracle database by means of web services is fairly simple. You can use APEX for this, lean and mean.

    0 讨论(0)
提交回复
热议问题