连接oracle数据库和c# [英] connect oracle database and c#

查看:147
本文介绍了连接oracle数据库和c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想用c#连接Oracle数据库。我添加了所需的引用...如oracle.dataaccess.dll。

现在当我想添加新连接时,我选择了数据源名称= Oracle数据库(OracleClient),

Srever名称= XE

用户名

通过

当我尝试测试连接时,它会出现错误

ORA-12154:TNS:无法解析指定的连接标识符。



如何解决这个问题?

我也尝试使用localhost:1521作为服务器名称,但它不起作用。

帮助需要。



谢谢。

解决方案

检查出来

http:// www。 connectionstrings.com/oracle/ [ ^ ]

hello,
I want to connect Oracle data base with c#. I have added the needed references...like oracle.dataaccess.dll.
Now when I want to add new connection, I chose data source name =Oracle Database(OracleClient),
Srever name=XE
username
pass
when I try to test the connection, it gives an error as
"ORA-12154: TNS:could not resolve the connect identifier specified."

how to solve this problem?
I also tried using localhost:1521 as server name but it didn't work.
help need.

thank you.

解决方案

check this out
http://www.connectionstrings.com/oracle/[^]


这篇关于连接oracle数据库和c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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