随笔-93  评论-78  文章-11  trackbacks-0
    今天,从上周就捆饶我的问题终于在下班前被我搞定!小得意了一下.
    我的电脑上之前安装了Oracle 10g database,配置完变量用PL/SQL操作一切OK .当又安装完Oracle 10g client后,问题出现了,用PL/SQL登陆时反复提示:ORA-12154: TNS: could not resolve the connect identifier specified
    对于初学者,我反复的在"Oracle - OraDb10g_home3"下的"配置和移植工具"中的"Net Manager"中查找问题所在.请教高手,也没有召见问题的原因.我郁闷了,随后自己决定来搞定这个问题.
    我做了大量的反复的资料查看和自我检查,灵感在下班的时候出现,我突然意识到我的"环境变量"一直被忽视.
打开后我发现我当前的环境变量这样设置的:
path  ==  E:\oraclient_2;E:\oracle\oradata\bin;E:\oracle\bin;E:\Program Files\Java\jdk1.5.0_04\bin;E:\Tomcat5028\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
问题出现了.随后我该成如下:
path  ==  E:\oracle;E:\oracle\oradata\bin;E:\oracle\bin;E:\Program Files\Java\jdk1.5.0_04\bin;E:\Tomcat5028\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

OK !!! 问题在最后的关头被我解决了!!!不错.
这就是: "不抛弃 不放弃"
posted on 2007-11-19 17:59 wahaha 阅读(144344) 评论(69)  编辑  收藏

评论:
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2008-04-18 08:40 | 小蚂蚁
非常感谢,谢谢共享!省了我好多的时间  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2008-07-09 10:01 | teddy
tks  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2008-07-25 09:24 | aaa
谢谢,我也碰到这个问题了,client的环境变量在server之前,倒是pl/sql dev连不上  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2008-10-13 13:36 | jems.org.cn
不错.谢谢了!!!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2008-11-06 15:41 | ilovehibernate@hotmail.com
照你的方法试过了.
问题还是不能解决.
郁闷ING
sqldeveloper.exe
都能用,偏偏pl/sql就用不了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2009-02-16 20:44 | john
打开LISTENER.ORA
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = abcd)(PORT = 1521))
)
)
)

