TNSPING failed

My server is ORACLE 10G , version 10.2.0.1.0
I run the command TNSPING 192.168.1.250 as database is installed in the ip address, and is showing the follwoing error
TNS-12535 : TNS : OPERATION TIME OUT. Is there any way to fix the fault?

userSA wrote:
ping gets reply. It is connecting fine and one database specified in the tnsname connecting. Both databases located on same server that one is connecting and another one is not? if not check the telnet to server on port 1521. Port 1521 may be blocked either at server or firewall.On the server hosting the datase:
lsnrctl statusAnd show (don't just describe) the results.
On the client machine
tnsping <db that works>
tnsping <db that doesn't work>And show (don't just describe) the results.

Similar Messages

  • Tnsping failed in 10g@RHEL5

    platform: Oracle 10.2.0.1.0 on RHEL5.
    Issue: tnsping failed from client (successful from the server itself)
    Brief: I can tnsping and sqlplus to the test1 db from the RHEL5 db server itself, no issue. But when I tried to tnsping from a client, I get the error.
    ** In both db selver and the client, I am using same tnsnames.ora.
    ** checked etc/hosts , /etc/sysconfig/network , /proc/sys/net/ipv4/ip_local_port_range - all OK.
    Pl help.
    =======listener file======
    LISTENER_TEST1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.com)(PORT = 1523))
    SID_LIST_LISTENER_TEST1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test1)
    (ORACLE_HOME = /app/oracle/product/10.2.0/db_1)
    (SID_NAME = test1)
    ====================
    =====tnsnames.ora=====
    TEST1.ABC.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.abc.com)(PORT = 1523))
    (CONNECT_DATA =
    (SERVICE_NAME = test1)
    ====================
    ====================
    ----following is a tnsping test (SUCCESSFUL) from the db server itself----
    dbserver> tnsping TEST1.ABC.COM
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 19-APR-2008 00:13:24
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.abc.com)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = test1)))
    OK (0 msec)
    ====================
    ====================
    ~~~~~Followin g is a tnsping test (FAILED) from a client~~~~~~~~~~
    clientbox> tnsping test1.abc.com
    TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 19-APR-2008 00:22:09
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.abc.com)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = test1)))
    TNS-12560: TNS:protocol adapter error
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ====================

    I have correct ip and hostname defined in /etc/hosts.
    the actual listener and tns looks like this (earlier was a typo)
    =======listener file======
    LISTENER_TEST1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.com)(PORT = 1523))
    SID_LIST_LISTENER_TEST1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test1)
    (ORACLE_HOME = /app/oracle/product/10.2.0/db_1)
    (SID_NAME = test1)
    ====================
    =====tnsnames.ora=====
    TEST1.ABC.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.com)(PORT = 1523))
    (CONNECT_DATA =
    (SERVICE_NAME = test1)
    ====================

  • Tnsping failed from client

    platform: Oracle 10.2.0.1.0 on RHEL5.
    Issue: tnsping failed from client (successful from the server itself)
    Brief: I can tnsping and sqlplus to the test1 db from the RHEL5 db server itself, no issue. But when I tried to tnsping from a client, I get the error.
    ** In both db selver and the client, I am using same tnsnames.ora.
    ** checked etc/hosts , /etc/sysconfig/network , /proc/sys/net/ipv4/ip_local_port_range - all OK.
    Pl help.
    =======listener file======
    LISTENER_TEST1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.com)(PORT = 1523))
    SID_LIST_LISTENER_TEST1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test1)
    (ORACLE_HOME = /app/oracle/product/10.2.0/db_1)
    (SID_NAME = test1)
    ====================
    =====tnsnames.ora=====
    TEST1.ABC.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.abc.com)(PORT = 1523))
    (CONNECT_DATA =
    (SERVICE_NAME = test1)
    ====================
    ====================
    ----following is a tnsping test (SUCCESSFUL) from the db server itself----
    dbserver> tnsping TEST1.ABC.COM
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 19-APR-2008 00:13:24
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.abc.com)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = test1)))
    OK (0 msec)
    ====================
    ====================
    ~~~~~Followin g is a tnsping test (FAILED) from a client~~~~~~~~~~
    clientbox> tnsping test1.abc.com
    TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 19-APR-2008 00:22:09
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.abc.com)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = test1)))
    TNS-12560: TNS:protocol adapter error
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ====================

    Duplicate thread.
    Re: tnsping failed in 10g@RHEL5
    It's always advisable to open one post instead of multiple with the same contents on different forums.
    Regards,
    Sabdar Syed.

  • DB link working but tnsping fails,how?

    Hi
    I have DB link defined in Oracle EBS DB 10.2.0.3. When i query the table using db link, it is working. But tnsping is failing with this error --TNS-12535: TNS:operation timed out. When the network is not established between our oracle server and SQL server database, how come the DB links works?
    Any help highly appreciated.
    Regards

    Hi
    We have 3 different servers for the DB links. When i was querying with one of our data center server (network ok), it is ok. But the other two servers it is failing. Sorry, mistaken.
    Regards

  • When turning on Advanced Security Network Encryption tnsping fails

    Hi people,
    I'm installing Advanced Security Network Encryption in my server (RHEL 3), I've configured my sqlnet.ora as follows:
    SQLNET.CRYPTO_CHECKSUM_SERVER = REQUIRED
    SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = MD5
    SQLNET.ENCRYPTION_TYPES_SERVER= (RC4_256)
    SQLNET.ENCRYPTION_SERVER = REQUIRED
    SQLNET.CRYPTO_SEED = "abcdefg"
    After that, tnsping do not work anymore, I'm getting TNS-03505 - "Failed to resolve name".
    If I remove Adv. Security configuration tnsping become normal.
    Do anybody knows what can it be?
    Thanks in Advance
    André Teixeira

    Are you running tnsping from the server to itself? Or from the client? Has Advanced Security been configured on the client?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • TNSPING fail

    Hi, I am trying to set up a link from oracle 8.1.7 to sql2000 on different win2000 servers.
    I have set up an ODBC connection and if I test this with MS Access on same machine as Oracle server I am able to link to tables on SQL server.
    This ODBC connection only works if I use port 1433.
    Then I edited tnsnames.ora & listener.ora in Oracle_Home/network/admin
    192.168.15.7 is ip of sql machine and redrouter is sql sid name, when i try tnsping I get:
    TNS-1254: TNS:no listener
    ODS1SERVER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.34)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ods1)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jambor-1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = ODS2)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ODS2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jambor-1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ODS2)
    REDROUTER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.7)(PORT = 1521))
    (CONNECT_DATA =
    (SID = redrouter)
    (HS = OK)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jambor-1)(PORT = 1521))
    (DESCRIPTION =
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    (ADDRESS = (PROTOCOL = TCP)(HOST = jambor-1)(PORT = 2481))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ODS2)
    (ORACLE_HOME = D:\oracle\ora81)
    (SID_NAME = ODS2)
    (SID_DESC =
    (SID_NAME = redrouter)
    (ORACLE_HOME = D:\oracle\ora81)
    (PROGRAM=hsodbc)
    Any help?? Do I need to have SQL2000 client installed on Oracle Server machine??

    What is the error that you are getting?

  • Tnsping from any client to new server fails

    Hi there,
    This was my first oracle 10g install and everything seemed to be working but now its not. I just installed a 10g server and added it's IP to my tnsnames.ora files on my other computers. I can ping it regularly just fine but tnsping fails. Any ideas? Our network has a subnetmask of 255.255.255.192, could that cause a problem?
    [root@SLE admin]# ping 154.114.145.253
    PING 154.114.145.253 (154.114.145.253) 56(84) bytes of data.
    64 bytes from 154.114.145.253: icmp_seq=0 ttl=63 time=0.963 ms
    64 bytes from 154.114.145.253: icmp_seq=1 ttl=63 time=0.664 ms
    64 bytes from 154.114.145.253: icmp_seq=2 ttl=63 time=114 ms
    --- 154.114.145.253 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2001ms
    rtt min/avg/max/mdev = 0.664/38.837/114.884/53.773 ms, pipe 2
    [root@SLE admin]# tnsping xxdm10.lps.fares10.com
    TNS Ping Utility for Linux: Version 9.2.0.1.0 - Production on 20-AUG-2007 14:59:59
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/9.2/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 154.114.145.253)(PORT = 1521))) (CONNECT_DATA = (SID = XXDM10) (SERVER = DEDICATED)))
    TNS-12560: TNS:protocol adapter error
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12545
    TNS-12545: Connect failed because target host or object does not exist
    ns secondary err code: 12560
    nt main err code: 515
    TNS-00515: Connect failed because target host or object does not exist
    nt secondary err code: 2
    nt OS err code: 0

    Thanks, I already have the listener and database starting and the environmental variables being set in a .bash file (not my idea but I'll change that later).
    Running on Redhat Enterprise Linux 4
    When I'm root lsnrctrl status says
    [root@xxDM10 ~]# /home/oracle/product/10.2.0.1.0/bin/lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-AUG-2007 09:20:47
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Message 1053 not found; No message file for product=network, facility=TNSTNS-12541: Message 12541 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    TNS-00511: Message 511 not found; No message file for product=network, facility=TNS
    Linux Error: 111: Connection refused
    But when I'm oracle it says
    [oracle@FFDM10 bin]$ ./lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 20-AUG-2007 09:22:30
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 20-AUG-2007 07:38:23
    Uptime 0 days 1 hr. 44 min. 6 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/oracle/product/10.2.0.1.0/network/admin/listener.ora
    Listener Log File /home/oracle/product/10.2.0.1.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=serveriphereedited)(PORT=1521)))
    Services Summary...
    Service "xxDM10.sd.whatever.com" has 1 instance(s).
    Instance "FFDM10", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Message was edited by:
    user590891

  • Tnsping doesnt work. cant connect to oracle on linux from windows client

    Installed Oracle 11g on Linux VM. Tried connecting from Tora/SqlDeveloper from Windows machine, but fails. TNSPING fails. PING works fine. Any idea how to resolve below issue?
    Below is the info and checks made :
    [oracle@oraclelinux6 admin]$ more *.ora
    listener.ora
    # listener.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = /apps/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = orcl)
    LISTENERLX =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = /apps/app/oracle
    sqlnet.ora
    # sqlnet.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    ADR_BASE = /apps/app/oracle
    SQLNET.EXPIRE_TIME=10
    SQLNET.INBOUND_CONNECT_TIMEOUT=240
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ ifconfig
    eth1      Link encap:Ethernet  HWaddr 08:00:27:CA:B7:5D
              inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:feca:b75d/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:243465 errors:0 dropped:0 overruns:0 frame:0
              TX packets:143708 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:347575845 (331.4 MiB)  TX bytes:9778008 (9.3 MiB)
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:36859 errors:0 dropped:0 overruns:0 frame:0
              TX packets:36859 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:2400424 (2.2 MiB)  TX bytes:2400424 (2.2 MiB)
    virbr0    Link encap:Ethernet  HWaddr 52:54:00:8D:63:05
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    [oracle@oraclelinux6 admin]$ hostname
    oraclelinux6.localdomain
    [oracle@oraclelinux6 admin]$ more /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    10.0.2.15       oraclelinux6.localdomain
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ sqlplus system@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 08:19:59 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name: system
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set head off
    SQL> select * from v$instance;
                  1 orcl
    oraclelinux6.localdomain
    11.2.0.1.0        01-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL> select * from v$database;
    1360274593 ORCL      26-NOV-13            945184 26-NOV-13
                          1 15-AUG-09 NOARCHIVELOG            1071075
            1033565 CURRENT 26-NOV-13                  1283             1094699
    02-DEC-13 NOT ALLOWED 26-NOV-13 READ WRITE           MAXIMUM PERFORMANCE
    UNPROTECTED          ENABLED   1360252065  1360252065 PRIMARY
                945184 DISABLED NOT ALLOWED          DISABLED NONE    NO       NO
    NO  NO           13
    Linux x86 64-bit
                               2                      2     1094771
    NO                 NO  NO  orcl
                             0 DISABLED
                        0
    NO                                 NO
    LSNRCTL> show inbound_connect_timeout
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    LSNRCTL>
    [oracle@oraclelinux6 admin]$ tnsping orcl
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:11:34
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
    OK (0 msec)
    <msg time='2013-12-02T08:11:55.728-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:13:23 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60806)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:19:54.141-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:19:54 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:00.146-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:00 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:03 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60970)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    [oracle@oraclelinux6 admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:25:38
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ lsnrctl status LISTENERLX
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:29:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENERLX
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                02-DEC-2013 07:55:29
    Uptime                    0 days 0 hr. 33 min. 54 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /apps/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oraclelinux6/listenerlx/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "orcl.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@oraclelinux6 admin]$
    CLIENT SIDE :
    C:\Windows\system32>ping 192.168.1.121
    Pinging 192.168.1.121 with 32 bytes of data:
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.121:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Windows\system32>tnsping ORACLELINUX6
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-DEC-2013 01:30:13
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521)) (C
    ONNECT_DATA = (SERVICE_NAME = orcl)))
    TNS-12535: TNS:operation timed out
    # tnsnames.ora Network Configuration File: D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ORACLELINUX6 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)

    f0c7e0f7-dab5-4b63-a36c-04b7e8eb552d wrote:
    Installed Oracle 11g on Linux VM. Tried connecting from Tora/SqlDeveloper from Windows machine, but fails. TNSPING fails. PING works fine. Any idea how to resolve below issue?
    Below is the info and checks made :
    [oracle@oraclelinux6 admin]$ more *.ora
    listener.ora
    # listener.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = /apps/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = orcl)
    LISTENERLX =
    It is pointless, and just adds to the confusion, to name your listener anything other than the default name of LISTENER
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Client requests to 'localhost' (or its ip address of 127.0.0.1) never leave the client machine.  Hence, any listener configured for that address will never receive a request from any other machine.
    ADR_BASE_LISTENER = /apps/app/oracle
    sqlnet.ora
    # sqlnet.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    ADR_BASE = /apps/app/oracle
    SQLNET.EXPIRE_TIME=10
    SQLNET.INBOUND_CONNECT_TIMEOUT=240
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    See comment above regarding 'localhost'.
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ ifconfig
    eth1      Link encap:Ethernet  HWaddr 08:00:27:CA:B7:5D
              inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:feca:b75d/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:243465 errors:0 dropped:0 overruns:0 frame:0
              TX packets:143708 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:347575845 (331.4 MiB)  TX bytes:9778008 (9.3 MiB)
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:36859 errors:0 dropped:0 overruns:0 frame:0
              TX packets:36859 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:2400424 (2.2 MiB)  TX bytes:2400424 (2.2 MiB)
    virbr0    Link encap:Ethernet  HWaddr 52:54:00:8D:63:05
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    [oracle@oraclelinux6 admin]$ hostname
    oraclelinux6.localdomain
    [oracle@oraclelinux6 admin]$ more /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    10.0.2.15       oraclelinux6.localdomain
    where did that 10.0.2.15 address come from?  You don't have any network adapters configured for that address
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ sqlplus system@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 08:19:59 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    A well-documented error.
    see: http://edstevensdba.wordpress.com/2011/03/19/ora-12514/  (ora-12514  Listener does not know of requested service )
    Enter user-name: system
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Since you did not use a tns service name ('@orcl') this was a bequeth connection to a local database.
    SQL> set head off
    SQL> select * from v$instance;
                  1 orcl
    oraclelinux6.localdomain
    11.2.0.1.0        01-DEC-13 OPEN         NO           1 STOPPED
    ALLOWED    NO  ACTIVE            PRIMARY_INSTANCE   NORMAL    NO
    SQL> select * from v$database;
    1360274593 ORCL      26-NOV-13            945184 26-NOV-13
                          1 15-AUG-09 NOARCHIVELOG            1071075
            1033565 CURRENT 26-NOV-13                  1283             1094699
    02-DEC-13 NOT ALLOWED 26-NOV-13 READ WRITE           MAXIMUM PERFORMANCE
    UNPROTECTED          ENABLED   1360252065  1360252065 PRIMARY
                945184 DISABLED NOT ALLOWED          DISABLED NONE    NO       NO
    NO  NO           13
    Linux x86 64-bit
                               2                      2     1094771
    NO                 NO  NO  orcl
                             0 DISABLED
                        0
    NO                                 NO
    LSNRCTL> show inbound_connect_timeout
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    LSNRCTL>
    [oracle@oraclelinux6 admin]$ tnsping orcl
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:11:34
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
    OK (0 msec)
    <msg time='2013-12-02T08:11:55.728-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:13:23 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60806)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2013-12-02T08:19:54.141-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:19:54 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:00.146-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:00 * service_update * orcl * 0
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>02-DEC-2013 08:20:03 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60970)) * establish * orcl * 12514
    </txt>
    </msg>
    <msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
    host_addr='10.0.2.15'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    [oracle@oraclelinux6 admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:25:38
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
      TNS-00505: Operation timed out
    [oracle@oraclelinux6 admin]$
    [oracle@oraclelinux6 admin]$ lsnrctl status LISTENERLX
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:29:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENERLX
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                02-DEC-2013 07:55:29
    Uptime                    0 days 0 hr. 33 min. 54 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /apps/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oraclelinux6/listenerlx/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    See previous comments regarding localhost and 127.0.0.1
    Services Summary...
    Service "orcl.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@oraclelinux6 admin]$
    CLIENT SIDE :
    C:\Windows\system32>ping 192.168.1.121
    Pinging 192.168.1.121 with 32 bytes of data:
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.121:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Windows\system32>tnsping ORACLELINUX6
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-DEC-2013 01:30:13
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521)) (C
    ONNECT_DATA = (SERVICE_NAME = orcl)))
    TNS-12535: TNS:operation timed out
    # tnsnames.ora Network Configuration File: D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ORACLELINUX6 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    You've thrown out a huge amount of detailed data, but showing a variety of errors, and combinations.  Overall, I get the impression you are confusing remote vs. local connections.  Please read the following, then come back and let's focus on one error at a time.
    see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/  (Help! I can’t connect to my database  )
    see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/  ( Help! I can’t connect to my database (part duex) )

  • DbSl Trace: CONNECT failed with sql error '12170'

    Hi,
    I'm having this problem during installation of DB instance. I already installed Oracle patchSet. Could you some tell me what could be the issue.
    SAP Release: NW 2004s SR1
    SAP Variant: ABAP
    OS: Solaris 10 64 Bit
    Oracle: 102_64
    INFO       2006-11-16 11:32:19
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/RED/SYS/exe/run/R3load -testconnect is written to the logfile R3load.exe.log.
    WARNING    2006-11-16 11:47:19
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/RED/SYS/exe/run/R3load -testconnect" finished with return code 2. Output:
    sapparam: sapargv( argc, argv) has not been called.
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    /usr/sap/RED/SYS/exe/run/R3load: START OF LOG: 20061116113220
    /usr/sap/RED/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#6 $ SAP
    /usr/sap/RED/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
    Compiled Apr  1 2006 03:18:31
    /usr/sap/RED/SYS/exe/run/R3load -testconnect
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    (DB) ERROR: DbSlErrorMsg rc = 99
    /usr/sap/RED/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/RED/SYS/exe/run/R3load: END OF LOG: 20061116114718
    ERROR      2006-11-16 11:47:19
               CJSlibModule::writeError_impl()
    CJS-30023  Process call '/usr/sap/RED/SYS/exe/run/R3load -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
    ERROR      2006-11-16 11:47:19 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step testDatabaseConnection with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|testDatabaseConnection was executed with status ERROR .
    Thanks
    Torpedo

    Hi ram
    Just brief ur Env please ..
    If you are receiving the ora-12535 error from tnsping as well as sqlplus, the client box is probably unable to find the listener for whatever reason. If the listener is definitely running and you are able to ping the listener's address from the client box but still can't tnsping it, you are probably running into a firewall issue.
    The reason for this is that with tnsping failing you are probably timing out before the connection gets to the listener. You can verify that the listener is running by checking the status in lsnrctl or doing a loopback connection through it. You can verify that the listener's address is visible to the remote box by pinging it from the remote box. Firewalls generally filter by port number so this is the next logical thing to check. If the remote connection passes through a firewall and the listener's port has not been opened up you will see this error.
    regards
    Vinod

  • Could not connect to db using connectring from the server as different user

    Oracle Binary is installed under "oracle" user. if we login using different os user, we could not connect using connectr string.
    we set all env variables including TNS_ADMIN.
    tnsping fails with "TNS-03505: Failed to resolve name"

    Version: 11gR1
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE     11.1.0.7.0     Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    There is not problem in the tnsnames configuration. Because if I login as oracle then I can connect to the db using connectring. Developers are not able to connect from the server(Developer have unix account because they are loading data from sql*loader).

  • Multiple listener

    hi,
    I hav one doubt regarding listener .question is,
    is it possible to run more than one listener at a time?
    so far i know is only one listener can be run at a time and can listen for more than one database.
    But in the document itz given that "multiple listeners can also listen on behalf of a single database to perform load balancing".so i didnt understand at this point.....
    so is it possible to run more than one listener.
    can any one explain me abt this plz?
    With Regards
    Boo

    After configuring as you said :
    Still I Am not able to tnsping to 9i through 10g
    #tnsnames at 10g
    test=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = surbhi)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = aj)
    Tnsping fails
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>tnsping test
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-DEC-2
    006 11:00:47
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    Albeit listesner configured as you stated above
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on
    LSNRCTL> STATUS
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias listener
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 07-DEC-2006 10:49:32
    Uptime 0 days 0 hr. 3 min. 15 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
    og\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=surbhi.Secf.com)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8081))(Presentation=
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 2 instance(s).
    Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> SET CURRENT_LISTENER LISTENER_9
    Current Listener is LISTENER_9
    LSNRCTL> STATUS
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    Start Date 06-DEC-2006 16:48:31
    Uptime 0 days 18 hr. 4 min. 50 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File C:\oracle\ora92\network\admin\listener.ora
    Listener Log File C:\oracle\ora92\network\log\listener.log
    (ENDPOINT=(HANDLER=(HANDLER_MAXLOAD=0)(HANDLER_LOAD=0)(ESTABLISHED=0)(REFUSED=
    0)(HANDLER_ID=010F2F81353C-4C91-91B2-1A5002AB870D)(PRE=any)(SESSION=NS)(DESCRIPT
    ION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))))
    The command completed successfully

  • Forms using 9i client

    I am looking at upgrading our clients to get around GPF's
    generated by the changes MSIE 5.5 makes to the PC's IP stack. If
    I remove IE 5.5, I can connect -- when I install it, tnsping
    fails, as does just about everything else.
    Our current application launches through a form using the 16 bit
    forms runtime f45run.exe. I read that there are few changes in
    forms in the 9i client, but when I installed the 9i client, I do
    not see this executable. I have also read that you can use a 32
    bit executable, ifrun60.exe to do the same job -- this also was
    no included on the install.
    What am I doing wrong? Where are these executables to be found,
    and will they fix my issue?

    I am looking at upgrading our clients to get around GPF's
    generated by the changes MSIE 5.5 makes to the PC's IP stack. If
    I remove IE 5.5, I can connect -- when I install it, tnsping
    fails, as does just about everything else.
    Our current application launches through a form using the 16 bit
    forms runtime f45run.exe. I read that there are few changes in
    forms in the 9i client, but when I installed the 9i client, I do
    not see this executable. I have also read that you can use a 32
    bit executable, ifrun60.exe to do the same job -- this also was
    no included on the install.
    What am I doing wrong? Where are these executables to be found,
    and will they fix my issue?

  • Sporadically (although it is quite often) TNS-12541: TNS:no listener

    Hi,
    im struggling with a listener issue. I have several Oracle/SAP environments i am responsible for. Most of them run fine but on some i get the error: TNS-12541: TNS:no listener. On one of them this occurs quite a lot actually.
    So what is the case?
    Im running Oracle 10.2.04 on windows 2003, of course the listener is running (DUH). Also the tnsnames.ora sqlnet.ora and listener.ora are defined properly. Most of the cases it is not even causing issues (since it SAP is running on top of it). However some actions do start a process outside the SAP instance, like applying a SAP transport. And on those cases sometimes I get the above mentioned error.
    So I got suspicious and started a tnsping in a loop. It turns out the 12541 pops up quite regularly, enough to make me worried. The frequency change from several times a minute to once every couple of minutes.
    It doesn’t seems to be an network issue since a ping to wherever always goes fine.
    So I turned on tracing (in the listener.ora) on to level ADMIN, turns out there are no trace entries from the failed tnsping. I moved up the level to SUPPORT. Same, no trace entries, there is a time gap on the moments that tnsping fails. The same counts for the listener.log…no logging of the failed occurrences.
    Then I added a R3trans –d in the loop. Of course this check also fails every now and then and the following info I find in the sqlnet.log
    Fatal NI connect error 12541, connecting to:
    (DESCRIPTION=(SDU=32768)(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=prd01)(PORT=1527))(CONNECT DATA=(SID=PRD)(GLOBALNAME=PRD.WORLD)(CID=(PROGRAM=I:\usr\sap\PRD\SYS\exe\run\R3trans.exe)(HOST=PRD 01)(USER=prdadm))))
    VERSION INFORMATION:
    TNS for 64-bit Windows: Version 10.2.0.2.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 10.2.0.2.0 - Production
    Time: 15-FEB-2011 12:09:35
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener
    nt secondary err code: 61
    nt OS err code: 0
    See here the related parameter files:
    Listener.ora:
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = SID.WORLD)
    (ADDRESS=
    (PROTOCOL = IPC)
    (KEY = SID)
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = host)
    (PORT = 1527)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SDU = 32768)
    (SID_NAME = SID)
    (ORACLE_HOME = I:\oracle\SID\102)
    Sqlnet.ora
    AUTOMATIC_IPC = ON
    TRACE_LEVEL_CLIENT = OFF
    NAMES.DEFAULT_DOMAIN = WORLD
    NAME.DEFAULT_ZONE = WORLD
    SQLNET.EXPIRE_TIME = 0
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    TCP.NODELAY=YES
    Tnsnames.ora
    PRD.WORLD=
    (DESCRIPTION =
    (SDU = 32768)
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = host)
    (PORT = 1527)
    (CONNECT_DATA =
    (SID = SID)
    (GLOBAL_NAME = SID.WORLD)
    Some things I am wondering about, although I don’t think they are related to the problem:
    -should the parameter DEFAULT_SDU_SIZE be defined in the sqlnet.ora as well?
    -CONNECT_TIMEOUT_LISTENER is obsolete I read since Oracle 9i?
    -AUTOMATIC_IPC is also obsolete?
    My next step would be to make a client and server trace (TRACE_LEVEL_CLIENT, TRACE_LEVEL_SERVER in sqlnet.ora)
    Im wondering if I should experiment with the following parameters:
    SQLNET.INBOUND_CONNECT_TIMEOUT (in sqlnet.ora) (120?)
    INBOUND_CONNECT_TIMEOUT_ (in listener.ora) (120?)
    QUEUESIZE (in listener.ora) (although I don’t think that would do anything here since it should more solve issues like simultaneous logon of many processes to the database…which is not the case in a SAP environment)
    Any ideas/clues? thanks in advance!

    The error, in technical terms, means that the client used a socket connect() call to connect to a network listener endpoint (port, protocol and IP) - and the connection was refused as the endpoint does not exist. In other words, no server process is running a socket listen() call on that endpoint.
    With respect to the Listener, it means that the Listener quite likely is not running.
    With your testing, you need to determine whether that Listener is up and running at the time that the client gets the connection refused (no listener) error.
    It sounds like your Listener is cycling/restarting every so often. Do not use Windows as a server o/s, so I'm not aware of any specific issues on the Windows side with Oracle Listeners... and how the NT services daemon act wrt to the listener (e.g. dependencies exist and if a server is restarted that the listener depends on, it will also restart). Perhaps IP DHCP leases expiring regularly?
    What does the Event log say? If WebDAV/ftp ports configured for the database instance? If so, test these ports too at the time the 1521/tcp connection to the server is failing.

  • 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

    Below are the new contents of tnsnames.ora file -
    ======
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TEST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = test)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    DOOM =
    *(DESCRIPTION =*
    *(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))*
    *(CONNECT_DATA =*
    *(SERVER = DEDICATED)*
    *(SERVICE_NAME = doom)*
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ==========================================
    Thanks
    Prashant Dixit

  • Nslookup fails were as tnsping works - Oracle Client on Linux 4.0

    Hello Gurus,
    I am able to connect to Oracle DB on the Linux server and not from Oracle client on Linux box. I have installed Oracle Client windows version on my laptop and same release and version for Linux on Linux box.
    When I try to connect to the DB from Oracle Client installed on Linux box give me ORA-012545:Connect failed because target host or object does not exists.
    I have tried tnsping and the server name (hostname) ,IP and DB of the server it works.
    When I tried nslookup servername (hostname) , IP and DB it fails.
    Anyone over there please help me out. This is something silly happening works on Windows Oracle client and not on Linux Oracle Client. One thing to do add Linux Oracle Client has Virtual IP to it. ITs host file has an entry for local host as follows : 127.0.0.1 localhost.local.domain localhost.
    Also when I tried to create netservice names using netca it's just clean.
    Please help me.
    Thanks in advance
    Thanks
    Shiva

    Hello Matt,
    The reults
    [oracle@ccsdd-sdap3 admin]$ tnsping mdb
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:20:16
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.17.180.110)(PORT = 1521))) (CONNECT_DATA = (SID = mdb) (SERVER=DEDICATED)))
    OK (10 msec)
    ===========================================================
    [oracle@ccsdd-sdap3 admin]$ tnsping ccsdd-sddb3.techteam.com
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:25:56
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ccsdd-sddb3.techteam.com))(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.180.110)(PORT=1521)))
    OK (10 msec)
    ===========================================================
    [oracle@ccsdd-sdap3 admin]$ tnsping 172.X.X.X
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:21:49
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.17.180.110))(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.180.110)(PORT=1521)))
    OK (10 msec)
    ==========================================================
    tnsnames.ora
    [oracle@ccsdd-sdap3 admin]$ more tnsnames.ora
    # tnsnames.ora Network Configuration File: /oracle/app/oracle/product/10.2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    mdb =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.X.X.X)(PORT = 1521))
    (CONNECT_DATA =
    (SID = mdb)
    (SERVER=DEDICATED)
    ===========================================================
    sqlnet.ora
    [oracle@ccsdd-sdap3 admin]$ more sqlnet.ora
    # sqlnet.ora Network Configuration File: /oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (TNSNAMES,ONAMES,HOSTNAME)
    ==========================================================
    Yes these are the reults and the files. I think this will help us to determine the problem.
    Thanks
    Shiva

Maybe you are looking for

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All Please let me know Which CKM is used for moving data from Oracle to delimited file ? Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

  • Reg balance Carried forward in F.27 Accounting Statement Print

    Hi experts, We have generated a SAP Script for Accounting Statement print ( F.27 ) for vendors. We have used structure RF140 for the necessary fields. For balance carried forward, SALDO in RF140 structure( balance in document currency ) gives me the

  • Unable to get Region ID

    Hi gurus, I want to put a checkbox through CO extension but the region where I want to put it doesn't have an ID associated. I can't do it via personalization because the create item icon is disabled. I tried all the possibilities to enabled it but i

  • Is it possible to show frame edges in design mode?

    Is it possible to show frame edges in design mode?

  • Can't get a 1080p output on Sony 55A2000

    Hello everyone. I've connected a Sony 55A2000 display (1080p supported) to my MBP (MiniDP → DVI → HDMI), but i can't set the 1080p resolution, only the interlaced one. Only "P" allowed is 720 %( I've tried both 9400 and 9600 graphics. Are the new MBP