问题描述
嗨朋友们,
我已经在Windows 7 64位中安装了Oracle 10g,这里我可以使用用户名成功连接sql plus:test,password:test和host string:测试但是当我尝试使用连接字符串在我的visual studio 2010中连接时:
数据源=测试;用户id =测试;密码:测试;
但它无法连接,它给出错误:
ORA-12154:TNS:无法解析指定的连接标识符。
即使我尝试使用数据源:(主机,端口等)(从transname.ora文件中删除)在这种情况下我收到错误:
ORA-06413:连接未打开。
我浪费了3-4天,但我不是能够连接,所以朋友可以帮助我。
谢谢
Raviranjan
Hi Friends,
I have installed Oracle 10g in my windows 7 64 bit, here i am able to connect with sql plus successfully using user name : test, password : test, and host string : test but when i am trying to connect in my visual studio 2010 using connection string :
Data Source=test;user id=test;password:test;
but it is not able to connect, it is giving error :
ORA-12154: TNS: could not resolve the connect identifier specified.
Even i tried using Data Source:(Host, port,etc)(coppied from transname.ora file) in this case i am getting error :
ORA-06413: Connection not open.
I have wasted 3-4 days but i am not able to connect, so friend could you please help me.
Thanks
Raviranjan
这篇关于无法在Windows 7 64位中从Visual Studio 2010连接Oracle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!