随笔-20  评论-51  文章-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 阅读(45893) 评论(42)  编辑  收藏

评论:
# 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
写的真不错  回复  更多评论
  

博问 - 解决您的IT难题
博客园  博问  IT新闻  Java程序员招聘
标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录      


网站导航: