无需在.net上安装客户端即可连接到Oracle数据库 [英] Connect to Oracle database without client installation on .net

查看:258
本文介绍了无需在.net上安装客户端即可连接到Oracle数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想在不进行安装的情况下连接到oracle数据库. 在Java上,我可以使用一个简单的jdbc库. 但是,.net C#中最简单的连接到oracle数据库的方法是什么? 我还需要一个接口来像其他数据库一样在jdbc上切换驱动程序.

I just want to connect to an oracle database without an installation. On java I can use a simple jdbc library. But what is the easiest way in .net C# to connect to an oracle database? I also need an interface to switch the drivers like on jdbc for other SQL databases.

感谢帮助!

推荐答案

我认为您想要的是Oracle托管驱动程序: https://www.nuget.org/packages/Oracle.ManagedDataAccess/

I think what you want is the Oracle Managed Driver: https://www.nuget.org/packages/Oracle.ManagedDataAccess/

我不确定您的意思

我还需要一个接口来像其他数据库一样在jdbc上切换驱动程序.

I also need an interface to switch the drivers like on jdbc for other SQL databases.

这是一个托管的ADO.NET驱动程序,因此,如果您要使用其他数据库(例如MySQL),则只需停止使用该驱动程序,然后再使用另一个驱动程序即可.

This is a managed ADO.NET driver, so if you want to use a different database (e.g. MySQL) then you just stop using this driver and use the other one.

这篇关于无需在.net上安装客户端即可连接到Oracle数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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