1 步骤一:登录ORACLE数据库,在服务器使用tnsping gshx2cs(实例名)来测试你的实例能够解析,出现如下图报错。2 步骤二:根据报错,是tnsping无法解析oracle数据库实例对应的的ip和端口,怀疑TNS配置问题。TNS的配置文件为tnsnames.ora,目录一般为$ORACLE_HOME/network/admin 3 步骤三:按照如图格式修改TNS串,配...
因为我的可以通过其它客户端访问,所以不会是监听的问题。 其次:使用oracle用户,测试tnsping orcl。一般情况下肯定通。非oracle用户并且不属于oracle用户所属组的查看是否有权限。没有权限使用: chmod o+r tnsname.ora即可。 最后:版本兼容性的问题。
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified Enter user-name: 5. 检查监听器状态, ora11g>lsnrctl status LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 08-JAN-2015 01:55:32 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (ADDRESS=(...
TNS-03505: Failed to resolve name 4. 使用sqlplus登录测试,报错: ora11g>sqlplus dcsopen/dcsopen1@dcsopen SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 13 23:11:00 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. ERROR: ORA-12154: TNS:could not resolve the connect i...
注释掉sqlnet.ora中NAMES.DIRECTORY_PATH= (TNSNAMES)一行, 注释掉就会采用默认值(TNSNAMES,ONAMES,HOSTNAME),当然你也可以修改加上这些常用选项。 再次测试,问题解决。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 C:\Documents and Settings\Administrator>sqlplus system/oracle@192.168.10.10/xxsid SQL*Plu...
TNS-03505: Failed to resolve name [oracle@db01 admin]$ sqlplus system/oracle@pri SQL*Plus: Release 11.2.0.4.0 Production on Mon Jun 15 21:58:48 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. ERROR: ORA-12154: TNS:could not resolve the connect identifier specified ...