隨筆-93  評(píng)論-78  文章-11  trackbacks-0
              今天,從上周就捆饒我的問題終于在下班前被我搞定!小得意了一下.
              我的電腦上之前安裝了Oracle 10g database,配置完變量用PL/SQL操作一切OK .當(dāng)又安裝完Oracle 10g client后,問題出現(xiàn)了,用PL/SQL登陸時(shí)反復(fù)提示:ORA-12154: TNS: could not resolve the connect identifier specified
              對(duì)于初學(xué)者,我反復(fù)的在"Oracle - OraDb10g_home3"下的"配置和移植工具"中的"Net Manager"中查找問題所在.請(qǐng)教高手,也沒有召見問題的原因.我郁悶了,隨后自己決定來(lái)搞定這個(gè)問題.
              我做了大量的反復(fù)的資料查看和自我檢查,靈感在下班的時(shí)候出現(xiàn),我突然意識(shí)到我的"環(huán)境變量"一直被忽視.
          打開后我發(fā)現(xiàn)我當(dāng)前的環(huán)境變量這樣設(shè)置的:
          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
          問題出現(xiàn)了.隨后我該成如下:
          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 !!! 問題在最后的關(guān)頭被我解決了!!!不錯(cuò).
          這就是: "不拋棄 不放棄"
          posted on 2007-11-19 17:59 wahaha 閱讀(144456) 評(píng)論(69)  編輯  收藏

          評(píng)論:
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2008-04-18 08:40 | 小螞蟻
          非常感謝,謝謝共享!省了我好多的時(shí)間  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2008-07-09 10:01 | teddy
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2008-07-25 09:24 | aaa
          謝謝,我也碰到這個(gè)問題了,client的環(huán)境變量在server之前,倒是pl/sql dev連不上  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2008-10-13 13:36 | jems.org.cn
          不錯(cuò).謝謝了!!!  回復(fù)  更多評(píng)論
            
          # 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就用不了  回復(fù)  更多評(píng)論
            
          # 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了.忘能幫上各位  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2009-03-13 15:44 | haha
          非常感謝!!
          困擾了好久!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-03-19 09:35 | 霸王球
          非常感謝,幫忙解決了問題!三克油  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-04-13 10:36 | orcl
          問題解決,謝謝!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-04-27 09:23 | 我心飛翔
          解決,非常感謝!非常,非常,非常,非常,非常!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-05-27 15:38 | calvin
          強(qiáng)@john
            回復(fù)  更多評(píng)論
            
          # 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
          跟你的而不大一樣 改怎么改?  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2009-07-07 11:26 | violet
          不錯(cuò) :)  回復(fù)  更多評(píng)論
            
          # 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
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-08-15 09:28 | fbi333444
          謝謝了 修改環(huán)境變量就可以搞定了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2009-08-18 15:01 |
          我也遇到這個(gè)問題,害得的我重裝了一遍oracle10g。現(xiàn)在終于解決了,需要把server環(huán)境變量放在client的環(huán)境變量就可以了。  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-08-25 22:07 | LBQ
          非常感謝 我也遇到這樣的問題了 修改后問題解決了
          看了很多網(wǎng)頁(yè) 還是你這里寫的好 支持一下 !  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-09-04 14:40 | 開發(fā)這
          謝謝,幫了我很大忙  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-09-28 10:49 | gengyongjiang
          謝謝,問題解決  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-09-28 10:52 | gengyongjiang
          之前的pl/sql都好用,重裝系統(tǒng)后,pl/sql不好用了,我一直以為是我的操作系統(tǒng)版本問題,因?yàn)槲疫@般XP連VC6都裝不上。
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2009-10-14 18:57 | zhaoin
          這個(gè)問題困擾了我好久,一度在影響到我項(xiàng)目的進(jìn)程,把服務(wù)器端的環(huán)境變量一放到客戶端的環(huán)境變量上就可了了,謝謝啊~非常感謝  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2009-10-30 10:10 | dd
          謝謝呀,總算搞定!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2010-02-03 01:33 | user
          那個(gè)環(huán)境變量在那裡的?!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2010-04-07 20:00 | me too
          @ilovehibernate@hotmail.com
          我的樣子和他一樣,還是改不掉。  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2010-04-29 11:13 | cw
          那個(gè)環(huán)境變量在哪?  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2010-06-14 22:50 | summer
          我也遇到過該問題,不過是因?yàn)檠b了兩個(gè)客戶端,卸載掉其中一個(gè)后就OK了。  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2010-09-25 17:33 | af
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2010-10-08 15:31 | help屈
          @打得到
          對(duì),去掉一個(gè)就行了,謝謝了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2010-12-10 10:42 | Han
          謝謝,解決了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2011-02-11 11:05 | 蕭蕭
          折騰了好久,終于解決了,謝謝了!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-05-12 09:25 | 路人甲
          設(shè)置oracle_home這個(gè)問題一般就會(huì)解決了~  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-05-12 09:26 | 路人甲
          添加oracle_home環(huán)境變量,這個(gè)問題一般就解決了~  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-06-28 13:34 | ke.zhang
          @john
          謝謝。你寫的幫我解決了問題  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2011-07-20 18:23 | sandy
          我是新手,那位大俠有空幫我遠(yuǎn)程一下;非常的感謝!!!QQ:9528597  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-08-05 10:22 | cherry
          灰常感謝各位水的大蝦啊。。。水的很好,解決我偶的問題。。。膜拜  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-08-05 10:23 | cherry
          就是去掉一個(gè)就OK了,折騰了好久啊。。。太高興了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-08-31 17:30 | 鑫哥
          問題解決,不過請(qǐng)問這是什么意思啊?  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-08-31 17:30 | 鑫哥
          問題解決,不過沒明白什么意思  回復(fù)  更多評(píng)論
            
          # 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;現(xiàn)在可以了,就是還有個(gè)亂碼問題待解決  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-10-08 11:06 | 天空之城
          謝謝啦~幫我解決了一個(gè)大問題。  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2011-10-08 11:07 | 天空之城
          你的評(píng)論不好找,不醒目,想感謝下找個(gè)半天,哈哈~繼續(xù)努力噢~  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-03-08 17:17 | justme
          寫的真不錯(cuò)  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-06-08 19:32 | billschen
          終于被我找到了~  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-07-17 13:38 | qingliu_hnnu
          怎么去掉一個(gè)客戶端啊?急急急@summer
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-08-01 17:02 | pyx61198
          我的的環(huán)境配置也是這樣的啊
          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;后還是不行啊,出現(xiàn)個(gè)空白的對(duì)話框,還是連不上,有誰(shuí)知道為啥啊  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-10-18 09:29 | xiaov
          如果是64位win7的話,這個(gè)問題是因?yàn)閣in7引起的。安裝時(shí)默認(rèn)在C:\Program Files (x86)下,就是這個(gè)(86)引起的這些問題,改下安裝目錄去掉這塊就好了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-11-06 16:06 | 等李
          問題解決了,非常感謝,這個(gè)一般情況下真想不到環(huán)境變量那去!!!我一開始還以為是plsql的問題了,后來(lái)用sqlplus登錄也不行!!看到你的文檔,讓我茅塞頓開啊!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2012-12-29 15:05 | konling
          嗯,這個(gè)太感謝了。  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2013-01-08 16:06 | ds
          @小螞蟻
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2013-01-30 17:06 | 無(wú)
          牛掰啊!!!!!膜拜,解決了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2013-03-11 10:38 | panlex
          恍然大悟啊  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2013-05-11 20:50 | mingwei
          NB啊,謝謝  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2013-05-17 09:45 | lg
          謝謝,問題解決
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2013-05-17 09:45 | lg
          謝謝問題解決  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2013-06-02 14:13 | 小偉
          我在用Sqlserver 連接Oracle數(shù)據(jù)庫(kù)時(shí) 出現(xiàn)了 @lg
          OLE DB 提供程序 'msdaora' 報(bào)錯(cuò)。
          [OLE/DB provider returned message: ORA-12154: TNS:could not resolve the connect identifier specified
          ]
          不知道是不是跟你的問題一樣.. 我試了還是不行哎//  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2013-06-02 14:14 | 小偉
          系統(tǒng)是Windows 2003 server @小偉
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2013-08-14 12:22 | TY
          "環(huán)境變量"原來(lái)是在右擊我的電腦屬性-高級(jí)里面設(shè)置的啊,還真的解決了,真心感謝樓主啊!!!  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2013-08-27 16:37 | 地方
          我的電腦-屬性-高級(jí)設(shè)置-環(huán)境變量@cw
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2013-10-08 22:33 | wangdapeng
          的確好用,謝謝你  回復(fù)  更多評(píng)論
            
          # 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\ 怎么改啊?  回復(fù)  更多評(píng)論
            
          # 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\
          這個(gè)環(huán)境變量有問題嗎?請(qǐng)教  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2014-03-18 17:11 | 紫寒512
          樓主好,看到你這個(gè)問題的時(shí)候,我真嗨皮,廢話不多說,我也是忘了環(huán)境變量了。
          可是配置好之后,再登陸時(shí),又提示了個(gè)空白的對(duì)話框。少了之前的一串提示了。有沒有遇到過呀?求助。。。。。  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2014-06-11 15:09 | 恩恩額
          @ly@打得到
          這樣果然解決了,太好了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2014-08-21 14:56 | 安安
          多謝分享,搞定,糾纏了我至少半年的問題啊,無(wú)數(shù)次重裝系統(tǒng),無(wú)數(shù)次改注冊(cè)表,最終把自己系統(tǒng)搞崩潰。@pyx61198
          @打得到
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2015-04-02 13:57 | 火龍果
          果然是環(huán)境變量的問題,我的環(huán)境變量跟樓主不一樣,但是只要在最前面加上樓主標(biāo)紅的那個(gè)就好了,我的是D盤,所以我弄成了D盤,問題就解決了  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2015-05-28 06:01 | lhshfree
          在安裝PLSQL-Developer時(shí)出現(xiàn)該問題 Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決!

          windows8環(huán)境變量設(shè)置如下:在系統(tǒng)變量設(shè)置如下 :
          變量:TNS_ADMIN

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

          其中值是你安裝路徑中查找對(duì)應(yīng)項(xiàng)
            回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2015-06-16 16:03 | qq
          @help屈
          ?  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! 2015-06-27 14:58 | waver001
          感謝,遇到的問題一模一樣  回復(fù)  更多評(píng)論
            
          # re: Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 問題解決! [未登錄] 2015-08-21 16:16 | javaee
          我的解決辦法居然是因?yàn)橛蠺NS里面的配置,service的name一樣,我換個(gè)名字,都不一樣就好了  回復(fù)  更多評(píng)論
            

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 北票市| 黄骅市| 双城市| 梨树县| 留坝县| 苏尼特左旗| 新源县| 婺源县| 红河县| 金乡县| 成武县| 沂南县| 栖霞市| 彩票| 花莲县| 灵丘县| 焉耆| 临桂县| 延津县| 舟曲县| 娄底市| 柯坪县| 玉山县| 古丈县| 荃湾区| 双城市| 宁都县| 内江市| 延安市| 河间市| 平定县| 专栏| 同德县| 宝坻区| 遵化市| 石河子市| 三原县| 宜昌市| 昆山市| 肇源县| 焉耆|