什么是C#连接到Oracle数据库所需的最小客户端资源占用? [英] What is the minimum client footprint required to connect C# to an Oracle database?

查看:142
本文介绍了什么是C#连接到Oracle数据库所需的最小客户端资源占用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功地通过下载和我的笔记本电脑安装客户端管理工具和Visual Studio 2008连接到从C#(Visual Studio 2008中)Oracle数据库(10G)。

I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008) by downloading and installing the client administration tools and Visual Studio 2008 on my laptop.

有关Oracle客户端工具的安装面积超过200MB的,相当长篇大论。

The installation footprint for Oracle Client tools was over 200Mb, and quite long winded.

有谁知道最小可行足迹是什么?我希望这是一个DLL和一个寄存器命令,但我有我需要安装一个Oracle的家,并设置各种环境变量的感觉。

Does anyone know what the minimum workable footprint is? I am hoping that it's a single DLL and a register command, but I have the feeling I need to install an oracle home, and set various environment variables.

我在我的code。使用Oracle.DataAccess。

I am using Oracle.DataAccess in my code.

推荐答案

您需要一个Oracle客户端来连接到Oracle数据库。最简单的方法是安装 Oracle数据访问组件

You need an Oracle Client to connect to an Oracle database. The easiest way is to install the Oracle Data Access Components.

要尽量减少占用,我建议如下:

To minimize the footprint, I suggest the following :


  • 使用的Oracle(System.Data.OracleClient的),它附带的框架。
  • 微软供应商
  • 下载 Oracle即时客户端软件包 - 基本精简版:此是(几乎)的最低限度的zip文件。我建议10.2.0.4版本,这比11.1.0.6.0版本小得多。

  • 解压在一个特定的文件夹中的以下文件:

    • V10:

      • OCI.DLL

      • orannzsbb10.dll

      • oraociicus10.dll

      • Use the Microsoft provider for Oracle (System.Data.OracleClient), which ships with the framework.
      • Download the Oracle Instant Client Package - Basic Lite : this is a zip file with (almost) the bare minimum. I recommend version 10.2.0.4, which is much smaller than version 11.1.0.6.0.
      • Unzip the following files in a specific folder :
        • v10 :
          • oci.dll
          • orannzsbb10.dll
          • oraociicus10.dll

          • OCI.DLL

          • orannzsbb11.dll

          • oraociei11.dll

          这相当于约 19MB (V10)。

          This amounts to about 19Mb (v10).

          如果你不关心几个应用程序之间共享该文件夹,另一种是出货上述DLL文件与应用程序二进制文件一起,并跳过路径设置步骤。

          If you do not care about sharing this folder between several applications, an alternative would be to ship the above mentioned DLLs along with your application binaries, and skip the PATH setting step.

          如果您确实需要使用Oracle提供者(Oracle.DataAccess),你将需​​要:

          If you absolutely need to use the Oracle provider (Oracle.DataAccess), you will need :


          • ODP .NET 11.1.0.6.20(据称与即时客户端工程的第一个版本)。

          • 即时客户端11.1.0.6.0,效果显着。

          请注意,我没有测试这种最新的配置...

          Note that I haven't tested this latest configuration...

          这篇关于什么是C#连接到Oracle数据库所需的最小客户端资源占用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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