Tnsping

Hi All,
I am not able to connect to sqlplus . It is showing ORA-12154: TNS: could not resolve the connect identifier specifed. I could not tnsping orcl either(TNS-03505: Failed to resolve name).Environment variable ORACLE_HOME:C:\app\oracle\product\11.2.0\dbhome_2
PATH:C:\app\oracle\product\11.2.0\dbhome_2\bin;
TNS_NAME:C:\app\oracle\product\11.2.0\dbhome_2\network\admin
tnsname.ora file:
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
listner.ora file:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\oracle\product\11.2.0\dbhome_2)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\oracle\product\11.2.0\dbhome_2\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(SID_NAME = orcl)
(ORACLE_HOME = C:\app\oracle\product\11.2.0\dbhome_2)
sqlnet file:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Thanks,
Surya

user3939966 wrote:
Hi All,
I am not able to connect to sqlplus . It is showing ORA-12154: TNS: could not resolve the connect identifier specifed. ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 NEVER involves the listener, the database itself or anything on the DB Server.
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
The lookup operation fails because the name provided can NOT be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

Similar Messages

  • Tnsping timed out using dg4odbc from Oracle to MYSQL through ODBC

    Hi,
    I encountered problem when trying to connect from Oracle to MYSQL using dg4odbc, hope you can shed some light
    Oracle database is 11.1.0.7 on SUSE Linux 64-bit.
    Since the application which runs on MYSQL DB only offers ODBC driver on Windows platform, so I installed the 32-bit ODBC driver (from ServiceNow) on a 32-bit windows server (driver download from http://wiki.service-now.com/index.php?title=ODBC_Driver) .
    created system DSN: MYSQLDEV, The DSN connection works fine. I then installed Oracle 11.2.0.1 gateway for ODBC 32-bit on the same windows server, the following configurations were done:
    On 32-bit Windows server:
    in gatewayHome\hs\admin
    initMYSQLDEV.ora:
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQLDEV
    HS_FDS_TRACE_LEVEL = DEBUG
    in gatewayHome\network\admin:
    listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abcdes.sda.sdva.com)(PORT = 1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLDEV)
    (ORACLE_HOME=C:\product\11.2.0\tg_1)
    (PROGRAM=dg4odbc)
    ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
    stop and started listener on windows server and check listener status
    C:\product\11.2.0\tg_1\bin>lsnrctl status listener
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2012 21:42:08
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 29-MAR-2012 21:11:36
    Uptime 0 days 0 hr. 30 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\product\11.2.0\tg_1\network\admin\listener.ora
    Listener Log File c:\product\11.2.0\tg_1\diag\tnslsnr\abcdes\list
    ener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
    Services Summary...
    Service "MYSQLDEV" has 1 instance(s).
    Instance "MYSQLDEV", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    On Linux server where Oracle DB resides.
    Added the following tns entry "jelly" on the Linux server ORACLE_HOME/network/admin:
    jelly =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)
    (HOST=abcdes.sda.sdva.com)
    (PORT=1521))
    (CONNECT_DATA=(SID=MYSQLDEV))(HS=OK)
    tnsping from Linux server (64-bit) failed with timeout error:
    tnsping jelly
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 29-MAR-2012 21:12:38
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=abcdes.sda.sdva.com) (PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV))(HS=OK))
    TNS-12535: TNS:operation timed out
    tnsping from Windows server works fine: (added same tnsnames entry on windows server for testing purpose only)
    C:\product\11.2.0\tg_1\bin>tnsping jelly
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2
    012 21:45:20
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\product\11.2.0\tg_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV)) (HS=OK))
    OK (20 msec)
    if listener is not listening to the service, then the tnsping on the windows server should fail as well.
    I don't know why only the tnsping from Linux failed, is it due to the 32-bit ODBC uncompatibility with 64-bit oracle server? or my configuration problem?
    Of course, when I created the DB link from oracle, the connection failed with
    create database link mysqldev connect to xxxx identified by "xxxxx" using 'jelly';
    Database link created.
    select * from tab1;
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from MYSQLDEV
    Thanks for your help,

    Hi Mike,
    This is part of the tnsping.trc file which contains the error. IP address is in the tnsnames entry with this tnsping.
    nsopen: opening transport...
    nttcon: entry
    nttcon: toc = 1
    nttcnp: entry
    nttcnp: creating a socket.
    nttcnp: exit
    nttcni: entry
    nttcni: Tcp conn timeout = 0 (ms)
    nttcni: trying to connect to socket 5.
    ntt2err: entry
    ntt2err: soc 5 error - operation=1, ntresnt[0]=505, ntresnt[1]=110, ntresnt[2]=0
    ntt2err: exit
    nttcni: exit
    nttcon: exit
    nserror: entry
    nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=110, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    nsopen: unable to open transport
    nsiocancel: entry
    nsiofrrg: entry
    nsiofrrg: cur = 53b9f8
    nsbfr: entry
    nsbaddfl: entry
    nsbaddfl: normal exit
    nsbfr: normal exit
    nsiofrrg: exit
    nsiocancel: exit
    nsvntx_dei: entry
    nsvntx_dei: exit
    nsopenfree_nsntx: nlhthdel from mplx_ht_nsgbu, ctx=53a7e0 nsntx=53ade0
    nsiocancel: entry
    nsiofrrg: entry
    nsiofrrg: exit
    nsiocancel: exit
    nsmfr: entry
    nsmfr: 2712 bytes at 0x53ade0
    nsmfr: normal exit
    nsmfr: entry
    nsmfr: 1528 bytes at 0x53a7e0
    nsmfr: normal exit
    nsopen: error exit
    nscall: error exit
    nscall: entry
    nscall: connecting...
    nsclose: entry
    nsclose: normal exit
    nladget: entry
    nladget: exit
    nsmfr: entry
    nsmfr: 264 bytes at 0x528900
    nsmfr: normal exit
    nladtrm: entry
    nladtrm: exit
    nscall: error exit
    nlse_term_audit: entry
    nlse_term_audit: exit
    Thanks,

  • Ping is working but tnsping does not - SOLVED

    Hello,
    I have problems with connecting from client to the database. 10.2.0. Linux-> WinXP
    db is on host A (Win), and client - sqlplus - on host B (Linux).
    I can do ping from A to B, but not tnsping. It's timing out. There is a listener running on 1521 port on host B. The database is open. What more can be wrong?
    Any help, please?
    Aliq
    Message was edited by:
    user547746

    Check whether the firewall is enabled from both the system. If yes, then disable the firewall and try again tnspinging the net service.
    Regards,
    Sabdar Syed.

  • Access MySQL from Oracle Tnsping problem.

    Dears
    I am trying to connect to MysqlDB from Oracle.
    I have installed Oracle Gateway and ODBC diver on Linux server.
    Oracle gateway was installed on same server with Oracle Database but in different home and it has a different listener.
    please look at my configuration files which I have created and maintained to established connections to MySqlDB.
    I think I did some mistake and seize up in it so I could not find a solution. I am trying to fix it as well but if somebody can help me it will be very nice.
    Gateway version is 11.2.0.3.0 and it is on ORAHOME /oracle/11203/GTW and its listener port is 1522.
    I am able to tnsping port 1522 (dg4odbc) from gateways home. Gateway configuration files are below.
    ####/etc/odbc.ini####
    [ODBC Data Sources]
    MySQL = MySQL ODBC Driver 5.2
    [MySQL]
    Driver = /usr/lib64/libmyodbc5a.so
    DATABASE = veritabani
    DESCRIPTION = MySQL ODBC 5.2 Driver
    PORT = nnnn
    SERVER = x.x.x.x
    UID = kullanici
    PWD = sifre
    CHARSET = latin1
    TRACEFILE = /tmp/myodbc-demodsn.trc
    TRACE = OFF
    ####/oracle/11203/GTW/hs/admin/initdg4odbc.ora####
    HS_FDS_CONNECT_INFO = MySQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5a.so
    set ODBCINI=/etc/odbc.ini
    set HOME=/home/oracle
    ####/oracle/11203/GTW/network/admin/listener.ora####
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1522))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4odbc)
    (ORACLE_HOME=/oracle/11203/GTW)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/11203/GTW/lib)
    ####/oracle/11203/GTW/network/admin/tnsnames.ora####
    dg4odbc =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = hostname)
    (PORT = 1522)
    (CONNECT_DATA =
    (SID = dg4odbc)
    (HS = OK)
    Oracle Database version is 11.2.0.2.0 and Its on ORAHOME /oracle/11202/BDW and its listener port is 1521.
    I am not able to tnsping port 1522 (dg4odbc) from Database Home. Database configuration file is below.
    ####/oracle/11202/BDW/network/admin/tnsnames.ora####
    dg4odbc =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1522)))
    (CONNECT_DATA = (SID = dg4odbc))
    (HS=OK))
    Also I have created a DBLINK and tried to get info from MySqlDB but it did not work as usual.
    CREATE PUBLIC DATABASE LINK dg4odbc CONNECT TO "kullanici" IDENTIFIED BY "sifre" USING ’dg4odbc’;
    SQL> select * from kullanici@dg4odbc;
    select * from kullanici@dg4odbc
    ERROR at line 1:
    ora-12154 tns could not resolve the connect identifier specified
    Thank you so much to everybody who reads and writes this...
    Best regards,
    Eren.
    Edited by: BeymenAdmin on Mar 21, 2013 8:52 AM

    BeymenAdmin wrote:
    Dears
    I am trying to connect to MysqlDB from Oracle.
    I have installed Oracle Gateway and ODBC diver on Linux server.
    Oracle gateway was installed on same server with Oracle Database but in different home and it has a different listener.
    please look at my configuration files which I have created and maintained to established connections to MySqlDB.
    I think I did some mistake and seize up in it so I could not find a solution. I am trying to fix it as well but if somebody can help me it will be very nice.
    Gateway version is 11.2.0.3.0 and it is on ORAHOME /oracle/11203/GTW and its listener port is 1522.
    I am able to tnsping port 1522 (dg4odbc) from gateways home. Gateway configuration files are below.
    ####/etc/odbc.ini####
    [ODBC Data Sources]
    MySQL = MySQL ODBC Driver 5.2
    [MySQL]
    Driver = /usr/lib64/libmyodbc5a.so
    DATABASE = veritabani
    DESCRIPTION = MySQL ODBC 5.2 Driver
    PORT = nnnn
    SERVER = x.x.x.x
    UID = kullanici
    PWD = sifre
    CHARSET = latin1
    TRACEFILE = /tmp/myodbc-demodsn.trc
    TRACE = OFF
    ####/oracle/11203/GTW/hs/admin/initdg4odbc.ora####
    HS_FDS_CONNECT_INFO = MySQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5a.so
    set ODBCINI=/etc/odbc.ini
    set HOME=/home/oracle
    ####/oracle/11203/GTW/network/admin/listener.ora####
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1522))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4odbc)
    (ORACLE_HOME=/oracle/11203/GTW)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/11203/GTW/lib)
    ####/oracle/11203/GTW/network/admin/tnsnames.ora####
    dg4odbc =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = hostname)
    (PORT = 1522)
    (CONNECT_DATA =
    (SID = dg4odbc)
    (HS = OK)
    Oracle Database version is 11.2.0.2.0 and Its on ORAHOME /oracle/11202/BDW and its listener port is 1521.
    I am not able to tnsping port 1522 (dg4odbc) from Database Home. Database configuration file is below.
    ####/oracle/11202/BDW/network/admin/tnsnames.ora####
    dg4odbc =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1522)))
    (CONNECT_DATA = (SID = dg4odbc))
    (HS=OK))
    Also I have created a DBLINK and tried to get info from MySqlDB but it did not work as usual.
    CREATE PUBLIC DATABASE LINK dg4odbc CONNECT TO "kullanici" IDENTIFIED BY "sifre" USING ’dg4odbc’;
    SQL> select * from kullanici@dg4odbc;
    select * from kullanici@dg4odbc
    ERROR at line 1:
    ora-12154 tns could not resolve the connect identifier specified
    see: [url http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/] ora-12154 TNS:could not resolve the connect identifier specified
    Remember that the database from which you issued the "select * from kullanici@dg4odbc;" is, at that point, acting just like any other client trying to connect to a remote database.
    Thank you so much to everybody who reads and writes this...
    Best regards,
    Eren.
    Edited by: BeymenAdmin on Mar 21, 2013 8:52 AM

  • TNSPING failure and but surprising connecting through SQL*PLUS

    I have Oracle 9i and Oracle 10g express edition installed on my local machine.But since in the path i specified path of Oracle10g first so always tnsnames.ora got picked up from Oracl10g directory which is
         C:\softwares\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Following are the contents of my sqlnet.ora :--->
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    Following are the contents of my tnsnames.ora:-->
    CCTD91 =(DESCRIPTION =
    (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = cctdev91.jankoc.com)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = CCTD91)))
    Now when i am doing tnsping to this i got the error as:
    C:\>tnsping cctd91
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-APR-2011 16:08:52
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\softwares\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    But when i connect through Oracle 9i client(SQL*Plus) like peter/devworks@CCTD91, then i am able to connect successfully to Oracle 11g.
    Could someone let me know why TNSPING is failing for this and then still why i am able to connect thru SQL*PLUS using the name defined in TNSNAMES.ORA. ?

    sqlnet.ora is having just one line:
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    I tried by adding another line: NAMES.DIRECTORY_PATH=(TNSNAMES) but did not make any difference so i removed.
    C:\>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-APR-2011 19:06:36
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: localhost, pid: 3288>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost.XXX.XXX.COM)(PORT=1041))
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-APR-2011 19:08:48
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    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 - Production
    Start Date 23-APR-2011 16:05:49
    Uptime 1 days 3 hr. 2 min. 59 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\softwares\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Listener Log File C:\softwares\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.xxx.xxx.COM)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(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 "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...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\>
    Oracle 11g is installed remotely on our office LAN.
    Please note that i just removed company name with XXX from the above lsnrcts commands output, just for security reasons.

  • Tnsping version problem

    Hi all,
    I have installed oracle 10g database
    when i give "lsnrctl start" command it gives message as follows :
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 27-OCT-2005 14:35:02
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    Log messages written to C:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.251)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    Start Date 27-OCT-2005 14:35:04
    Uptime 0 days 0 hr. 0 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    Listener Log File C:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.251)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "prod" has 1 instance(s).
    Instance "prod", status UNKNOWN, has 1 handler(s) for this service...
    Service "dev" has 1 instance(s).
    Instance "dev", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    when i give "tnsping prod" i am getting the following error:
    TNS Ping Utility for 32-bit Windows: Version 9.0.1.4.1 - Production on 27-OCT-2005 14:35:26
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Message 3511 not found; No message file for product=NETWORK, facility=TNSMessage 3512 not found; No message file for product=NETWORK, facility=TNSAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.251)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = prod)))
    Message 3509 not found; No message file for product=NETWORK, facility=TNS
    and also In listener it is giving version 10.1.0.2.0 and in tnsping it is giving 9.0.1.4.1
    what might be the problem
    ASAP
    Thanks & Regards
    venu

    Hi
    Add TNS_ADMIN in your registry and point to it the correct path where your TNSNAMES.ora is.
    Could be that you have multiple Oracle Homes and it is not reading from the correct one.
    TNS_ADMIN should solve this problem.
    Hope it helps.
    Rgds
    Adnan

  • 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) )

  • Tnsping error in OEM Grid

    I have installed fresh 10G R3 Grid on Windows 2003 server.
    step1> Installed Grid 10g R2 in following homes
    d:/oracle/product/oms10g
    d:/oracle/product/agent10g
    d:/oracle/product/db10g
    step2> Upgrade to 10g R3
    Installed a new database home 10.2.0.3
    d:/oracle/product/10.2.0/db_1
    Every thing is fine up and running but I have problems logging in from command prompt:
    I have set following environment variables
    ORACLE_SID=emprep
    ORACLE_HOME=d:/oracle/product/10.2.0/db_1
    TNS_ADMIN=d:/oracle/product/10.2.0/db_1/NETWORK/ADMIN
    C:\Documents and Settings\admgb>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\admgb\Application Data
    CLIENTNAME=HO6691
    ClusterLog=C:\WINDOWS\Cluster\cluster.log
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=HOAPPS08
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\admgb
    invPtr=D:\oracle\product\agent10g\oraInst.loc
    LOGONSERVER=\\HOWIN10
    NUMBER_OF_PROCESSORS=4
    ORACLE_HOME=D:\oracle\product\10.2.0\db_1
    ORACLE_SID=emprep
    OS=Windows_NT
    Path=D:\oracle\product\agent10g\jlib;D:\oracle\product\agent10g\bin;D:\oracle\pr
    oduct\oms10g\bin;D:\oracle\product\oms10g\jlib;D:\oracle\product\10.2.0\db_1\bin
    ;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=D:\oracle\product\10.2.0\db_1\perl\lib\5.8.3\MSWin32-x86;D:\oracle\prod
    uct\10.2.0\db_1\perl\lib\5.8.3;D:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWi
    n32-x86-multi-thread;D:\oracle\product\10.2.0\db_1\perl\site\5.8.3;D:\oracle\pro
    duct\10.2.0\db_1\perl\site\5.8.3\lib;D:\oracle\product\10.2.0\db_1\sysman\admin\
    scripts
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 33 Stepping 2, AuthenticAMD
    PROCESSOR_LEVEL=15
    PROCESSOR_REVISION=2102
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=RDP-Tcp#43
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\admgb\LOCALS~1\Temp\1
    TMP=C:\DOCUME~1\admgb\LOCALS~1\Temp\1
    TNS_ADMIN=D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN
    USERDNSDOMAIN=NEWSTAR.AD
    USERDOMAIN=NEWSTAR
    USERNAME=admgb
    USERPROFILE=C:\Documents and Settings\admgb
    windir=C:\WINDOWS
    C:\Documents and Settings\admgb>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 26-SEP-2007 16:41
    :23
    Copyright (c) 1991, 2006, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Produ
    ction
    Start Date 26-SEP-2007 16:27:16
    Uptime 0 days 0 hr. 14 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File D:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hoapps08.NEWSTAR.AD)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "emrep.NEWSTAR.AD" has 2 instance(s).
    Instance "emrep", status UNKNOWN, has 1 handler(s) for this service...
    Instance "emrep", status READY, has 1 handler(s) for this service...
    Service "emrep_XPT.NEWSTAR.AD" has 1 instance(s).
    Instance "emrep", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\admgb>tnsping emprep
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 26-SEP-2
    007 16:41:34
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\sqlnet.ora
    TNS-03505: Failed to resolve name
    C:\Documents and Settings\admgb>
    C:\Documents and Settings\admgb>tnsping test
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 26-SEP-2
    007 16:44:45
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\sqlnet.ora
    TNS-03505: Failed to resolve name
    C:\Documents and Settings\admgb>
    listener.ora:
    # listener.ora Network Configuration File: D:\oracle\product\db10g\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = emrep.NEWSTAR.AD)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = emrep)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hoapps08.NEWSTAR.AD)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: D:\oracle\product\db10g\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EMREP =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hoapps08.NEWSTAR.AD)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = emrep.NEWSTAR.AD)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    TEST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hoapps08.NEWSTAR.AD)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = emrep)
    sqlnet.ora
    # sqlnet.ora Network Configuration File: D:\oracle\product\db10g\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    NAMES.DEFAULT_DOMAIN= NEWSTAR.AD
    Grid server is saying to update listener.ora location
    LISTENER_hoapps08.NEWSTAR.AD Listener 26-Sep-2007 16:18:34 The listener is down: Although a Listener with name "LISTENER", is running on this host at port: "1521", it was not started using this target's "LISTENER.ORA" file. CORRECTIVE ACTION: To monitor this "EM Listener Target" with its present configuration, you must stop the currently running listener process, and start it again using the Listener Parameter file: D:\oracle\product\db10g\network\admin/listener.ora . Alternatively, you can update this target's "LISTENER.ORA Location" parameter with the location of the currently running Listener, which was started using: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora.
    Can some one help me to resoleve this problem... tns_admin is already set... does things needs to be changed in registry.

    LISTENER_hoapps08.NEWSTAR.AD Listener 26-Sep-2007 16:18:34 The listener is down: Although a Listener with name "LISTENER", is running on this host at port: "1521", it was not started using this target's "LISTENER.ORA" file. CORRECTIVE ACTION: To monitor this "EM Listener Target" with its present configuration, you must stop the currently running listener process, and start it again using the Listener Parameter file: D:\oracle\product\db10g\network\admin/listener.ora . Alternatively, you can update this target's "LISTENER.ORA Location" parameter with the location of the currently running Listener, which was started using: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora.
    Can I get help in locating page on grid control to change LISTENER.ORA Location
    as it is pointing to wrong home.

  • Tnsping issues for oracle 10g standby setup

    Hi All, i'm setting up standby database,
    i'm getting below error while doing tnsping after made all the necessary entries in listene.ora and tnsnames.ora,
    in both server listener is up and running.
    Please suggest me on this to resolve the issue,
    Primary Site
    tnsping DEVP
    TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 16:09:59
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /arch/oracle/devora/ora10g/network/admin/DEVP_mareno/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =alpha)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVP)))
    OK (10 msec)
    tnsping DEVPDR
    TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 16:08:37
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /arch/oracle/devora/ora10g/network/admin/DEVP_mareno/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = beta)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVPDR)(UR=A)))
    TNS-12541: TNS:no listener
    Standby site
    tnsping DEVPDR
    TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 10:21:08
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /oracle/soft/ora10g/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = beta)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVPDR)(UR=A)))
    OK (10 msec)
    tnsping DEVP
    TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 10:21:29
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /oracle/soft/ora10g/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = alpha)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVP)))
    TNS-12541: TNS:no listener

    Hi,
    Now tnsping is working in primary site of both
    but from standby site,
    Used parameter files:
    /oracle/soft/ora10g/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = beta.pati.com)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVP)))
    TNS-12541: TNS:no listener
    Please suggest me on this.

  • 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)
    ====================

  • Oracle Enterprise Manager TNSPING Metric

    Hi All,
    I wonder tns ping metric on OEM is actually representing data for TNSPING to database server from which server?
    I'm not really mastering this topic, really appreciate your answer.
    Thanks.
    Regards,
    Jolly

    The listener "Response" metric evaluates "tnsPing" and "Status".  These metrics are evaluated by the agent, and it does this by running the script lsnrresp.pl which is located in:
    <install location of agent>/plugins/oracle.sysman.db.agent.plugin_<latest plugin version>/scripts
    eg. on my machine this is /oracle/12cagent/plugins/oracle.sysman.db.agent.plugin_12.1.0.2.0/scripts
    ie. so  lsnrresp.pl is run on the machine where the agent/database/listener resides.
    Although it's running on the local machine it is still making a tcp/ip connection  (ie. it's doing the equivalent of:-
    tnsping "(ADDRESS=(PROTOCOL=TCP)(HOST=machine1.oracle.com)(PORT=1522))"
    You can manually run this same tnsping command yourself from a database home of a remote machine (the machine where you're having difficulties from) and compare the difference.
    Make sure that you use the same hostname and port when you run the tnsping command manually as EM is using.  You can find out which host and port EM is using by either checking:-
    a) the targets.xml (from the machine where the listener is located) -
    eg.
    <Target TYPE="oracle_listener" NAME="LISTENER11203_machine1.uk.oracle.
    com" DISPLAY_NAME="LISTENER11203_machine1.uk.oracle.com" ON_HOST="" EMD_URL="h
    ttps://machine1.uk.oracle.com:3872/emd/main/" TIMEZONE_REGION="" IDENTIFIER="T
    ARGET_GUID=881E917E1CE1D3BECC361599ACDAEEEB">
                    <Property NAME="Machine" VALUE="machine1.uk.oracle.com"/>
                    <Property NAME="Port" VALUE="1522"/>
                    <Property NAME="LsnrName" VALUE="LISTENER11203"/>
                    <Property NAME="ListenerOraDir" VALUE="/oracle/orabase/11203rdbms
    /network/admin"/>
    or
    b) go to Enterprise Manager, go to targets/all targets.  Select your listener, click on it (will take you to the listener home page).
    Then once on the listener home page, go to 'oracle listener' (drop down menu), pick "target setup"/"Monitoring Configuration"
    It would be interesting to run the tnsping command manually from the problem machine (if you have a database home on that machine) and also to just do a 'general' ping from the problem machine to the database machine, and then do the same tnsping and ping command from the database machine itself and compare the difference.  It might also be useful to repeat this on both machines but using  ipaddress and see if you see any difference in the response time.  Also check that the hostname is resolving in the same way (eg. same dns etc.).  And to check whether any firewalls are involved.
    HTH
    Mani

  • Tnsping not working from oracle to sql

    hi
    i need to connect sql server 2005 on windows server from my oracle database 10.2 on hpux
    before doing this setup on unix server to windows server
    i m testing it on my local windows xp system where oracle is installed and trying to connect to remote sql server
    so 1 i configured ODBC drivers for sql server
    2. then i have alterd initfile under dir $ORACLE_HOME/hs/admin/
    with this parameter
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Test1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    3 i configured listener. ora file and added this entries in listener.ora file under dir $ORACLE_HOME/network/admin/
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
    LISTENERTEST1 =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENERTEST1=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=TEST1)
    (ORACLE_HOME = C:\oracle\product\10.1.0\db_1)
    (PROGRAM=hsodbc)
    where 01hw172211 is the host where oracle is installed and TEST1 Is the sql database
    4 then i configured tnsnames. ora file under dir $ORACLE_HOME/network/admin
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    TEST1 =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
    (CONNECT_DATA=(SID=test1))
    (HS=OK)
    where ORCL is oracle database on local system 01hw172211 and TEST1 is SQL SERVER database
    5 then i start the new listenertest1 listener ... listener started successfully
    6 then i checked tnsping test1 ... but it is faild..
    can any body tell me what is wrong in above procedure for connecting from oracle to sql ... in step no. 4 there is a TEST1 CONNECT discriptor where I have used HOST=local system where oracle is installed.. is it correct OR i have to specifiy HOST=sql server host name.

    hi
    i need to connect sql server 2005 on windows server from my oracle database 10.2 on hpux
    before doing this setup on unix server to windows server
    i m testing it on my local windows xp system where oracle is installed and trying to connect to remote sql server
    so 1 i configured ODBC drivers for sql server
    2. then i have alterd initfile under dir $ORACLE_HOME/hs/admin/
    with this parameter
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Test1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    3 i configured listener. ora file and added this entries in listener.ora file under dir $ORACLE_HOME/network/admin/
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
    LISTENERTEST1 =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENERTEST1=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=TEST1)
    (ORACLE_HOME = C:\oracle\product\10.1.0\db_1)
    (PROGRAM=hsodbc)
    where 01hw172211 is the host where oracle is installed and TEST1 Is the sql database
    4 then i configured tnsnames. ora file under dir $ORACLE_HOME/network/admin
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 01hw172211)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    TEST1 =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=01hw172211)(PORT=1522))
    (CONNECT_DATA=(SID=test1))
    (HS=OK)
    where ORCL is oracle database on local system 01hw172211 and TEST1 is SQL SERVER database
    5 then i start the new listenertest1 listener ... listener started successfully
    6 then i checked tnsping test1 ... but it is faild..
    can any body tell me what is wrong in above procedure for connecting from oracle to sql ... in step no. 4 there is a TEST1 CONNECT discriptor where I have used HOST=local system where oracle is installed.. is it correct OR i have to specifiy HOST=sql server host name.

  • Error showing in listener while giving tnsping application server name

    iam trying to connect application server with database server.......while giving tnsping from database server as tnsping application_server_name
    its showing error as
    $ tnsping 10.92.5.8
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 09-FEB-2007 06:18:05
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=10.92.5.8))(ADDRESS=(PROTOCOL=TCP)(HOST=10.92.5.8)(PORT=1521)))
    TNS-12541: TNS:no listener
    but i have set the listener in databse server.
    thsi is my listener.ora
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=application server name)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (GLOBAL_DBNAME=RBTT)
    (SID_NAME=RBTT)
    (ORACLE_HOME=home path of database server)
    if iam connecting sqlplus there in application server and giving username and password
    its showing error as .......
    Enter user-name: xmluser
    Enter password:
    ERROR:
    Enter user-name: xmluser
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    thanks in advance
    R.Ratheesh

    hi,
    I have changed the listener hostname....before changing the host name also tnsoping database server name works fine....
    i am posting the tnsnames.ora of databse server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=application server_name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    tnsnames.ora for application server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=database server name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    is this is the right one..
    and regarding this connectivity between two servers tnsnames.ora and listener.ora plays a vital role....should i have to make any changes in sqlnet.ora in both application server and database server...should i have to copy sqlnet.ora,listener.ora in application server...and what has to be set in both???
    I have changed sqlnet.ora in database server in names.directory_path=tnsnames.ora
    thanks in advance,
    R.Ratheesh

  • Tnsping ok, but sqlplus can't connect ora-12154

    Hello All, I have installed on my linux the 10.1.0.3 oracle client and I can do tnsping to my tnsnames.ora databases but I can't connect with sqlplus... I have an error: ora-12154
    I have readed metalink documentation and I think everything is ok, but still can't connect... :( Can anybody help me please?
    Here is some extra data:
    -My env vars are:
    ORACLE_HOME=/home/j0nuntu/OraHome_1
    TNS_ADMIN=/home/j0nuntu/OraHome_1/network/admin
    TNSNAMES=/home/j0nuntu/OraHome_1/network/admin
    -My tnsnames.ora:
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.53)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TEST)
    ORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.249)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORACLE)
    As I said, tnsping to test or oracle is ok... tnsnames.ora is in the correct path and there it has 775 perms on it. What can be happening?
    Thanks in advance.

    Also, make sure it is using the correct tnsnames.ora file.
    Do you have multiple copies of this file in different directories?
    post the contents of your sqlnet.ora file as well.

  • 11g on Windows started all of a sudden to respond very slow on TNSPING

    Here is the listener.ora and the tnsnames.ora
    # listener.ora Network Configuration File: C:\app\administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = odb1.domain.com)(PORT = 1522))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = C:\app\administrator
    # tnsnames.ora Network Configuration File: C:\app\administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ODB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = odb1.domain.com)(PORT = 1522))
    ODB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = odb1.domain.com)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = odb1.domain.com)
    Symptoms:
    1. the solution use to work like a breeze, until 10 days ago when problems started when after a windows update i restarted the machine.
    2. The first time I do a tnsping, I get a response in 20 ms. After that every time I do the same it takes 5000 ms or more
    3. Client can't connect anymore over the network (verified the tnsnames to be correct)
    4. I can connect only using Local Bequeath connection.
    I have seen several cases on the internet but nothing seems to match my case (windows OS)
    steps already done: I did add the full name on the hosts file to expedite the resolution
    restarted the listener after each change
    Any help will be highly appreciated.
    Thanks

    I did it and I copy here the result of the file tnsping.trc:
    Any idea?
    Thanks
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-SEP-2011 16:06:58
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    New trace stream is c:\trace\tnsping.trc
    New trace level is 4
    --- TRACE CONFIGURATION INFORMATION ENDS ---
    --- PARAMETER SOURCE INFORMATION FOLLOWS ---
    Attempted load of system pfile source C:\app\administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Parameter source loaded successfully
    -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
    Successful parameter table load
    -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
    TNSPING.TRACE_LEVEL = 4
    NAMES.DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
    TNSPING.TRACE_DIRECTORY = c:\trace
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    --- PARAMETER SOURCE INFORMATION ENDS ---
    --- LOG CONFIGURATION INFORMATION FOLLOWS ---
    Log stream will be "standard output"
    Log stream validation not requested
    --- LOG CONFIGURATION INFORMATION ENDS ---
    nnftmlf_make_local_addrfile: construction of local names file failed
    nnftmlf_make_system_addrfile: system names file is C:\app\administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    nscall: connecting...
    nsc2addr: (DESCRIPTION=(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=odb))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.50)(PORT=1522)))
    nttbnd2addr: using host IP address: 192.168.1.50
    nsopen: opening transport...
    nttcni: Tcp conn timeout = 60000 (ms)
    nttcni: trying to connect to socket 1580.
    nttcni: connected on ipaddr 192.168.1.50
    nttcon: set TCP_NODELAY on 1580
    nsopen: transport is open
    nsopen: global context check-in (to slot 0) complete
    nscon: doing connect handshake...
    nscon: sending NSPTCN packet
    nscon: got NSPTRF packet
    nscall: refused
    nstimarmed: no timer allocated
    nsclose: closing transport
    nsclose: global context check-out (from slot 0) complete

  • Cannot Tnsping, Telnet to DB on Linux 3 Sever - Ports not open

    I have installed 10g DB server on Linux 3. The DB is running properly. However when I do a TNSPING/Telnet from a windows client I am unable to connect. I can ping the server from the client and vice versa.
    The following are the results:
    sqlnet.ora file on the client:
    # sqlnet.ora Network Configuration File: C:\oracle\product\10.1.0\db\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    tnsnames.ora file on the client:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.1.0\db\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    infr2 =
    (description =
    (address_list = (address = (protocol = tcp)(host = 192.168.0.102)(port = 1521)))
    (connect_data = (sid = infr2)))
    # (DESCRIPTION =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVER = DEDICATED)
    # (SERVICE_NAME = infr2)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    LISTENER is running on the server.
    PING RESULTS FROM SERVER TO CLIENT: Successful
    [root@infr2 etc]#ping 192.168.0.100
    PING 192.168.0.100 (192.168.0.100) 56(84) bytes of data.
    64 bytes from 192.168.0.100: icmp_seq=0 tt1=128 time=0.279ms
    6 packets transmitted, 6 recieved, 0% packet loss, time 5013ms
    PING RESULTS FROM CLIENT TO SERVER - Successful
    C:\Documents and Settings\natik>ping 192.168.0.102
    Pinging 192.168.0.102 with 32 bytes of data:
    Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.0.102:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    TNSPING Result – Fail
    C:\Documents and Settings\natik>tnsping infr2
    TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 07-NOV-2
    004 10:18:42
    Copyright © 1997, 2003, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.1.0\db\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (description = (address_list = (address = (protocol = tcp)
    (host = 192.168.0.102)(port = 1521))) (connect_data = (sid = infr2)))
    TNS-12560: TNSprotocol adapter error
    Telnet result - Fail
    On Telneting to see if the port is open I get:
    C:\WINDOWS\system32>telnet infr2.localdomain.com 1521
    Connecting To infr2.localdomain.com...Could not open connection to the host, on port 1521: Connect failed
    I have flushed the rules from the iptables. There are no rules set right now, but still getting failure.
    The TNSPING and TELNET is not getting through any ideas. Seems like that the port 1521 is blocked. How do I open it.?
    Thanks.

    Is there a firewall between client and server? Unfortunately you don't tell us , which Windows version you are using. If it is Windows XP SP2 , by default Windows integrated firewall is activated. But this shouldn't be a problem in your case, because you are using Windows as a client.

Maybe you are looking for

  • I can't log in with my ID

    I can't log in with my ID

  • How do i get itunes to recognize my new iphone

    I just purchased iPhone 4.  I activated it online using AT&T. However, when I connected to iTunes, it was not recognized.  I followed the steps on the troubleshooting page, but none of the steps worked.  Has anyone else experienced this? If so, how w

  • IDOC in  Ibound  processing problem...

    Hi All   i have  to transfer data from one server to other and i used Idoc. with ale. All works fine in Outbound process with status 03. but in Inbound  processing the status is 51.(Documant not posted .). and i am not able to se the data in the inbo

  • Measurement in Photoshop CC

    In some of the Photoshop "Extended" versions, there was a function in which one could apply a known measurment to an image and then determine other dimensions in the image. For example, if one were designing a sign for a building and shot a picture o

  • I want to move my picture out of my phone and into my computer

    I want to learn how to move my pictures out of my IPhone 4 on to the computer