注意 HOST= 随意字符串
就OK了.忘能帮上各位  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2009-03-13 15:44 | haha
非常感谢!!
困扰了好久!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-03-19 09:35 | 霸王球
非常感谢,帮忙解决了问题!三克油  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-04-13 10:36 | orcl
问题解决,谢谢!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-04-27 09:23 | 我心飞翔
解决,非常感谢!非常,非常,非常,非常,非常!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-05-27 15:38 | calvin
强@john
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-06-15 16:18 | ly
楼主 我的黄精配置咱们是这样的啊
F:\oracle\product\10.2.0\db_1\bin;e:\oracle\product\10.2.0\client_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin
跟你的而不大一样 改怎么改?  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2009-07-07 11:26 | violet
不错 :)  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-08-11 09:06 | 打得到
去掉e:\oracle\product\10.2.0\client_1;就可以了@ly
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-08-15 09:28 | fbi333444
谢谢了 修改环境变量就可以搞定了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2009-08-18 15:01 |
我也遇到这个问题,害得的我重装了一遍oracle10g。现在终于解决了,需要把server环境变量放在client的环境变量就可以了。  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-08-25 22:07 | LBQ
非常感谢 我也遇到这样的问题了 修改后问题解决了
看了很多网页 还是你这里写的好 支持一下 !  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-09-04 14:40 | 开发这
谢谢,帮了我很大忙  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-09-28 10:49 | gengyongjiang
谢谢,问题解决  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-09-28 10:52 | gengyongjiang
之前的pl/sql都好用,重装系统后,pl/sql不好用了,我一直以为是我的操作系统版本问题,因为我这般XP连VC6都装不上。
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2009-10-14 18:57 | zhaoin
这个问题困扰了我好久,一度在影响到我项目的进程,把服务器端的环境变量一放到客户端的环境变量上就可了了,谢谢啊~非常感谢  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2009-10-30 10:10 | dd
謝謝呀,總算搞定!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2010-02-03 01:33 | user
那個环境变量在那裡的?!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2010-04-07 20:00 | me too
@ilovehibernate@hotmail.com
我的样子和他一样,还是改不掉。  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2010-04-29 11:13 | cw
那个环境变量在哪?  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2010-06-14 22:50 | summer
我也遇到过该问题,不过是因为装了两个客户端,卸载掉其中一个后就OK了。  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2010-09-25 17:33 | af
bucuo  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2010-10-08 15:31 | help屈
@打得到
对,去掉一个就行了,谢谢了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2010-12-10 10:42 | Han
谢谢,解决了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2011-02-11 11:05 | 萧萧
折腾了好久,终于解决了,谢谢了!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-05-12 09:25 | 路人甲
设置oracle_home这个问题一般就会解决了~  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-05-12 09:26 | 路人甲
添加oracle_home环境变量,这个问题一般就解决了~  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-06-28 13:34 | ke.zhang
@john
谢谢。你写的帮我解决了问题  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2011-07-20 18:23 | sandy
我是新手,那位大侠有空帮我远程一下;非常的感谢!!!QQ:9528597  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-08-05 10:22 | cherry
灰常感谢各位水的大虾啊。。。水的很好,解决我偶的问题。。。膜拜  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-08-05 10:23 | cherry
就是去掉一个就OK了,折腾了好久啊。。。太高兴了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-08-31 17:30 | 鑫哥
问题解决,不过请问这是什么意思啊?  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-08-31 17:30 | 鑫哥
问题解决,不过没明白什么意思  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-09-16 09:10 | AppleYang
@打得到
谢谢你,去掉e:\oracle\product\10.2.0\client_1;现在可以了,就是还有个乱码问题待解决  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-10-08 11:06 | 天空之城
谢谢啦~帮我解决了一个大问题。  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2011-10-08 11:07 | 天空之城
你的评论不好找,不醒目,想感谢下找个半天,哈哈~继续努力噢~  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-03-08 17:17 | justme
写的真不错  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-06-08 19:32 | billschen
终于被我找到了~  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-07-17 13:38 | qingliu_hnnu
怎么去掉一个客户端啊?急急急@summer
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-08-01 17:02 | pyx61198
我的的环境配置也是这样的啊
F:\oracle\product\10.2.0\db_1\bin;e:\oracle\product\10.2.0\client_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin
去掉e:\oracle\product\10.2.0\client_1;后还是不行啊,出现个空白的对话框,还是连不上,有谁知道为啥啊  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-10-18 09:29 | xiaov
如果是64位win7的话,这个问题是因为win7引起的。安装时默认在C:\Program Files (x86)下,就是这个(86)引起的这些问题,改下安装目录去掉这块就好了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-11-06 16:06 | 等李
问题解决了,非常感谢,这个一般情况下真想不到环境变量那去!!!我一开始还以为是plsql的问题了,后来用sqlplus登录也不行!!看到你的文档,让我茅塞顿开啊!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2012-12-29 15:05 | konling
嗯,这个太感谢了。  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2013-01-08 16:06 | ds
@小蚂蚁
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2013-01-30 17:06 |
牛掰啊!!!!!膜拜,解决了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2013-03-11 10:38 | panlex
恍然大悟啊  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2013-05-11 20:50 | mingwei
NB啊,谢谢  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2013-05-17 09:45 | lg
谢谢,问题解决
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2013-05-17 09:45 | lg
谢谢问题解决  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2013-06-02 14:13 | 小伟
我在用Sqlserver 连接Oracle数据库时 出现了 @lg
OLE DB 提供程序 'msdaora' 报错。
[OLE/DB provider returned message: ORA-12154: TNS:could not resolve the connect identifier specified
]
不知道是不是跟你的问题一样.. 我试了还是不行哎//  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2013-06-02 14:14 | 小伟
系统是Windows 2003 server @小伟
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2013-08-14 12:22 | TY
"环境变量"原来是在右击我的电脑属性-高级里面设置的啊,还真的解决了,真心感谢楼主啊!!!  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2013-08-27 16:37 | 地方
我的电脑-属性-高级设置-环境变量@cw
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2013-10-08 22:33 | wangdapeng
的确好用,谢谢你  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2013-12-16 14:58 | 吴丽红
@zhaoin 什么意思啊?我的path是这样的C:\Program Files\Intel\iCLS Client\;E:\app\dmeng\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\ 怎么改啊?  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2014-01-17 09:47 | tt
C:\Program Files\PC Connectivity Solution\;C:\oracle\product\10.1.0\Db_1\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Windows Imaging\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Intel\WiFi\bin\
这个环境变量有问题吗?请教  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2014-03-18 17:11 | 紫寒512
楼主好,看到你这个问题的时候,我真嗨皮,废话不多说,我也是忘了环境变量了。
可是配置好之后,再登陆时,又提示了个空白的对话框。少了之前的一串提示了。有没有遇到过呀?求助。。。。。  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2014-06-11 15:09 | 恩恩额
@ly@打得到
这样果然解决了,太好了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2014-08-21 14:56 | 安安
多谢分享,搞定,纠缠了我至少半年的问题啊,无数次重装系统,无数次改注册表,最终把自己系统搞崩溃。@pyx61198
@打得到
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2015-04-02 13:57 | 火龙果
果然是环境变量的问题,我的环境变量跟楼主不一样,但是只要在最前面加上楼主标红的那个就好了,我的是D盘,所以我弄成了D盘,问题就解决了  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2015-05-28 06:01 | lhshfree
在安装PLSQL-Developer时出现该问题 Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决!

windows8环境变量设置如下:在系统变量设置如下 :
变量:TNS_ADMIN

值:E:\app\asus\product\11.2.0\dbhome_1\NETWORK\ADMIN

其中值是你安装路径中查找对应项
  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2015-06-16 16:03 | qq
@help屈
?  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 2015-06-27 14:58 | waver001
感谢,遇到的问题一模一样  回复  更多评论
  
# re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! [未登录] 2015-08-21 16:16 | javaee
我的解决办法居然是因为有TNS里面的配置,service的name一样,我换个名字,都不一样就好了  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: