Failure-lo exception:The network adapter could not establish the connection

Hi All,
any one can assist me .
I installed latest SQL developer in my home laptop
I am trying to connect using my SQL developer using my database UN and PW.
It is giving the following error message
Failure-lo exception:The network adapter could not establish the connection
Thanks in advance.
Regards,
Veera Lenin

THis error usually means there is no network path to the database host, or there is a firewall in the way.
What details are you using in the connection definition?
Where is the database - on the same machine or on another machine?

Similar Messages

  • Io exception : The network adapter could not establish a connection

    Hi,
    I installed an agent on Solaris 9 hosted database 9.2.0.1. All is up But when I try to connect database, I receive this error message :
    Io exception : The network adapter could not establish a connection
    thanks for your help
    David

    Thanks for the solution. Today I was stucked up because of same issue and your solution worked for me too ...
    Thanks,
    Sujit

  • Network adapter could not establish a connect from external server

    hi,
    I've set up a jdbc thin driver properly using
    the following input:
    "jdbc:oracle:thin:@ipaddress:1521:DBname",
    "username", "password"
    When outside users try to connect externally (outside the network) there is a different ipaddress. Although they are able to ping,
    telnet, run jsp etc... using the external address, they get the following error when they try the thin driver connection:
    i/o exception: network adapter could not establish a connection
    They change the ipaddress in the connection string to match the external ip. We are using oracle 8i, JRun on Linux. I have a feeling it has something to do with the tnsnames.ora file but I can't be sure.
    Any ideas?
    Thanks in advance!

    this is expected behavior ...
    the jdbc thin driver requires the use of an ip address that the calling program has acces to ...
    internally you have one ip address exposed.
    apparently you have another ip address set up for the external customer.
    fyi
    jdbc thin driver don'ts use the tnsnames.ora file -- they use "host:port:sid" because they are required to be platform independent and not access local datafiles or environment variables on the execution platform.
    jdbc oci drivers do use tnsnames.ora which provides the host:port:sid info in their entries.

  • Java.sql.SQLException: Io exception: The Network Adapter could not establish the

    Dear all,
    I have been trying to connect to Oracle 8 from Java but without success.
    I am using the following driver: oracle.jdbc.driver.OracleDriver
    and the thin protocol as follows:
    jdbc:oracle:thin:userid/password@databasename:1512:sid
    I am getting the error message:
    java.sql.SQLException: Io exception: The Network Adapter could not establish th
    connection
    I am using jdk1.3 with classes12.zip added to the classpath settings.
    Can anybody help please.
    Regards,
    [email protected] or [email protected]
    null

    Dear colleague,
    I am using a stand alone database running on my windows 98 laptop.
    I connect successfully via sql plus using the user id: scott and password tiger.
    Below is the entry of my tnsname.ora:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    I am finding difficult to specify a host, but I have tried the following combinations:
    DriverManager.getConnection ("jdbc:oracle:thin:@koudry:1521:PLSExtProc","scott", "tiger");
    where the machine name is koudry and PLSExtProc the sid.
    DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:PLSExtProc","scott", "tiger");
    and also 127.0.0.1 which is the ip address of the localhost. All these give me the following error:
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:263)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at web.main(web.java:10)
    When I use the oci protocol like:
    DriverManager.getConnection ("jdbc:oracle:oci8:@127.0.0.1:1521:PLSExtProc","scott", "tiger");
    I get the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:233)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at web.main(web.java:10)
    Below is the entry for autoexec.bat:
    set classpath=.;c:\oracle\ora81\jdbc\lib\classes12.zip;
    mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
    mode con codepage select=850
    keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
    SET Path=c:\Oracle\Ora81\lib;c:\Oracle\Ora81\bin;"C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN";C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\JDK1.3\BIN;C:\MSSQL7\BINN;C:\JDK1.3\SRC;
    Can anyone see what I am doing wrong.
    Thanks,
    Richard Koudry
    null

  • Failure-Io Exception:The network adapter could not establish the connection

    Hi,
    I am new to sql developer and need help regarding establishing connection in my PC.
    I gave the following details for establishing connection.
    Connection Name: DB
    Username: myDB
    passwd: xxxxx
    Role: Default
    Connection Type: Basic
    Host Name: localhost
    Port: 1521
    SID: xe
    When I tested the connection the following error occured:
    Failure -Io Exception: The network adapter could not establish the connection
    Please help me out.
    Thanks in advance.

    Some information showing:
    How to check if there is something listening on a machine/port (there are also port scanners like nmap)
    first a success: ctrl - ] typed in by me.
    $ telnet localhost 1521
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    ^]
    telnet> quit
    Connection closed.
    then a fail:
    $ telnet localhost 1522
    Trying 127.0.0.1...
    telnet: Unable to connect to remote host: Connection refused
    $
    Oracle also has tools to get the status of the 'listener' which is listening on the port, including database names for example 'lsnrctl stat' but it may have too many dependencies and privileges required to go into here.
    If you do not have XE, you can install it with very few restrictions.
    -Turloch

  • Failure -lo exception: The Network Adapter could not establish the connecti

    I get the following error when I attempt to connect:
    Failure -lo exception: The Network Adapter could not establish the connection
    I'm running 64-bit Windows XP Pro. Is that possibly an issue? I can ping the server. I am going to go now and install Oracle client software, to see whether I can tnsping and then connect from that.
    The remote listener is up and running. I did check that.
    What else might be the problem?

    Kris,
    I don't mind having to re-key connections between versions of Raptor, but if Raptor is going to save a connection that worked when I entered it, I expect that connection to work when I restart Raptor.
    If you can't save a connection with just the TNS Alias, at least save it as something that works - convert it to the basic format.
    Having said that - I would certainly prefer the connection to be saved as the TNS Alias if it could be. We have in the past had cases where we have modified the SID or Listener Port behind a TNS Alias to reduce downtimes during upgrades. With a centralised TNS Names file (which we have), there is only one place to update - if we are saving the full details behind the connection on every developer's PC, there is then a lot of additional places where the details need to be changed.

  • Status Failure -lo exception:network adapter could not establish connection

    Hi, installed SQL DEVELOPER today and its driving me mad... I am getting this error
    Status Failure -lo exception:network adapter could not establish connection.
    Basic tab I have all the right information, tried test gives same error...
    hostname ajas
    port 1521
    sid altaf
    TNS
    Network alias altaf
    connect identifier altaf(TRIED SINCE NETW ALIAS DIDNT WORK)
    went to TNS tab and from the list selected the right entry for NETWORK ALIAS,tried test still same error... tested with connect identifier still same error...went to Advanced entered this string jdbc:oracle:thin:@ajas:1521:altaf ..... still same error...what the hell is wrong...here is the tnsnames.ora entry ...
    ALTAF =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = AJAS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = altaf)
    by the way I am able to connect with sql*plus ... lsnrctl gives the lsnr so thats running... tnslsnr is also running...also installed the latest java sdk i.e 1.5... i have set new path to point to this new java.exe i.e 1.5 one... this is really crazy and havent see such probs in any tools i have ever used and that too using it in normal pc ... God knows what will happen if used for remote db's....
    here is listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = AJAS)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = altaf)
    (ORACLE_HOME = C:\oracle\ora92)
    (SID_NAME = altaf)
    no one seems to have answer for this... there are all kinds of strange replies for this problem.... anyone has solved this prob plz reply....
    Message was edited by:
    ajashadi

    I've had the same problem when I installed the latest version of SQL developer (1.2.1.32.13) on a machine that still had an older, working version. My problem went away when I changed from an IP name to an IP address. on the connection setup window.

  • Io exception: The Network Adapter could not establish the connection

    Hi All,
    I run tomcat and connect to Oracle fine, both on the same machine.
    I also run some batch processes daily and they often run without problems. The batch processes lots of selects and updates/inserts onto Oracle.
    These tend to work fine, but sometimes when they run I get
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    So a batch process will be running doing lots of selects and updates then it just decides it had enough and throws this error each time it tries to connect. Meanwhile tomcat continues to run fine through the same TNS listener, but subsequent batch jobs fail to connect.I normally have to restart the TNS Listener.
    I connect through the same class whether connecting through Tomcat or from the batch process with this:
    public static Connection getConnection(String caller) throws SQLException{
    try{
    Connection con;
    if (standalone){
    try{Class.forName(driver);}catch(ClassNotFoundException e){}
    con=DriverManager.getConnection(url,user,password);
    return con;
    }else{
    if (ds==null)initialiseContext();
    con=ds.getConnection();
    return con;
    }catch(SQLException e){
    ds=null;
    logger.debug("Problem in DBAccess.getConnection()...");
    logger.debug(e.getMessage());
    e.printStackTrace();
    throw e;
    I specifiy params such as MaxIdle with Tomcat using the xml config but not when its standalone - could this be affecting it?
    Any idea?
    Thanks.

    lovingbarcelona wrote:
    * Yep I get the same on the dev box.
    * I am definitely closing all the connections, I keep a close watch on that.
    Oracle should be able to handle lots of connections no problem, I agree, and it is through tomcat.
    Yet the exception that you get says that it isn't. Oracle, for example, on a single box shouldn't be able to handle 100,000 simultaneous connections.
    I would be very surprised if it couldn't handle 1,000. And if there was an issue at that point it would be a resource bound issue, like CPU (on the single box) rather than connections.
    You suggested licensing issues?I believe at one time, not necessarily now, the Oracle server would be sold such that it limited the number of simultenous connections. This could have been a relatively low number. There are quite a few assumptions in that - the major one would be it is based on my faulty memory and second would be that it was years ago.
    By the way you are not running this on a unix variant system without redoing the kernel limits to set up for a server system right?

  • SQL Developer Connection Error: Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

    Hi, I'm running the following setup:
    Mac OS X 10.8.4
    Virtual Box 4.2.16 r86992
    Oracle Developer Days (don't know the version, just downloaded it)
    SQL Developer 3.2.20.09
    Networking is host-only, I tried bridged but that doesn't make a difference for the problem at hand. I can ping my virtual box just fine, telnet to port 1521 looks good too:
    $ ping 192.168.56.101
    PING 192.168.56.101 (192.168.56.101): 56 data bytes
    64 bytes from 192.168.56.101: icmp_seq=0 ttl=64 time=0.449 ms
    ^C
    --- 192.168.56.101 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.449/0.449/0.449/0.000 ms
    $ telnet 192.168.56.101 1521
    Trying 192.168.56.101...
    Connected to 192.168.56.101.
    Escape character is '^]'.
    asdf
    asdf
    Connection closed by foreign host.
    When I create a new connection with sql developer, with the same hostname / IP (192.168.56.101), Port 1521 (didn't change that) and SID orcl, basic connection type, it can't even connect, throwing the error mentioned in the subject:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    I have looked at various threads in the forums here but I'm still stymied why the connection seems to be ok, yet sql developer has problems with it. If I create an ssh tunnel so sql developer only has to connect to localhost it works:
    ssh -L 1521:192.168.56.101:1521 -l oracle 192.168.56.101
    Message was edited by: 2a2e67cd-b5b2-4229-9fa6-21f5dfe0760d

    Hi Ali,
    This may be of varoius reasons..
    Is the database that you are connecting on the same PC?
    You have specified Hostname: localhost.
    If not please replace it with the IP of that server.
    Else please check whether the database listener is started or not. if not please start the listener.
    Check the SID by tnsping command.
    Hope this will help you..
    Thanks
    Ashok

  • Io exception   the network adapter could not established

    Hi friends,
    During Installing the oracle database 10g in linux its showing
    Error : exception occured while connecting to database.please check the connection details of the database you specified and retry.
    io exception : the network adapter could not established
    also that im all kernel parameters are set.
    plzzzzz tell me.

    Hi,
    Are there any changes done to the listener.ora file, such as the inclusion of control parameters such as:
    ADMIN_RESTRICTIONS_<listener_name> = ON
    LOGGING_<listener_name> = ON
    Best Regards,
    Venkat

  • Error "Io exception: The Network Adapter could not establish the connection

    Just now i configured Enterprise Manager in Oracle 10g.
    I connect to server via OEM, i can able to connect it.
    After logged in when i click on administration tab, it throws an error
    "Database Error
    Io exception: The Network Adapter could not establish the connection"
    What could be the problem?
    Thanks in Advance

    Could you please specify the OS you are working with, as well as the exact 10g DB version you are referring to?
    ~ Madrid

  • Jdev. Db connection - Io exception: The Network Adapter could not establish

    Hi,
    I installed Oracle 9i and forms 9i in my PC. Both are working fine including SQL.
    Now i would like to use Jdeveloper. When i try to create a database connection "Io exception: The Network Adapter could not establish the connection" error returned.
    My Db connection details are
    Driver thin
    host name harry
    jdbc port 1521
    sid oradb
    where oradb is database name and harry is host name.
    also i try to give the following details in Enter Custom JDBC Url option
    jdbc:oracle:thin:@harryt:1521:oradb
    But, i get the same error. So, can you pl. help me to fix this problem.
    - Murali

    The Network Adapter exception is caused because:
    1. The database host name, port number, or database instance name is wrong.
    2. The database TNSListener has not been started. The TNSListener may be started with the lsnrctl utility.
    C:\>lsnrctl start

  • -lo exception the network adapter could not establish the connection

    Hi,
    I am getting following error when connecing to Oracle database
    error: -lo exception the network adapter could not establish the connection
    I am able to connect through sqlplus
    pls help
    thanks

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\2101571>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 29 22:56:02 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> kocdw as sysdba
    SP2-0734: unknown command beginning "kocdw as s..." - rest of line ignored.
    SQL> conn kocdw
    Enter password:
    Connected.
    SQL> startup
    ORA-01031: insufficient privileges
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> startup
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> select instance_name from V$instance;
    INSTANCE_NAME
    orcl01
    SQL> SELECT * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL>

  • SQL error: Io exception: The Network Adapter could not establish the connec

    Hi,
    I am sure this question has been asked a million times and maybe i haven't searched the forum enough.
    But here's the situation. I haven't used oracle too much. So I am not too familiar with data-source and what not..
    I downloaded the latest version of oc4j(standalone) a few days back. I am trying to get the Oc4j j2eehome/demo/ormap to work .
    I deployed the application manually by editing server.xml and http-web-site.xml files...
    But i get this error
    SQL error: Io exception: The Network Adapter could not establish the connection
    I have no clue what that is..
    I know its got to do with the bean not connecting to the Database. Do i need to download the oracle database server too.. The documentation says something about the cloudscape database.. Well basically i am lost..
    Any information will be very helpful.
    regards
    -amit

    Hi Amit --
    This exception means that the container can't connect to the database instance to which it has been directed to use.
    If you are using the ormap demo, then this is an entity bean based sample and will need a database.
    The database configurations are stored at the server level in the j2ee/home/config/data-sources.xml file. In this file you will see entries that define a datasource using a set of "locations", provides details on where the database instance (host, port, sid) and what the logon details are.
    For the container, a default-data-source is defined (ie one to use if no others are supplied) in the j2ee/home/config/application.xml.
    <orion-application autocreate-tables="false"
    default-data-source="jdbc/OracleDS">
    To make it work simply, make sure that you have a datasource named jdbc/OracleDS defined in the data-sources.xml file (which should be there as a template) and that the connection details for it point to a valid database instance and user.
    cheers
    -steve-

  • Sql exeption: Io exception: The Network Adapter could not establish the connection

    when i tried to connect to a oracle server using visual age for java i had this error message:
    "java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
    any ideas ...

    if u r using think jdbc driver then check the Host name/address (IP Address) of the server and the SID and the port number.. there is no other reason for this.
    Sometimes.. when the database is behind the firewall and the ports/IP is not open then due to denial of access this error occurs.
    HTH.
    Rajeev

Maybe you are looking for

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

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

  • Time Capsule causes Internet to move at a snails pace.

    I've had my Time Capsule for a few months now, and only recently has it began to function like so. My first instinct was to blame Time Warner for the slow internet, yet after testing the speed with and without the router, I've narrowed it down to the

  • I want to make my video's bakcground transparent in flash?

    hi I work on flash CS3 I created a video in sony vegas, and imported it to flash, but the background is black, I want it to be transparent, what should I do? P.S: in sony, there is no background, except the original black backgound that we see when w

  • T520i Sound problem (real-time audio)

    I`m using my Lenovo T520i i7-2630QM with 8GB Ram for my DJ needs.But i haveĀ  pops, hisses, crackles and pauses. I disabled the wireless adapter in order to get better results and it`s working but in every 15 min or 30min there is crackles and pops.I`

  • Selecting in Table  from code

    hello, I have a question, you know if you show a list or a table on te screen , you can select an item by clicking on it, you actualy see what you selected because it turns blue (background). What i would like to do is the same but from my code, i se