同事遇到的问题,在其他电脑用PLSQL可以访问数据库,但他本机用PLSQL登陆时ORA-12154: TNS: could not resolve service name错误.我按照习惯查看了tnsnames.ora文件和监听配置文件,没发现问题.然后我详细的问了一下他安装数据库的步骤,然后查看了sqlnet.ora文件,找到了问题根本所在.
他的NAMES.DIRECTORY_PATH= (ONAMES),所以我把的此项修改为NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME, ONAMES)
再连数据库,一切OK!
最后如果还不能解决问题请参考以下步骤:
1.Verify that a tnsnames.ora file exists.(See Also: "Localized Configuration File Support" for configuration file location information)
2.Verify that there are not multiple copies of the tnsnames.ora file.
3.In the tnsnames.ora file, verify that the net service name specified in your connect string is mapped to a connect descriptor.
4.Verify that there are no duplicate copies of the sqlnet.ora file.
5.If you are using domain names, verify that your sqlnet.ora file contains a NAMES.DEFAULT_DOMAIN parameter. If this parameter does not exist, you must specify the domain name in your connect string.
6.If you are not using domain names, and this parameter exists, delete it or disable it by commenting it out.
7.If you are connecting from a login dialog box, verify that you are not placing an "@" symbol before your connect net service name.
8.Activate client tracing and repeat the operation.
分享到:
相关推荐
ORA-12154: TNS: 无法解析指定的连接标识符的解决方法
解决ORACLE TNS: 无法解析指定的连接标识符; 里面有步骤
oracle报错ora-12541:TNS无监听程序
ora-12514:TNS:监听程序当前无法识别连接描述符中请求的服务bug,解决文档.
ORA-12154_TNS无法解析指定的连接标识符
ORA-12154:TNS:无法解析指定的连接标识符 ORA-12154:TNS:无监听程序 错误分析一、PL/SQL 客户端登录到数据库,如果配置错误会有以上错误,如下图。 这个错误主要是pl/sql客户端的tnsnames.ora配置错误,或者是输入 ...
主要介绍了Oracle导dmp出现文件ORA-12154: TNS: 无法解析指定的连接标识符问题的解决方案,需要的朋友可以参考下
错误描述:oracle远程连接服务器出现 ORA-12170 TNS:连接超时 错误检查:有很多是oracle自身安装的问题,但是我这里服务器配置正常,监听正常,服务正常,远程可以ping通服务器。 这里主要是防火墙问题,解决办法: ...
最近在工作中遇到了一个问题,错误是Oracle dbca时报错:ORA-12547: TNS:lost contact,通过查找相关的资料终于找到了解决的方法,下面分享给大家,话不多说了,来一起看看详细的介绍吧。 环境: OS:RHEL6.5 x86-...
ORA-12518 TNS:监听程序无法分发客户机连接,在您安装好数据库后配置连接数据库的过程中遇到这类问题应该很头疼吧,不过,当您还是四处查资料来解决您遇到的另你头疼的问题时,如果不经意间看到了这则贴子,那请您升...
ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-...
ORA-12560 TNS 协议适配器错误
ORA-12154_TNS无法解析指定的连接解决方法 包含多钟可能的情况的解决方式。
报错如下 报错: ORA-12170:TNS connect timeout occurred 第一反应是监听没开: 1. 测试了一下, 连接超时没用ping 通 C:\Users\Administrator>tnsping brorcl TNS Ping Utility for 64-bit Windows: Version 11.2...
实验得来的,不是随便copy的, ORA-12560TNS协议适配器错误,这个问题可定可以解决
在运行查询SELECT * FROM V$SESSION 会出现ORA-29275:部分多字节字符的错误,这是什么原因开始我不得其解,网上也没有介绍什么好办法。本文给出答案。
相信使用过Oracle数据库的人一定碰到过“ORA-12154: TNS: 无法解析指定的连接标识符”错误,我在此做一个小小的总结。 在程序中连接Oracle数据库的方式与其他常用数据库,如:MySql,Sql Server不同,这些数据库可以...
ORA-12514 TNS 监听程序当前无法识别连接描述符中请求的服务
主要介绍了连接Oracle数据库时报ORA-12541:TNS:无监听程序的图文解决教程,非常不错,具有参考借鉴价值,需要的朋友可以参考下