Many ASP.NET applications access Oracle database for the data source. Oracle supports the .NET with its Oracle Data Access Components (ODAC). By using ODAC, you do not have to install a heavy Oracle client in the Windows server machines which have IIS for the ASP.NET applications.

ODAC includes Oracle Instant Client, Oracle Providers for ASP.NET, and Oracle Data Provider for .NET. Oracle Instant Client is necessary since it has Oracle’s database APIs - OCI libraries for an Oracle database client in Windows systems to connect Oracle database server. Oracle Providers for ASP.NET, and Oracle Data Provider for .NET. are required to install if you are using Oracle providers in your ASP.NET or .NET applications.

If you using the .NET Framework Data Provider for Oracle which is in the System.Data.OracleClient namespace (The assembly System.Data.OracleClient.dll included in the .NET frameworks), you do not need to install Oracle Providers for ASP.NET, or Oracle Data Provider for .NET. For more information about System.Data.OracleClient namespace, see Oracle and ADO.NET on MSDN.

Let’s start the installation and configuration.

1. Download the latest version ODAC112030Xcopy_32bit.zip orODAC112030Xcopy_x64.zip zip file from Oracle web site and unzip the .zip file in a local folder in Windows.
For 32-bit: C:\temp\ODAC112030Xcopy_32bit
For 64-bit: C:\temp\ODAC112030Xcopy_x64

2. You can install either 32-bit ODAC or 64-bit ODAC, or both. Open a Command Prompt with the Administrator privilege, go to the folder above, type and run the installation script:
For 32-bit:
C:\temp\ODAC112030Xcopy_32bit>install.bat basic c:\oracle\odac32 odac32 false
For 64-bit:
C:\temp\ODAC112030Xcopy_x64>install.bat basic c:\oracle\odac odac false
This will install the Oracle Instant Client into the folder c:\oracle\odac32 orc:\oracle\odac. Notice “Oracle Home Name” in the installation script parameters:odac32(for 32bit) or odac(for x64). Oracle Home Name has to be different if you want to install both 32-bit and 64-bit ODAC.

3. This step is to install Oracle providers. If you only use the .NET Framework Data Provider for Oracle, you can skip this step.
To install ODP, in the same Command Prompt, type and run installation script:
For 32-bit Oracle Data Provider for .NET 4:
C:\temp\ODAC112030Xcopy_32bit>install.bat odp.net4 c:\oracle\odac32 odac32 false
For 64-bit Oracle Data Provider for .NET 4:
C:\temp\ODAC112030Xcopy_x64>>install.bat odp.net4 c:\oracle\odac odac false

To install ASP.NET Provider, in the same Command Prompt, type and run installation script:
For 32-bit Oracle Provider for ASP.NET 4:
C:\temp\ODAC112030Xcopy_32bit>>install.bat asp.net4 c:\oracle\odac32 odac32 false
For 64-bit Oracle Provider for ASP.NET 4:
C:\temp\ODAC112030Xcopy_x64>>install.bat asp.net4 c:\oracle\odac odac false

4. Setup PATH System Environment Variable for IIS Windows web server. Since ODAC communicates Oracle database through OCI in the Oracle Instant Client, and OCI libraries are the native Windows librarys, you have to tell IIS where to load those libraries. Add the path of c:\oracle\odac32 or c:\oracle\odac into the PATH System Environment Variable.
After set PATH System Environment Variable, reboot machine to make the System Environment Variable effective.

转载自:http://www.simongong.com/blogs/?p=11

