调用存储过程访问 Oracle 链接服务器时.NET 应用程序超时或无法连接

发布于 2024-09-08 05:07:40 字数 272 浏览 2 评论 0原文

这个 .NET 应用程序曾经可以工作。当它出现时,我们使用的是 Oracle ODBC 9i。我们升级到 10g 就不再起作用了。现在在 11g 时静止图像不起作用。我已经在各处设置了 SQL 命令超时。我已将链接服务器属性中的连接超时和查询超时设置为 120。我可以从 SQL Server Management studio 运行该过程并且它可以工作。它只是不再在我的 .NEt 应用程序中工作。我应该在 .NET 应用程序中创建第二个连接字符串(到链接服务器)吗?我们现在使用 SQL Server 2005。有什么想法吗?

This .NET application used to work. When it did we were using the Oracle ODBC 9i. We moved to 10 g did not work anymore. Now at 11g stills does not work. I have set SQL Command Timeouts all over the place. I have set the connection timeout and the query timeout in the linked server properties to 120. I can run the proc from SQL Server Management studio and it works. It just does not work within my .NEt application anymore. Should I create a second connection string( to linked server) in the .NET app? We are at SQL Server 2005. Any Ideas??

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

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

发布评论

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

评论(1

败给现实 2024-09-15 05:07:40

您要连接的服务器是否已移动,或者两台服务器之间现在是否有防火墙?

我会首先检查两者之间的连接性。
尝试在端口 1521 上使用 telnet 连接到 oracle 服务器。

或者,尝试使用 ODAC 并检查 tnsnames.ora 是否配置正确。
(但这取决于您使用的提供商。)

Has your server you're connecting to moved, or are there now firewalls in place between the two servers?

I would check connectivity between the two first.
Try connecting to the oracle server using telnet on port 1521.

Alternatively, try using ODAC and checking your tnsnames.ora is configured correctly.
(It depends what provider you're using though.)

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