今天,从上周就捆饶我的问题终于在
下班前被我
搞定!小得意了一下.我的电脑上之前安装了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_2E:\oracle\oradata\binE:\oracle\binE:\Program Files\Java\jdk1.5.0_04\binE:\Tomcat5028\bin%SystemRoot%\system32%SystemRoot%%SystemRoot%\System32\Wbem问题出现了.随后我该成如下:path == E:\oracleE:\oracle\oradata\binE:\oracle\binE:\Program Files\Java\jdk1.5.0_04\binE:\Tomcat5028\bin%SystemRoot%\system32%SystemRoot%%SystemRoot%\System32\WbemOK !!! 问题在最后的关头被我解决了!!!不错.这就是: "不抛弃 不放弃"在2,tnsnames.ora文件中也把lister加进来,
你要在服务器上用
sqlplus owner/password@服务名 能登录上才可以连接的.
2,tnsnames.ora文件:
# tnsnames.ora Network Configuration File: E:\app\H00726092\product\11.2.0\client_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prm1)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ora11g)
(ORACLE_HOME = /oracle/app/product/11g/db)
(SID_NAME = ora11g)
)
)
ora11g =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.237.220)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ora11g)
)
)
评论列表(0条)