ORA-12154: TNS: 无法解析指定的连接标识符

注册表:regedit

安装oracle后用Net Manager 配置好服务名称之后,测试成功,可是PL/SQL无法连接

http://wenku.baidu.com/link?url=M3fK-v4OFeIx1mAWotKoPMKagYjZt0yMQ2ZPyZrN0DF7ID1_IiPB0BUNHS4vw80wTsGkWuNZiqH7wm_4k5SHTTvhe3gwJptpvMq49po5Y3q

参考上面网址找到环境变量发现确实存在 C:\oracle\product\10.2.0\client_1; 移除此段即可,

导致改问题的原因是:装oracle的时候装了两遍,第一遍装错了。

C:\oracle\product\10.2.0\client_2\NETWORK\ADMIN\tnsnames.ora

====================================================================win7 64位 vs2010 oracle ORA-12154: TNS: 无法解析指定的连接标识符

原因:win7 X64位电脑。在安装oracle的时候 有一部分文件安装到了 Program Files(X66)的文件夹内 就是这个 括号 引起的这个错误。当用VS2010直接运行程序的时候是VS直接开的端口去运行程序,因为连接oracle调用到了Program Files(X66)\Oracle下的程序。所以导致了该错误。

如果直接将VS调试通过发布在IIS上,那么就不会出现这样的问题了。!!!!!!!

可以参考这个文章:http://www.cnblogs.com/cnluoke/archive/2008/01/17/1042183.html

ORA-12154: TNS: 无法解析指定的连接标识符

C:\oracle\product\10.2.0\client_2\NETWORK\ADMIN\tnsnames.ora

C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN

# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.\client_2\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools. HBAMS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.0.251)(PORT = ))
)
(CONNECT_DATA =
(SERVICE_NAME = hbAMS)
)
) HBCQ =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.227)(PORT = ))
)
(CONNECT_DATA =
(SERVICE_NAME = hbcq)
)
) HBJN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.0.251)(PORT = ))
)
(CONNECT_DATA =
(SERVICE_NAME = hbjn)
)
) HBPZ =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.0.251)(PORT = ))
)
(CONNECT_DATA =
(SERVICE_NAME = hbpz)
)
)

tnsnames.ora

ORA-12154: TNS: 无法解析指定的连接标识符

可以搜索关键字: 关于win7 x64 连接oracle 客户端 VS2010调试 提示“ORA-12154: TNS: 无法解析指定的连接标识符 ”

http://davidullua.cnblogs.com/articles/180792.html

最终解决方法:

http://blog.miniasp.com/post/2009/08/31/Solve-ASPNET-cannot-connect-Oracle-DB-using-Development-Server.aspx

http://blog.sina.com.cn/s/blog_6d0021460101545s.html

http://blog.sina.com.cn/s/blog_92400273010190um.html

TNS_ADMIN

C:\app\cq\product\11.2.0\dbhome_1\NETWORK\ADMIN

别忘了 重启IIS 哎本来是设置成功的。忘了重启了 试了好几遍

