如何为.Net应用程序选择Oracle提供商?
我试图找出将(现有)ASP.Net 应用程序连接到 Oracle 数据库以读取其字典信息的最佳方法。
有太多的可能性:
- MS Data Provider for Oracle(需要 8.1.7,命名空间 System.Data.OracleClient)
- Oracle Data Provider for .NET(需要 9.2,命名空间 Oracle.DataAccess)
- Oracle Provider for OLE DB
- MSDASQL 和 ODBC
作为我的当前应用程序使用 MSSQL 服务器,进一步的选项是:
- 链接服务器,通过 server..user.object 访问
- 通过 OPENROWSET 链接服务器
SO 有几个关于类似主题的问题,但只有一些已接受答案。
您对每位司机的体验如何? 他们的优点和缺点是什么?
当然Oracle推荐ODP.Net。 今天9.2(或更高版本)版本的要求有问题吗?
I am trying to figure out what is the best way to connect an (existing) ASP.Net application to an Oracle database to read its dictionary information.
There are simply too many possibilities:
- MS Data Provider for Oracle (requires 8.1.7, namespace System.Data.OracleClient)
- Oracle Data Provider for .NET (requires 9.2, namespace Oracle.DataAccess)
- Oracle Provider for OLE DB
- MSDASQL and ODBC
As my current app uses MSSQL server, further options would be:
- Linked Server, access via server..user.object
- Linked Server via OPENROWSET
There are a couple of questions on similar topics on SO, but only some have accepted answers.
What's your experience with each of the drivers? What are their pros and cons?
Of course Oracle is recommending ODP.Net. Is the requirement of version 9.2 (or higher) a problem today?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我也推荐ODP.NET。 选择最新的提供商 (http://www.oracle.com/technology/ tech/windows/odpnet/index.html)。 它可以与 Oracle 9.2 数据库或更新版本的数据库连接。
MS Data Provider for Oracle 的功能非常有限。 例如,您不能使用数组和用户定义的类型。 为什么微软会为连接Oracle提供良好的支持?
您还可以查看 devart 的提供商:http://www.devart.com/dotconnect/oracle/ 。 它支持实体框架。
I too recommend ODP.NET. Choose the latest provider (http://www.oracle.com/technology/tech/windows/odpnet/index.html). It can connect with an Oracle 9.2 database or a newer release of the database.
The MS Data Provider for Oracle is very limited. You can't work with arrays for example and user defined types. And why would Microsoft provide good support for connecting to Oracle?
You can also check out the provider of devart: http://www.devart.com/dotconnect/oracle/ . It supports the entity framework.
转储 OLE DB 和 ODBC 选项,如果您有直接数据访问提供程序,则无需使用 OLE DB 或 ODBC。
我推荐 Oracle Data Provider for .NET。
Dump OLE DB and ODBC options, if you have direct data access provider there is no need in using OLE DB or ODBC.
I recommend Oracle Data Provider for .NET.
Microsoft 刚刚宣布弃用 System. Data.OracleClient。
我认为这给您留下了几个选择(至少):
DevArt 还有一个 LINQ to Oracle 实现,您可能会感兴趣。
Microsoft just announced it is deprecating System.Data.OracleClient.
I think that leaves you with a few choices (at least):
DevArt also has a LINQ to Oracle implementation which could be interesting to you.