.Net 连接性

发布于 2024-10-07 00:40:02 字数 363 浏览 0 评论 0原文

我在一台计算机上安装了 Oracle 10g,在另一台计算机上安装了 Visual Studio 2008。我的两个系统都在局域网上。我正在尝试从服务器资源管理器中的第二台计算机连接到 Oracle 数据库。我收到以下消息

System.Data.OracleClient 需要 Oracle 客户端软件版本 8.1.7 或更高版本

另外,服务器名称与我的第二台计算机名称相同

我对 Oracle 不太感兴趣。有人可以告诉我如何配置具有足够权限的用户名和密码来执行管理任务

最后,假设我的数据库名称是 orcl,IP 地址是 192.168.0.5,服务器名称是 XYZ,我如何使用连接字符串创建 OracleConnection 来实现相同的目标

I have Oracle 10g installed on one computer and I have Visual Studio 2008 on other. I have both the systems on LAN. I am trying to connect to Oracle database from the second computer in Server Explorer. I am getting the following message

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater

Also is the server name same as my second computer name

I am not really big on Oracle. Can somebody please tell me how to configure usernames and passwords with enough privelages to do administrative tasks

Lastly how would I achieve the same using connection string for creating OracleConnection assuming my database name is orcl, ip address is 192.168.0.5, server name is XYZ

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仅冇旳回忆 2024-10-14 00:40:02

System.Data.OracleClient 需要 Oracle 客户端软件版本 8.1.7 或更高版本

该错误消息告诉您需要在客户端计算机(即装有 Visual Studio 的计算机)上安装 Oracle 客户端。请参阅此处的文档。

有大量文档描述如何配置和连接到 Oracle 数据库。以下是 Oracle 自己的客户端安装后步骤,其中包括有关如何验证您的安装。

服务器名称是否与我的第二台计算机名称相同

?是的,“服务器名称”将是运行 Oracle 数据库的计算机的名称或 IP 地址。

最后,假设我的数据库名称是 orcl,IP 地址是 192.168.0.5,服务器名称是 XYZ,我如何使用连接字符串创建 OracleConnection 来实现相同的效果

我上面链接到的文档的这一部分描述了使用给定的一组凭据进行连接的不同方式。

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater

That error message is telling you that you need to install the Oracle client on your client machine, i.e. the one with Visual Studio on it. See the documentation here.

There's a wealth of documentation out there describing how to configure and connect to Oracle databases. Here's Oracle's own Client Post-Installation steps, which include instructions on how to verify your installation.

Also is the server name same as my second computer name

Yes, the "server name" will be the name or IP address of the machine that your Oracle database is running on.

Lastly how would I achieve the same using connection string for creating OracleConnection assuming my database name is orcl, ip address is 192.168.0.5, server name is XYZ

This section of the documentation I've linked to above describes the different ways of connecting with a given set of credentials.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文