Tnsping Errror - TNS-03505: Failed to resolve name
Morning Everyone,
Minute ago i was trying to check connectivity of my default instance using 'tnsping' OS command but it failed to resolve the instance name:
Before i provide you the error codes below is the number of instances running:
================================================
[root@localhost ~]# ps -ef | grep smon
oracle 2561 1 0 09:29 ? 00:00:01 ora_smon_orcl
oracle 13888 1 0 12:18 ? 00:00:00 ora_smon_doom /* Trying to ping this instance named 'Doom' */
root 21039 21006 0 14:15 pts/1 00:00:00 grep smon
================================================
Exact error messsage:
=====================================================
[oracle@localhost root]$ echo $ORACLE_SID
orcl
[oracle@localhost root]$ export ORACLE_SID=doom
[oracle@localhost root]$ echo $ORACLE_SID
doom
[oracle@localhost root]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Apr 21 14:19:12 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select name, open_mode from v$database;
NAME OPEN_MODE
--------- ----------
DOOM READ WRITE
SQL> !tnsping doom_ /* Error in spite of 'Doom' instance is already running and open' */
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 21-APR-2012 14:19:21
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
SQL> !tnsping orcl
SQL> !tnsping orcl /* No error when tried to ping even when 'orcl' instance is not running*/
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 21-APR-2012 14:19:40
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)
SQL>
=================================================================================
Thanks
- Prashant Dixit