首页

通过PLSQL配置oracleclient客户端连接不上报“ORA-12154:TNS:could not resolve the connect identifier specifield”

标签:ORA-12154,oracle客户端,10g配置,32g,连接异常     发布时间:2017-09-03   

一、异常描述

通过PLSQLDeveloper10.0.3_32bit配置oracle免安装解压版本客户端oracle10gclient进行连接时,报“ORA-12154:TNS:could not resolve the connect identifier specified”错误窗口,本以为是版本不对应造成的,具体错误如下图所示

通过PLSQL配置oracleclient客户端连接不上报“ORA-12154:TNS:could not resolve the connect identifier specifield”

二、解决办法

1.将oracleclient下载包解压到C:/saas/oracleclient路径下,并在环境变量中配置TNS_ADMIN=C:/saas/oracleclient,如下图所示

通过PLSQL配置oracleclient客户端连接不上报“ORA-12154:TNS:could not resolve the connect identifier specifield”

2.在plsql的菜单选择“工具”下的“首选项”,如下图所示

通过PLSQL配置oracleclient客户端连接不上报“ORA-12154:TNS:could not resolve the connect identifier specifield”

3.在“首选项”配置对应oci.dll的路径为对应解压路径下C:/saas/oracleclient/oci.dll

通过PLSQL配置oracleclient客户端连接不上报“ORA-12154:TNS:could not resolve the connect identifier specifield”

4.关闭plsql,重新打开连接,问题解决了