隨筆-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 閱讀(144456) 評論(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一樣,我換個名字,都不一樣就好了  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 东宁县| 资阳市| 庆城县| 陆良县| 苏尼特右旗| 萨迦县| 彭山县| 贞丰县| 年辖:市辖区| 河曲县| 广河县| 疏勒县| 阳谷县| 普陀区| 靖边县| 松滋市| 北票市| 富平县| 介休市| 高要市| 西城区| 合川市| 白朗县| 乌海市| 乐陵市| 大悟县| 报价| 肇源县| 安溪县| 赣州市| 长寿区| 乐山市| 德阳市| 东兴市| 珠海市| 朝阳市| 尚义县| 大方县| 来安县| 讷河市| 屏南县|