Oracle:ORA-12154: TNS:could not resolve the connect identifier specified的更多相关文章

  1. Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 我同事遇到的问题。 username/

    Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 我同事遇到的问题. userna ...

  2. PL/SQL developer连接oracle出现“ORA-12154:TNS:could not resolve the connect identifier specified”问题的解决

    转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/50728536 本文出自[我是干勾鱼的博客] 使用PL/SQL developer ...

  3. Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specified

    DG处理的问题还是蛮多的,但这次遇到一个比较奇葩的事情,表面配置.网络都没啥问题,但主备的同步始终有问题,经过多次调整参数.重新部署问题依旧,最终还是求助mos问题得以解决,现将处理过程记录如下: 一 ...

  4. EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified

    报告错误:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifi ...

  5. plsql developer连接Oracle报错ORA-12154: TNS:could not resolve the connect identifier specified

    今日更改Oracle网络配置文件后使用plsql developer 尝试连接到Oracle出现报错 ORA-12154: TNS:could not resolve the connect iden ...

  6. PLSQL 错误问题:ora-12154:TNS:could not resolve the connect identifier

    错误问题: ORA-12154: TNS:could not resolve the connect identifier specified 即无法解析指定的连接,这说明缺少了一个环境变量,TNS_ ...

  7. PL/SQL- ora-12154 '' TNS:could not resolve the connect identifier specified'

    出现如上情况在使用pl/sql连接oracle服务器时很常见,问题出现的方式也很多 最终问题还是pl/sql在读取NETWORK\ADMIN\tnsnames.ora是配置的内容时解析错误 也就是说t ...

  8. PL/SQL Developer报错 ORA-12154:tns:could not resolve the connect identifier specified

    PL/SQL Developer使用预先配置数据库报错 ORA-12154:tns:could not resolve the connect identifier specified. 情况描述:我 ...

  9. 关于ORA-12154: TNS:could not resolve the connect identifier specified的问题

    问题:net configuration assistant测试连接可以连接.但是PLSQL连接不了,报ORA-12154: TNS:could not resolve the connect ide ...

  10. 在linux上使用impdp命令时提示ORA-12154: TNS:could not resolve the connect identifier specified的问题

    今天在一台linux服务器上用impdp命令导入dmp文件时出现了错误: ORA: TNS:could not resolve the connect identifier specified 我使用 ...

随机推荐

  1. msp430项目编程02

    msp430中项目---液晶1602显示 1.液晶1602工作原理 2.电路原理说明 3.代码(静态显示) 4.代码(动态显示) 5.项目总结 msp430项目编程 msp430入门学习

  2. POJ 2391 多源多汇拆点最大流 +flody+二分答案

    题意:在一图中,每个点有俩个属性:现在牛的数量和雨棚大小(下雨时能容纳牛的数量),每个点之间有距离, 给出牛(速度一样)在顶点之间移动所需时间,问最少时间内所有牛都能避雨. 模型分析:多源点去多汇点( ...

  3. [Bzoj4260]Codechef REBXOR(trie树)

    4260: Codechef REBXOR Time Limit: 10 Sec  Memory Limit: 256 MBSubmit: 1534  Solved: 669[Submit][Stat ...

  4. Nginx: 解决connect() to xxxx failed (13: Permission denied) while connecting to upstream的问题

    一句话:setsebool httpd_can_network_connect true

  5. java native interface JNI 调用Java方法

    在上一篇文章中介绍了JNI.以及java调用JNI.这篇讲一下 JNI调用java方法. 通过使用合适的JNI函数,你能够创建Java对象,get.set 静态(static)和 实例(instanc ...

  6. OpenJudge百炼习题解答(C++)--题3142:球弹跳高度的计算

    题: 总时间限制:  1000ms  内存限制:  65536kB 描写叙述 一球从某一高度落下(整数,单位米),每次落地后反跳回原来高度的一半.再落下. 编程计算气球在第10次落地时,共经过多少米? ...

  7. js 时钟特效

      时钟特效 CreateTime--2018年2月24日15:11:23 Author:Marydon 实现方式:都是基于HTML5的canvas标签实现的 款式一 借助jQuery插件实现 < ...

  8. 【Jquery】jQuery获取URL參数的两种方法

    jQuery获取URL參数的关键是获取到URL,然后对URL进行过滤处理,取出參数. location.href是取得URL.location.search是取得URL"?"之后的 ...

  9. Java面试通关要点汇总整理【终极版】(转载)

    简历篇 请自我介绍 请介绍项目 基础篇 基本功 面向对象的特征 final, finally, finalize 的区别 int 和 Integer 有什么区别 重载和重写的区别 抽象类和接口有什么区 ...

  10. 使用JDBC 插入向数据库插入对象

    package com.ctl.util; import java.io.IOException; import java.lang.reflect.Field; import java.lang.r ...