如何通过侦听器将.net应用程序与oracle连接. [英] how to connect .net aplication with oracle through listener.

查看:77
本文介绍了如何通过侦听器将.net应用程序与oracle连接.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用oracle侦听器将oracle连接到.net应用程序.
我的侦听器名称"Topup",其中保存了服务器信息和数据库名称,我想将此侦听器称为我们的连接字符串.

I want to connect oracle to .net application with oracle listener.
my listener name "Topup" where server information, database name are save and I want to call this listener to our connection string.

string str = "Data Source=Topup;Persist Security Info=True;password=test;user ID=test providerName="System.Data.OracleClient;"



在我的连接字符串中,我给出的数据源名称是我的侦听器名称,但是我无法连接.

如果有任何机构通过侦听器为我提供正确的代码连接,这对我来说非常有用. 在此先感谢
问候,
ravi



In my connection string I give data source name is my listener name, but I unable to connect.

Its greatful for me, if any body give me correct code connection through listener.
Thanks in advance
regards,
ravi

推荐答案

http://www.oracle.com/technetwork/topics/dotnet/index-085703.html [ ^ ]
http://blogs.msdn. com/b/kaevans/archive/2009/07/18/connecting-to-oracle-from-visual-studio.aspx [ http://msdn.microsoft.com/en-us/library/system.data. oracleclient.aspx [ ^ ]
http://www.oracle.com/technetwork/topics/dotnet/index-085703.html[^]
http://blogs.msdn.com/b/kaevans/archive/2009/07/18/connecting-to-oracle-from-visual-studio.aspx[^]
http://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx[^]


我很少使用oracle,但是 connectionstrings上的示​​例都没有. com [ ^ ]使用providerName的方式.另外,您的连接字符串没有右引号...因此您可以确保正确粘贴它.您在System.Data.OracleClient周围的引号上有些时髦.
I don''t use oracle a lot, but none of the examples on connectionstrings.com[^] use the providerName the way you have it. Also, your connection string doesn''t have a closing double quote...so you could you make sure you pasted it correctly. You''ve got something funky with the quotes around System.Data.OracleClient.


这篇关于如何通过侦听器将.net应用程序与oracle连接.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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