简体   繁体   English

从.NET连接到Oracle数据库有哪些选项?

[英]What are the options to connect to an Oracle Database from .NET?

I am evaluating the best option to connect to an Oracle Database from a .NET application. 我正在评估从.NET应用程序连接到Oracle数据库的最佳选择。 I came across ODP.NET, ODBC, DEVART etc. Looking for a comparison and what is the best possible solution to connect to an Oracle DB ? 我遇到过ODP.NET,ODBC,DEVART等。寻找比较,连接到Oracle DB的最佳解决方案是什么? Are there any apart from these? 除了这些以外吗?

ODBC is a "lowest common denominator" type interface that does not allow database specific features to be supported. ODBC是“最低公分母”类型的接口,不允许支持特定于数据库的功能。 ODP.NET on the other hand supports both ADO.NET and enhances it with features specific to Oracle (for example RAC, security, datatypes, etc). 另一方面,ODP.NET支持ADO.NET并通过Oracle特有的功能(例如RAC,安全性,数据类型等)对其进行增强。

Devart's product is not free like ODP.NET is. Devart的产品不是像ODP.NET一样免费的。 And some people prefer to get all their software from Oracle when possible for ease and guarantee of support. 而且有些人更愿意在可能的情况下从Oracle获得所有软件,以简化维护并保证获得支持。

I will say ODP.NET compared to ODBC because it is easier to deploy. 与ODBC相比,我将说ODP.NET易于部署。 It makes using Oracle from .NET more flexible, faster, and more stable than ODBC drivers from what i understand. 据我了解,它使从.NET使用Oracle比ODBC驱动程序更加灵活,更快和更稳定。

This thread also discusses something similar ODBC or ODP.Net for C#? 该线程还讨论了类似的ODBC或ODP.Net for C#吗?

All the best 祝一切顺利

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM