从 XCode 项目连接到 Oracle 数据库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5876704/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:57:40  来源:igfitidea点击:

Connecting to Oracle database from XCode project

objective-cdatabasexcodecocoaoracle

提问by Jacob

Does anyone have some good resources to point to that would help us get started on writing applications in XCode that talk natively to an oracle database.

有没有人有一些好的资源可以帮助我们开始在 XCode 中编写与 oracle 数据库本地通信的应用程序。

We need to create a high performance utility to do data processing that involves communicating with an oracle database. For performance reasons using the pure native drivers is preferred.

我们需要创建一个高性能实用程序来进行涉及与 oracle 数据库通信的数据处理。出于性能原因,使用纯本机驱动程序是首选。

回答by ik_zelf

If you are willing to use Xcode and PRO*C, check PRO*C and Xcode 3.2, how to get it workingIt explains the integration of PRO*C in Xcode. Oracle only provides 10g clients and a hastily released, incomplete 10.2.0.4 rdbms server but you can use them to connect to all current releases of Oracle. Both PRO*C and oci are support using the clients. Both PPC and intel are supported Instant Client Downloads

如果您愿意使用 Xcode 和 PRO*C,请查看PRO*C 和 Xcode 3.2,如何使其工作解释了 PRO*C 在 Xcode 中的集成。Oracle 仅提供 10g 客户端和匆忙发布的、不完整的 10.2.0.4 rdbms 服务器,但您可以使用它们连接到所有当前版本的 Oracle。PRO*C 和 oci 都支持使用客户端。支持 PPC 和 intel即时客户端下载

If interested, I will make a new blog using Xcode-4.

如果有兴趣,我将使用 Xcode-4 制作一个新博客。

I hope this helps.

我希望这有帮助。

回答by alastair

If you're familiar with ODBC, you could use that, together with an appropriate ODBC driver for Oracle (Mac OS X has iODBCinstalled by default). That way you'll be able to support other databases as well, so long as an appropriate ODBC driver is on the system.

如果您熟悉 ODBC,则可以将其与适用于 Oracle 的 ODBC 驱动程序一起使用(Mac OS X默认安装了iODBC)。这样,只要系统上有适当的 ODBC 驱动程序,您也可以支持其他数据库。