您的位置:首页 > 数据库 > Oracle

ORA-12154: TNS:could not resolve the connect identifier specified 解决方案

2011-03-30 17:52 501 查看
今天用 PL/SQL Developer v8.0.4 连接 Oracel 11g R2 (Windows x64) 时,总是提示“ORA-12154: TNS:could not resolve the connect identifier specified”的错误信息,问题到最后总算是解决了,解决办法如下:

1. 从 oracle 官方网站下载 32 位的客户端(instantclient-basic-win32-11.2.0.1.0.zip),然后解压,我本机解压后的目录为:C:\oracle\instantclient_11_2

2. 然后在 pl/sql 中配置一下 oci 文件路径(tools-->preferences...-->Oracle-->Connection-->OCI Libray(empty is autodetect) 将该值改为刚才解压后文件夹中的 coi.dll 的全路径,如:C:\oracle\instantclient_11_2\oci.dll)

3. 配置系统环境变量,以防乱码:

TNS_ADMIN=C:/oracle/product/11.2.0/dbhome_1/NETWORK/ADMIN
NLS_LANG=AMERICAN_AMERICA.AL32UTF8
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle windows c
相关文章推荐