我必须从.NET代码连接Oracle 11g数据库。为此目的,我安装ODP.NET bur阅读一些论坛帖子后,我认识到,我需要Oracle客户端安装太。
真的吗?我看到Oracle客户端的大小为ca. 2GB!我真的需要安装这么大的客户端才能连接Oracle DB?
来自Oracle的Alex Keh在2013年8月说:
Managed ODP.NET is released. It is currently part of the Oracle DB 12c client. To use managed ODP.NET,you have to download and install the DB client. From there,you can extract just the managed ODP.NET assembly and setup files. These files are less than 10 MB and can be deployed to any target machines.
Currently,we are packaging a stand alone managed ODP.NET release and ODAC 12 release that will be much smaller. This will be released on OTN shortly.
If you can wait a couple of days,ODAC 12c will be out on OTN and you can download that version. That will be our latest and greatest managed ODP.NET version
====
We do not plan to put managed ODP.NET on NuGet. We believe that the managed ODP.NET download with ODAC will provide the same benefits of NuGet in terms of assembly isolation and download size.
There’s a thread discussing whether Oracle should provide managed ODP.NET NuGet support. Once you use ODAC 12c,I would like to know your thoughts on whether NuGet support is still necessary. 07000
Nuget managed ODP.NET:
PM> Install-Package Oracle.ManagedDataAccess
那么什么问题呢? 基本上到现在为止,ODP.NET是一个.NET层,与Oracle客户端.dll文件,一个小事实,有很多的意义:
>大安装尺寸(几百Mb) >艰难部署到远程机器 – 需要在客户端上安装ODP.NET 机器或部署大文件 >在使用多个版本,32位/ 64位操作系统和应用程序时面临挑战
那么是什么呢?
托管驱动程序基本上是一个单一的.dll文件与.Net本机实现的ODP.NET。 这意味着不需要Oracle客户端,现在本地代码是幕后的。 XCopy安装可以很容易地完成。
主要优点:
>占地面积小 >编译为任何cpu所以它可以工作在32bit / 64bit操作系统 和应用顺利。容易管理多个版本的 同一机器 >可以在应用程序中部署为一个简单的引用 bin目录。
那么,什么是捕获?
>并不是所有的功能都支持(虽然大多数是…)你 可以在documentation上找到更多 >命名空间已更改 Oracle.DataAccess.Client到Oracle.ManagedDataAccess.Client >性能差异仍不清楚。 (旧)本机代码 总是表现非常有效,但另一方面100%管理 代码具有它的性能优势。
请注意,Native-Code ODP.NET仍然非常可用。托管版本(至少现在)除了本地版本之外。
参考文献:http://oracleatdotnet.blogspot.com.es/2013/07/odpnet-managed-driver-beta-2.html
ODP.NET托管驱动程序和非托管驱动程序之间的区别 http://docs.oracle.com/html/E41125_02/intro004.htm
Oracle Data Provider for .NET的特性 http://docs.oracle.com/database/121/ODPNT/features.htm#ODPNT0007 (编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|