Getting TNS-12560: TNS:protocol adapter error....please help

i am unable to get my LSNRCTL started.
[oracle@greg]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 29-NOV-2007 09:32:32
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /home/oracle/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /home/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /home/oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=greg)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
Error listening on: (ADDRESS=(PROTOCOL=TCP)(Host=MYHOST)(Port=1521))
TNS-12560: TNS:protocol adapter error
TNS-00583: Valid node checking: unable to parse configuration parameters
Listener failed to start. See the error message(s) above...

I am a newbie, so please pardon me.
this is what my listener.ora file looks like at the moment. Can someone look at it and tell me if it's okay?
LISTENER =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY=MYDB))
(ADDRESS= (PROTOCOL= IPC)(KEY= PNPKEY))
(ADDRESS= (PROTOCOL= TCP)(Host= bob.dhcp.mysite.com)(Port= 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME= bob.dhcp.mysite.com.)
(ORACLE_HOME= /home/oracle/app/oracle/product/10.2.0/db_1)
(SID_NAME = MYDB)
(SID_DESC =
(SID_NAME = extproc)
(ORACLE_HOME = /home/oracle/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF

Similar Messages

  • ORA 12560 OTN Protocol Adapter Error

    I installed Oracle 9iAS DB and Developer. When I tried to run Form (Form Builder). I could not establish the connection.
    After insert username and password (without hostname), the error said, ORA 12560 OTN Protocol Adapter Error. However, when I put the hostname, the message alert 'the service name could not be solved' or sth. Can anyone help me with this problem? Thank you so much

    Hey Nikhil,
    I have the same problem, however when I try to run the commands u have asked to run I get errors.
    When I try
    c:>svrmgrl
    'svrmgrl' is not recognized as an internal or external command.
    operable program or batch file.
    and when I start lsnrctl
    LSNRCTL> lsnrctl start
    NL-00853: undefined command "lsnrctl". Try "help"
    I am using XP , the database is on other drive and the Developer suite is on other drive however, Listener is working fine. This error "ORA-12560: TNS:protocol adapter error" comes only when I try to log into my database from isqlplus. I am using 9i. Any Ideas on what should be done.
    Hashem

  • ORA-12560  TNS protocol adapter error--URGENT HELP!

    To Experts:
    I tried to log in the SQL by using the username: system, manager for password. however, it gave me the message:
    ORA-12560 TNS protocol adapter error.
    I am using Oracle 9i and Developer 6 in Wins XP environment.
    Thank you much!

    Yes,Thank you very much.I am ok to invoke these commands.
    the listener started already.The listener name is just LISTENER.But i still can't login sql plus.Help me on.
    hi,Mr sb92075
    Do you use what kind of messenger?If we can communicate on messenger,it will facilitate solving my problem I think.I don't mean to disrespect you but I just want to overcome the problem very quickly.
    with best regards,
    Ian Su
    Can I know very clearly?
    what are the things(eg dbname,username,protocol I don't know exactly just guessing)needed to connect to the database?
    I already installed oracle developer suite 10 and oracle 10g xe database server.
    I can't login to sqlplus and what are the things i need to check to get connected to the database from sqlplus?
    I appreciate your help and need somebody help.
    Edited by: Ian Su on Jun 18, 2011 11:21 PM
    Edited by: Ian Su on Jun 18, 2011 11:29 PM

  • ORA-12222 : TNS:No such protocol adapter -error

    Hi
    when i try to connect database from forms builder i get the below error.
    ORA-12222 : TNS : No such protocol adapter. I refered many forums and help sites... i checked everyting in my system. like Regedit and environment variable.
    still i am getting the same error. kindly help to resolve this issue.
    Please find the below details of my desktop, form builder and Oracle database.
    Desktop OS
    Operating system : WINDOWS XP (professional) version 2002 service pack 3
    Oracle Database
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Oracle database installed in Linux server
    linux server details
    Linux VM177 2.6.18-194.0.0.0.3.el5xen #1 SMP Mon Mar 29 18:27:00 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    any rpm are required in Linux server resolve this issue.
    my linux server i couldn't find any rpms OPENM*
    $ rpm -qa openm*
    $
    Oracle forms builder
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Toolkit Version 6.0.8.24.0 (Production)
    PL/SQL Version 8.0.6.3.0 (Production)
    Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
    Oracle Multimedia Version 6.0.8.20.0 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    Thanks in advance. your early reply will be very much appriciated.
    Gowtham

    Please find below the output.
    $ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:08:23
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
    The listener supports no services
    The command completed successfully
    $ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:13:18
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 02-APR-2012 02:51:12
    Uptime 1 days 3 hr. 22 min. 5 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle11g/o11gr22/app/o11gr22/product/11.1.0/db_1/network/admin/listener.ora
    Listener Log File /oracle11g/o11gr22/diag/tnslsnr/VM/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM.xxx.com )(PORT=1525)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1525)))
    The listener supports no services
    The command completed successfully
    $ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    10.123.256.177 VM.xxx.com VM VM.in.oracle.com
    Gowtham

  • ORA-12560:TNS protocol adapter Error while upgrading oracle 8i to Oracle 9i

    Hi,
       I am updrading My oracle 8i setup to Oracle 9i in the Windows operaton System.During the upgradation in the Database upgrade Assistant,The installer asked for the system authetication for upgrading the existing database.After proving the Username and password i am getting an error as ORA-12560:TNS protocol adapter Error .Please help me about what do I need to modify.
    Thanks in Advance,
      Anjela

    Hi,
      Here are the output
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production                     
    PL/SQL Release 8.1.7.0.0 - Production                                          
    CORE     8.1.7.0.0     Production                                                      
    TNS for 32-bit Windows: Version 8.1.7.0.0 - Production                         
    NLSRTL Version 3.4.1.0.0 - Production                                          
    SQL> select version from v$instance;
    select version from v$instance
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select comp_id,version,status from dba_registry;
    select comp_id,version,status from dba_registry
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Thanks,
    Anjela

  • ORA-12560, 00000, "TNS:protocol adapter error"

    ORA-12560, 00000, "TNS:protocol adapter error"
    Please how can i resolve this issue and were do i go on my db server to resolve it.
    Thank You.
    Edited by: SEUN on Feb 17, 2010 5:37 PM
    Edited by: SEUN on Feb 17, 2010 5:39 PM

    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production

  • Error ORA-12560:TNS:protocol adapter error - on client

    dear frnds,
    I am try to install oracle 11g to my client iam getting error
    ORA-12560:TNS:protocol adapter error
    pls help me out
    thanx in advance

    Most likely reason for TNS Protocol adapter error is....you must have older client FIRST in your path.
    You 11g binaries are not kicking in, cuz...you must have 10g or similar/older binaries first in your PATH ( in windows )
    In windoz...in cmd window...
    set ORACLE_SID=xxxx
    set ORACLE_HOME= to your 11g home
    cd %ORACLE_HOME%\bin OR set PATH=%ORACLE_HOME%\bin;%PATH%
    Then your sqlplus etc..
    This time you should not be getting the protocol error.
    Let us know whether this solved your problem

  • "TNS: Protocol adapter error" while creating a database

    Hi All,
    I´m new to Oracle and trying to create a database.
    We use Oracle 8.1.7
    I´m using the Database Configuration Assistant. The problem is when creating the database I get the error:
    TNS-12560 TNS: Protocol adapter error
    Any help will be really appreciated.
    Thanks in advance,
    Carlos.

    Do you have ORACLE_HOME and/or ORACLE_SID defined in the environment which are different than the settings for the new database that you are trying to create?

  • Getting ORA-12560: TNS:protocol adapter error when starting Oracle8i SVRMGR

    Hi everyone,
    I'm new to the forums, and I guess you could say "somewhat new" to the Oracle DB. I've played around with it casually in the past, but never got real serious with it :)
    Anyhow, I wanted to see if someone could help with this. I found an old thread on a similar issue, but nothing seemed to help at all towards resolution, so I thought I would start a new thread, and maybe get some fresh ideas.
    The issue is, I start SVRMGR on Oracle8i, and get the ORA-1260: TNS:protocol adapter error.
    Here is my setup:
    OS: Win2k Advanced Server
    CPU: 2 - 930MHz Intel Xeon's
    RAM: 1GB DIMM
    DB Version: Oracle8i
    No firewalls or any other TCP interference. Ok, so now that's out the way :), here is the issue:
    When I start the SVRMGR, I get that error immediately. I have checked my tnsnames.ora file, and found some discrepancies, and have corrected them (at least to my knowledge), restarted all the Windows services running the various databases, and closed/re-opened the SVRMGR, and still get the same thing.
    For reference, here is a copy of the tnsnames.ora file:
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 207.225.221.92) (PORT = 1521) )
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = class.oracle)
    (PRESENTATION = http://admin)
    #CLASS =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = class.oracle)
    #LOGEDNET =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = LOGEDNET.oracle)
    BFLEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = BFLEDNET.oracle)
    #CSPEDNET =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = CSPEDNET.oracle)
    #FLGEDNET =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = FLGEDNET.oracle)
    #FINEDNET =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = FINEDNET.oracle)
    CCHSRES =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = CCHSRES)
    #CCHS =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = CCHS)
    CHYEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = CHYEDNET)
    #AUREDNET =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = AUREDNET)
    #TUSEDNET =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = TUSEDNET)
    ## DBs on ORACLESHC - 207.225.221.80
    DENEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.80)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DENEDNET)
    DFEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.80)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DFEDNET)
    FTCEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.80)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = FTCEDNET)
    OGDEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.80)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = OGDEDNET)
    PROEDNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.80)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PROEDNET)
    SILVER7 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.80)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = SILVER7)
    # CCHS_PROD =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.87)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVICE_NAME = CCHS)
    ONLINEDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ONLINEDB)
    GLOBALDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 207.225.221.92)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = GLOBALDB)
    The ones I commented out were either non-existant databases, or the databases were shutdown, because they are not presently being used.
    If someone could help with this, it would be greatly appreciated. :)

    HI,
    1). Can you connect normally from SQL Plus?
    -----------------------Here is entry in your Tnsnames.ora file.------------------------------
    #You must check that your Dbase Listener is Listening request on port 1521.
    ORCL9i =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Local-Server)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl9i)
    2). For pinging a service.
    If you've Microsoft Windows.
    If your database service name is orcl9i
    Run->Cmd
    Tnsping orcl9i
    --It will give you as following information either "OK" or Fail.
    ----------------------------------Output after running Tnsping--------------------------------------------
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 26-JUL-20
    07 13:30:16
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    E:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = Local-Server)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Orcl9i)))
    OK (20 msec)
    I would like to mention that Svrmgr30 was in Oracle 8. And Oracle 8i uses Svrmgrl.
    --Below is Oracle9i syntax you may use it on svrmgrl.
    SQL> connect
    Enter user-name: Scott/Tiger@orcl9i
    SQL> connected:
    SQL>

  • ORA-12560: TNS:protocol adapter error in Oracle Forms...

    Hi, I installed Oracle developer suite to use for Oracle forms but am getting "ORA-12560: TNS:protocol adapter error" when trying to run a form. The database is running locally on my PC.
    I've run the command line to see if hostname matches up with the "HOST= " in the ".../network/admin/listener.ora " file match, they do. What can I try next? I did have Oracle 10gXE installed, which I have now removed. I'm including my tnsnames and listener file content:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    # 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 = frankenputer)(PORT = 1522))
    Thanks in advance for any help!

    Of course you found another one. Each .and every Oracle database client home (such as developer, app server) has one.
    Don't just change the port - the tnsnames.ora in the dev home does not point to a database service. It only points to an extproc [external procedure called by a database]. You need to put a database service entry into that file similar to the one in the database home. (Easiest solution - copy the tnsnames.ora from db home ... after you've made a backup)
    And please don't tell me you are using Developer 6i - a simple Google search would verify that the networking is incompatible.

  • R12 Vision Install Fails, TNS-12560: TNS:protocol adapter error

    Below please find the NetServiceHandler.log from the install and an excerpt from ApplyDBTechStack...log
    OS: Windows Server 2003 SP2 x86
    I have installed the loopback adapter, modified the hosts file, and entered the DNS info. Not sure what else I can do.
    -----------begin NetServiceHandler.log-------------------------
         Classpath : ;D:\oracle\VIS\db\tech_st\11.1.0\jdbc\lib\ojdbc6.jar;D:\oracle\VIS\db\tech_st\11.1.0\appsutil\java\xmlparserv2.jar;D:\oracle\VIS\db\tech_st\11.1.0\appsutil\java;D:\oracle\VIS\db\tech_st\11.1.0\jlib\netcfg.jar;D:\oracle\VIS\db\tech_st\11.1.0\jlib\ldapjclnt11.jar
    ===============================================================================
    NetServiceHandler 120.19 started for oracleebs at Wed Jun 13 09:32:30 PDT 2012
    ===============================================================================
    [ Context Information ]
    Host : oracleebs
    Domain : demo.com
    Out Dir : D:\oracle\VIS\db\tech_st\11.1.0/appsutil/out/VIS_oracleebs/06130932
    Tier Type : DATABASE TIER
    Getting connection...
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : oracleebs
    sDbDomain : demo.com
    sDbPort : 1521
    sDbSid : VIS
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@oracleebs.demo.com:1521:VIS
    Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracleebs.demo.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS)))
    Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracleebs.demo.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS.demo.com)))
    Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    Could not get connection to the database.
    Exiting with status 100 to instantiate the tnsnames.ora template
    Creation of Directory - D:\oracle\VIS\db\tech_st\11.1.0\NETWORK\ADMIN\VIS_oracleebs Succeeded.
    instantiate file:
    source : D:\oracle\VIS\db\tech_st\11.1.0\appsutil\template\ad8itns.ora
    dest : D:\oracle\VIS\db\tech_st\11.1.0\network\admin\VIS_oracleebs\tnsnames.ora
    AutoConfig is exiting with status 0
    instantiate file:
    source : D:\oracle\VIS\db\tech_st\11.1.0\appsutil\template\ad8ilsnr.ora
    dest : D:\oracle\VIS\db\tech_st\11.1.0\network\admin\VIS_oracleebs\listener.ora
    AutoConfig is exiting with status 0
    adgentns.pl exiting with status 0
    ERRORCODE = 0 ERRORCODE_END
    ----------------end NetServiceHandler.log------------------------
    -------------------begin excerpt ApplyDBTechStack...log--------------------
    SNRCTL for 32-bit Windows: Version 11.1.0.7.0 - Production on 13-JUN-2012 09:32:41
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracleebs.demo.com)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    LSNRCTL for 32-bit Windows: Version 11.1.0.7.0 - Production on 13-JUN-2012 09:32:43
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    Failed to open service <OracleTNSListenerVIS>, error 1060.
    TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
    Message 459 not found; No message file for product=NETWORK, facility=NL
    Message 279 not found; No message file for product=NETWORK, facility=NL
    Message 1073 not found; No message file for product=NETWORK, facility=TNS
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracleebs.demo.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias VIS
    Version TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
    Start Date 13-JUN-2012 09:32:46
    Uptime 0 days 0 hr. 0 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\VIS\db\tech_st\11.1.0\network\admin\VIS_oracleebs\listener.ora
    Listener Log File D:\oracle\VIS\db\tech_st\11.1.0/network/admin\vis.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.68)(PORT=1521)))
    Services Summary...
    Service "VIS" has 1 instance(s).
    Instance "VIS", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    addlnctl.cmd exiting with status 0
    OpenService failed
    adsvdlsn.cmd exiting with status 1007
    ERRORCODE = 1007 ERRORCODE_END
    .end std out.
    .end err out.
    -------------------end excerpt ApplyDBTechStack...log-------------------------

    Hi;
    Pelase check below notes which is mention same error message
    On Windows, After 10g Upgrade, Running Autoconfig on Apps Tier Failed with : Unable To Start Apps Services TNS-12224: TNS:no listener TNS-12541 TNS-12560: TNS:protocol adapter error TNS-00511: N .. [ID 577713.1]
    Windows Autoconifg on dbTier fails on adcrobj.cmd & adsvdlsn.cmd [ID 356927.1
    Rapid Clone on Windows Fails When SID Is Over 8 Characters: "Rc-00118: Error Occurred During Creation Of Database, Failed to open service" [ID 405688.1]
    Regard
    Helios

  • TNS-12560: TNS:protocol adapter error

    Hi,
    I recently upgraded from oracle 9 to 10g and I get the error above.
    I created a new database I CAN connect to it using sqlplus (from console), but I cannot connect using any ide.
    .ora files are the following:
    listener.ora:
    LISTENER =
         (DESCRIPTION_LIST =
              (DESCRIPTION =
                   (ADDRESS_LIST =
                        (ADDRESS = (PROTOCOL = TCP)(HOST = loki.dev.justplus.ro)(PORT = 1521))
    sqlnet:
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    tnsnames:
    SM_LOKI =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = loki.dev.justplus.ro)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = SM)
    Oracle version is:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    When I try to start listener (lsnrctl status) I get the error:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=loki.dev.justplus.ro)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    Forgot to mention the OS: windows 2003
    Any help is appreciated.
    Thanks.

    You didn't describe how you performed the upgrade process. But it looks like you performed a migration process instead. If there is no listener service listed it's because it has never been started, or even configured. You should use the netca or the network manager to configure the listener and start it. The first time it starts it shows an error on windows platforms because the service originally doesn't exist, once it is created it displays the listener status.
    Please check the name resolution mechanism. If you are working on dhcp assigned IP or if you have a fixed IP. In case you are working with dynamic IP address you should configure a loopback adapter, and I suggest you reading this reference: Connectivity. Loopback Adapter.
    ~ Madrid

  • TNS-12560: TNS:protocol adapter error on Oracle Enterprise Linux

    hi,
    I am getting -
    TNS-12560: TNS:protocol adapter error when I try to connect the Db installed on Oracle Enterprise Linux from other machines.
    I made all the .bash_profile changes and created one shared listener also to check whether there is any problem with the dedicated default listener or its port.
    Please suggest the solution .
    Regards
    sumit chaudhary

    You need to open the firewall on OEL.
    Edit the contents of /etc/sysconfig/iptables file. I added the line in bold:
    # Firewall configuration written by system-config-securitylevel
    # Manual customization of this file is not recommended.
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :RH-Firewall-1-INPUT - [0:0]
    -A INPUT -j RH-Firewall-1-INPUT
    -A FORWARD -j RH-Firewall-1-INPUT
    -A RH-Firewall-1-INPUT -i lo -j ACCEPT
    -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
    -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
    -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
    -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 22 -j ACCEPT
    *-A RH-Firewall-1-INPUT -m state state NEW,ESTABLISHED,RELATED -m tcp -p tcp dport 1521 -j ACCEPT*
    -A RH-Firewall-1-INPUT -m state state NEW -m udp -p udp dport 137 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m udp -p udp dport 138 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 139 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 445 -j ACCEPT
    -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
    COMMIT
    As you can see, my listener port is 1521.
    Do not put that line after the line with REJECT keyword ( it won't work then) !
    Save and close the file. Restart iptables:
    /etc/init.d/iptables restart
    Now you can connect from the outside.
    It works on my OEL version 5 update 4.

  • TNS-12560: TNS:protocol adapter error - Of a different sort

    Hi ,
    Have a unique problem.
    System :- Win 2K
    I have installed 9iDB & 9iDS. They were working perfectly fine. I was able to connect to DB from forms. But due to some restrictions i had to resort to 6i forms.
    Now i installed 6i forms on the same machine. But when i try to connect to DB i get the TNS:Protocol Adapter error. I am sure the instance and the listener is up and running. Because still i am able to connect from 9i forms. The DB name is MYDB.
    The error i am getting is :-
    ========================
    Fatal NI connect error 12203, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80ORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Oracle6i\BIN\PLUS80W.EXE)(HOST=xxx.xxx.xxx.xxx)(USER=Myself))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 8.0.6.0.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 8.0.6.0.0 - Production
    Time: 01-DEC-05 18:33:56
    Tracing not turned on.
    Tns error struct:
    nr err code: 12203
    TNS-12203: TNS:unable to connect to destination
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    nt secondary err code: 0
    nt OS err code: 0
    ===============================
    Can someone please guide me as to how i can connect to my 9iDB from 6iforms.
    Thanks & Regards,
    Anandh

    Oracle is a bit touchy with tnsnames.ora spelling. I copied your entry, just changing names :
    MYDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    $ sqlplus scott/tiger@mydb
    SQL*Plus: Release 9.2.0.4.0 - Production on Fri Dec 2 11:20:24 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve service nameThen I change MYDB entry, just adding some spaces :
    MYDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    $ sqlplus scott/tiger@mydb
    SQL*Plus: Release 9.2.0.4.0 - Production on Fri Dec 2 11:23:17 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    SQL>                                                                                       That's why I told you of Easy configuration, but if you cannnot use it.....
    Did you try copying 9iDS SQLNET.ORA and TNSNAMES.ORA to 6i Home ?

  • TNS-12560: TNS:protocol adapter error and TNS-00530: Protocol adapter error

    i just installed oracle 11g on my windows xp professional box. Which user and password shall i use. What username and password should i be using to login to sql plus?
    when i use "Scott" "Tiger" it gives me ORA-12560: TNS:protocol adapter error occurred errorwhen i try to start service i get
    LSNRCTL> start
    Starting tnslsnr: please wait...
    Failed to open service <OracleOraDb11g_home1TNSListener>, error 1060.
    Failed to start service, error 203.
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    I am accessing the database from the same machine. Also do I need to have a ORACLE_HOME for getting sql plus working or it is not necessary?

    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Production
    System parameter file is D:\Apps\db\oracle11g\network\admin\listener.ora
    Log messages written to d:\app\computeruser\diag\tnslsnr\computer2\listener\alert\
    log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=computer2)(PORT=1521)
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521
    ipc)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=computer2)(PORT=1521)
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
    ction
    Start Date 13-DEC-2008 21:47:48
    Uptime 0 days 0 hr. 0 min. 5 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\Apps\db\oracle11g\network\admin\listener.ora
    Listener Log File d:\app\computeruser\diag\tnslsnr\computer2\listener\aler
    t\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=computer22)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    The listener supports no services
    The command completed successfully
    D:\>
    Edited by: user9938780 on Dec 13, 2008 9:52 PM
    Edited by: user9938780 on Dec 13, 2008 9:52 PM
    Edited by: user9938780 on Dec 13, 2008 9:53 PM
    Edited by: user9938780 on Dec 13, 2008 9:53 PM

Maybe you are looking for