Oracle:ORA-12154: TNS:could not resolve the connect identifier specified
ORA-12154: TNS: 无法解析指定的连接标识符
注册表:regedit
安装oracle后用Net Manager 配置好服务名称之后,测试成功,可是PL/SQL无法连接
参考上面网址找到环境变量发现确实存在 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.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的更多相关文章
- 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 ...
- 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 ...
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specified
DG处理的问题还是蛮多的,但这次遇到一个比较奇葩的事情,表面配置.网络都没啥问题,但主备的同步始终有问题,经过多次调整参数.重新部署问题依旧,最终还是求助mos问题得以解决,现将处理过程记录如下: 一 ...
- 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 ...
- 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 ...
- PLSQL 错误问题:ora-12154:TNS:could not resolve the connect identifier
错误问题: ORA-12154: TNS:could not resolve the connect identifier specified 即无法解析指定的连接,这说明缺少了一个环境变量,TNS_ ...
- PL/SQL- ora-12154 '' TNS:could not resolve the connect identifier specified'
出现如上情况在使用pl/sql连接oracle服务器时很常见,问题出现的方式也很多 最终问题还是pl/sql在读取NETWORK\ADMIN\tnsnames.ora是配置的内容时解析错误 也就是说t ...
- 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. 情况描述:我 ...
- 关于ORA-12154: TNS:could not resolve the connect identifier specified的问题
问题:net configuration assistant测试连接可以连接.但是PLSQL连接不了,报ORA-12154: TNS:could not resolve the connect ide ...
- 在linux上使用impdp命令时提示ORA-12154: TNS:could not resolve the connect identifier specified的问题
今天在一台linux服务器上用impdp命令导入dmp文件时出现了错误: ORA: TNS:could not resolve the connect identifier specified 我使用 ...
随机推荐
- windows7 下安装使用Redis
Redis 安装使用 本地环境:Windows7 64位web环境:wamp集成环境,php版本:PHP Version 7.1.17 学习参考网站: RUNOOB.COM官网 http://www ...
- Swift--方法(函数)
方法是执行特殊任务的自包含代码块.你可以给方法名字来表示它的功能,而且在需要的时候调用这个名字的方法来执行它的任务. Swift方法的语法表达很灵活,从类似c的没有参数名的方法到oc复杂的带有名字和参 ...
- git批量删除本地分支及远程分支
1.批量删除本地分支 git branch |grep 'branchName' |xargs git branch -D git branch 查看本地分支 | grep 'branchName ...
- vijos 2035 奇数偶数与绚丽多彩的数
描述 Q先生是一个热爱学习的男孩子. 他认为一个 n 位的正整数 x 若能被称作是绚丽多彩的,一定要满足对于{1,3,5,7,9} 中任意一个奇数或者没有在 x 中出现,或者在 x 中出现了恰好奇数次 ...
- 2017年icpc西安网络赛 Maximum Flow (找规律+数位dp)
题目 https://nanti.jisuanke.com/t/17118 题意 有n个点0,1,2...n-1,对于一个点对(i,j)满足i<j,那么连一条边,边权为i xor j,求0到n- ...
- java中可以通过调用ping命令来判断网络是否连接正常
原文:http://www.open-open.com/code/view/1446382328960 import java.io.BufferedReader; import java.io.IO ...
- ASP.NET Core 奇淫技巧之动态WebApi
一.前言 接触到动态WebApi(Dynamic Web API)这个词的已有几年,是从ABP框架里面接触到的,当时便对ABP的这个技术很好奇,后面分析了一波,也尝试过从ABP剥离一个出来作为独立组件 ...
- 【转载】《Unix网络编程》思维导图
参考这篇文章,很不错: http://www.cnblogs.com/qiaoconglovelife/p/5734768.html
- java quartz的使用,做时间轮询调用 CronTrigger
import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionExceptio ...
- 9款Android经常使用的高速开发框架
1.Afinal框架 项目地址:https://github.com/yangfuhai/afinal 项目地址:http://www.oschina.net/p/afinal 主要有四大模块: ( ...