.NET安装和配置Oracle数据访问组件(ODAC)的更多相关文章

  1. Oracle数据访问组件ODAC的安装方法

    Oracle数据访问组件ODAC(Oracle Data Access Components)顾名思义就是用来访问Oracle数据库的小程序.我们可以编程调用这些组件来实现在没有安装Oracle数据库 ...

  2. Oracle数据访问组件ODAC的安装方法:

    Oracle数据访问组件ODAC(Oracle Data Access Components)顾名思义就是用来访问Oracle数据库的小程序.我们可以编程调用这些组件来实现在没有安装Oracle数据库 ...

  3. 超轻量级高性能ORM数据访问组件Deft,比dapper快20%以上

    超轻量级高性能ORM数据访问组件Deft,比dapper快20%以上 阅读目录 Deft简介 Deft 核心类介绍 Deft 3分钟即可上手使用 其他可选的配置参数 性能测试 Demo代码下载 回到顶 ...

  4. .NET轻量级DBHelpers数据访问组件

    一.摘要 一说到ADO.NET大家可能立刻想到的就是增.删.改.查(CRUD)操作,然后再接就想到项目中的SQLHelper.没错本课分享课阿笨给大家带来的是来源于github上开源的DAO数据库访问 ...

  5. 测试 ClownFish、CYQ、Entity Framework、Moon、MySoft、NHibernate、PDF、XCode数据访问组件性能

    下期预告: 由于很多园友反馈,有的组件不应该缺席.测试复杂度不够.测试还缺乏一定的公平. 因此考虑在下一个版本中,确保在更加公平的前提下进行更高复杂度的测试 . 同时将分为2组测试,纯SQL组件及纯O ...

  6. Oracle安装和配置Oracle数据库快速指南

    Oracle安装12C要求参考文档 汇总 中文版:在 Unix AIX,HP-UX,Linux,Solaris 和 MS Windows 操作系统上安装和配置 Oracle 数据库(RDBMS)的要求 ...

  7. Agile.Net 组件式开发平台 - 数据访问组件

    Agile.DataAccess.dll 文件为系统平台数据访问支持库,基于FluentData扩展重写,提供高效的性能与风格简洁的API,支持多种主流数据库访问. 当前市面上的 ORM 框架,如 E ...

  8. Ubuntu18.04,安装Redis配置远程连接访问和简单使用Redis

    前言 Redis是常用基于内存的Key-Value数据库,比Memcache更先进,支持多种数据结构,高效,快速.用Redis可以很轻松解决高并发的数据访问问题:作为实时监控信号处理也非常不错. 环境 ...

  9. 6.安装和配置OpenStack图片服务组件

    安装和配置图片服务组件 这里是安装在控制器上 安装和配置图片服务组件 yum install –y openstack-glance python-glanceclient 编辑/etc/glance ...

随机推荐

  1. PHP用反撇号(`,也就是键盘上ESC键下面的那个,和~在同一个上面)执行外部命令

    例如: echo `whoami`; // 导出数据库,要导入的文件夹必须要有可写权限, -u -p之后的内容必须要紧挨着写 echo `mysqldump -h localhost -u$DbUse ...

  2. PLS-00201: 必须声明标识符 'UTL_FILE'

    解决办法: 用sysdba身份 把UTL_FILE包的执行权限给这个用户. 举例: 1.C:\Users\Anakin>sqlplus /nolog2.SQL> connect /as s ...

  3. hdu 1358 KMP的next数据运用

    由于next[i]保存的是前i-1个字符中最大的重复子序列,那么i-next[i]就是循环节. #include<cstdio> #include<cstring> #incl ...

  4. iOS下获取用户当前位置的信息

    #import <MapKit/MKMapView.h> @interface ViewController (){ CLLocationManager *_currentLoaction ...

  5. IOS图片的两种处理:加阴影和变灰色

    #import <QuartzCore/QuartzCore.h> //图片阴影 UIImageView *img; [[img layer] setShadowOffset:CGSize ...

  6. codevs4373 窗口==poj2823 Sliding Window

    Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 53676   Accepted: 15399 ...

  7. Ehcache(2.9.x) - API Developer Guide, Blocking and Self Populating Caches

    About Blocking and Self-Populating Caches The net.sf.ehcache.constructs package contains some applie ...

  8. Newtonsoft.Json.dll序列化为json,null值自动过滤

    var jSetting = new JsonSerializerSettings {NullValueHandling = NullValueHandling.Ignore}; var json = ...

  9. Oracle的GUID:Raw(16)

    最近用了Oracle作为开发的数据库.以前用Sqlserver的时候用GUID作为主键的(数据类型:uniqueidentifier),Oracle的GUID类型变成RAW(16)了.从数据库读出来R ...

  10. 老男孩-金角大王-python学习博客地址

    http://www.cnblogs.com/alex3714/category/770733.html