HOW TO RESOLVE(Test failed: The Network Adapter could not establish the connection)

Hii
I want to create new databse as sysdba in jdev.I followed the steps as given in
Oracle JDeveloper 11g Release 2 Tutorials - Designing and Building Database Tables
In step 7 create database user and database connection, I am not able to do that and getting the error
(Test failed: The Network Adapter could not establish the connection).
Please help me.

Hi,
Could you please provide all value you pass to the connection properties on the connection creation panel? First of all, you should choose "Generic JDBC" as the connection type in order to use BDB SQL JDBC driver.
Regards,
Cindy

Similar Messages

  • 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

  • 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

  • IO Error: The Network Adapter could not establish the connection in oracle

    Hi experts,
    I have oracle developer days installed in my vitrual box machine. The connection to oracle datatase (11.2.0.2) contained in the oracle developer days was working fine via sql developer. I use eclipse to write some java programs to connect the database. However, somehow, I cannot connect the database via sql deveoper anymore. This is the error I got when I tried to connect it via basic connection type:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    Can anybody shed a light on this issue please. Thanks a lot in advance.

    user571093 wrote:
    Hi experts,
    I have oracle developer days installed in my vitrual box machine. The connection to oracle datatase (11.2.0.2) contained in the oracle developer days was working fine via sql developer. I use eclipse to write some java programs to connect the database. However, somehow, I cannot connect the database via sql deveoper anymore. This is the error I got when I tried to connect it via basic connection type:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    Can anybody shed a light on this issue please. Thanks a lot in advance.Do you realize & understand that we are NOT standing behind you?
    I, too, am running Oracle Developer Days inside VirtualBox.
    On which system is SQL Developer installed?
    The post errors indicate an OS/networking issue.
    when was last time all worked without error?
    what changed since then?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • JDeveloper Oracle XE The Network Adapter could not establish the connectio

    I installed JDeveloper 10.1.2 and oracle express on Fedora.
    Now I cannot create a database connection from jdeveloper using the connection navigator
    The hostname, port etc is correct.
    Sqlplus and everything else regarding the database on the command line works fine.
    Did I miss something ?
    Maybe an environment setting ?
    I did the following installation (all on the same host):
    Java runtime
    JDeveloper
    XE Database
    Testing a connection I used the Oracele Database Express Edition 2 Day PLus Java Developer Guide.
    Is this documentation complete ?
    Can someone also explain to me what the error message
    Io exception: The Network Adapter could not establish the connection EXACTLY means ??
    Where does it go wrong ?
    Is there a checklist for thsi kind of thin-java connection problems ?

    Here some extra info, as I just said I did a default installation.
    The listener is up on port 1521, see ouput:
    LSNRCTL for Linux: Version 10.2.0.1.0 - Beta on 01-FEB-2006 15:21:01
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linux900)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Beta
    Start Date 01-FEB-2006 15:01:51
    Uptime 0 days 0 hr. 19 min. 10 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/ne twork/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/ne twork/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux900)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux900)(PORT=8080))(Presentation=H TTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Also tnsping works fine:
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 01-FEB-2006 15:29:32
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = linux900)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (20 msec)
    So still I dont known what is going wrong here, the following properties are used by this connection:
    Type: Oracle (JDBC)
    Driver: oracle.jdbc.driver.OracleDriver
    User: hr
    URL: jdbc:oracle:thin:@linux900:1521:XE
    Is the driver used by JDeveloper correct ?
    There is a note on XE that the use of oracle.jdbc.driver.* classes is deprecated but still supported.

  • The Network Adapter could not establish the connection Error Code: 17002

    Hi,
    after upgrade b41 to b49, I get error from subject, without any changes in my app.
    This occurs only on Oracle AS, on standalone OC4J application works OK.
    I use connection defined in persistence.xml:
    <non-jta-data-source>jdbc/MyAppDS</non-jta-data-source>
    and can successfully test this connection in Enterprise manager.
    Also, I tried all tricks mentioned here:
    http://www.websina.com/bugzero/kb/oracle-connection.html
    I know, that this is JDBC layer problem, but I am sure, that my connection is OK, and
    after downgrade to b48 this problem fall away.
    Bye,
    Lumir

    Could you provide the full stack trace to the exception.Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Výjimka vstupu/výstupu: The Network Adapter could not establish the connection
    Error Code: 17002
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
         at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
         at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:185)
         at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
         at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
         at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
         at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
         at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:458)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:586)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:235)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:227)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
         at idea.isko.db.service.impl.AbstractServiceImpl.createEntityManager(AbstractServiceImpl.java:77)
    How have you deployed your application exactly, i.e. what is the structure of your ear. I use standard war for deploy.
    Is the DataSource defined in your server, or your application? Defined on server, test on Enterprise manager passed successfully.
    Try using a direct JDBC connection in your persistence.xml (driver/url), does this work?Not work, this same exception.
    How do you access your entity manager? (managed, non-managed, jta, non-jta?)non-managed, non-jta.
    FYI, I make downgrade to build 48, and this works - it is last version without this problem.
    I added some tracing code to my SessionCustomizer:customize():
    DatabaseLogin login = session.getLogin();
    logger.fine("URL is :" + login.getDatabaseURL());
    With build 48, connection defined using toplink.jdbc.* , the output is:
    07/06/11 10:04:36.218 10.1.3.1.0 Started
    07/06/11 10:04:43.593 MyApp: 10.1.3.1.0 Started
    07/06/11 10:05:18.578 MyApp: FINE - Customizing session - directProperties
    07/06/11 10:05:18.578 MyApp: FINE - URL is :jdbc:oracle:thin:@(DESCRIPTION ... (cut)
    07/06/11 10:07:16.875 MyApp: 10.1.3.1.0 Stopped
    And after upgrade to build 50:
    07/06/11 10:10:12.703 10.1.3.1.0 Started
    07/06/11 10:10:30.953 MyApp: 10.1.3.1.0 Started
    07/06/11 10:10:52.281 MyApp: FINE - Customizing session - directProperties
    07/06/11 10:10:52.296 MyApp: FINER - THROW
    Local Exception Stack:
    Exception [TOPLINK-28014] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Exception was thrown while processing property [toplink.session.customizer] with value [idea.jpa.util.ToplinkSessionCustomizer].
    Internal Exception: Exception [TOPLINK-7058] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Invalid Connector [JNDIConnectordatasource name=>null] (must be of type DefaultConnector).
    It seems to me, that Login is not properly initialized when app. run in Oracle AS.
    Bye,
    Lumir

  • "The Network Adapter could not establish the connection" on RAC databases

    I am posting what solved our situation here, in case it helps others:
    We have RAC databases that use SCAN, but also use their Local_Listener ports (because we could not go completely to SCAN due to our applications).
    For some reason, 11.1 Grid Control could see instances if we added them separately, but if we tried to connect to the database & view the performance, it would error out with "The Network Adapter could not establish the connection".
    We had to fix it by manually setting the connect string in every instance and database in the OEM Setup to the non-SCAN VIP/Ports.
    Hopefully this saves someone else hours & hours of troubleshooting. (I know, the day after Grid Control 12 comes out. SOOO helpful. :P )

    Aravind K R wrote:
    java.sql.SQLException: The Network Adapter could not establish the connectionWhere is the Oracle error? I hate this - s/w like Java suppressing the underlying error codes and messages. Just how the hell can one diagnose an error when not knowing exactly what it is? There should be a TNS error code and message.
    From the info you've given, one can only guess. And the following guess is as good as any. Load balancing is requested. Likely your RAC db services are registered on both static and virtual IPs - as the listeners are running listener 1521/tcp end points on both.
    This means the client can get a redirect to connect to a specific listener on a specific IP - and this includes the static IPs. The listener usually passes hostnames (as that is what is configured). If the client cannot resolve that static hostname to an IP, it cannot correct.
    So make sure that the client can resolve both virtual and static hostnames of the RAC - not just the virtual ones.
    If you're client is Windows, update the c:\windows\system32\drivers\etc\hosts file - alternatively register the hostnames with the local DNS.

  • Remote db.SQl dev -The network adapter could not establish the connection"

    I have 64 bit Win 7 and 32 bit oracle 11g client (I guess it is 32 bit; this was already installed on the system when i received the laptop). Is there a way to confirm if it is 32 bit or 64 bit? I am not sure if that matters?
    When i try to use SQL developer to connect to remote database; i get the error - "Status - Failure - The test failed. The network adapter could not establish the connection"
    But i can connect to the same remote database using another machine. So i am sure the host name, port etc details are correct.
    Not sure what is the issue with my client?
    Please guide.

    Similar thread
    SQL Developer: "network adapter could not establish the connection"

  • SQLDeveloper: The Network Adapter could not establish the connection

    I have installed 10.2.0g and am getting the following error 'The Network Adapter could not establish the connection' when testing a new connection in SQLDeveloper.
    I also have 11g installed and can connect successfully on a different port.
    How can i successfully connect to my recently installed 10.2.0g database please?
    many thanks

    As long as u r using the TNS entry, the issue cant lie in the environment variables. It would be true only if you trying to establish a direct connection on the same server.
    1. Pls check the tnsping using the tns entry.
    2. Check if the listener status has the database sid name registered. The issue might be simply with the listener alone.

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

  • Error: The Network Adapter could not establish the connection

    hi, i am using classes111.zip (the oracle 8.0.5 thin driver) with
    linux and gnu jsp pages. the backend is an oracle 8.04 NT
    database.
    i get this error: "The Network Adapter could not establish the
    connection " my question is this - is this error the client
    problem or the db server problem. here is the code:
    String driverName = "oracle.jdbc.OracleDriver";
    String url = "jdbc:oracle:thin:oracle1:1541:ORCL";
    String user = "demo";
    String pwd = "demo";
    String SQL = "";
    ResultSet rs;
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection(url,
    user, pwd );
    DatabaseMetaData dma = con.getMetaData();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("select * from test");
    while(rs.next())
    out.println(rs.getString("xx") +
    rs.getString("yy"));
    catch( SQLException e )
    out.println("
    error: -> " + e + " <-
    exiting
    any ideas?
    thanks in advance,
    steve
    null

    hi, i am using classes111.zip (the oracle 8.0.5 thin driver) with
    linux and gnu jsp pages. the backend is an oracle 8.04 NT
    database.
    i get this error: "The Network Adapter could not establish the
    connection " my question is this - is this error the client
    problem or the db server problem. here is the code:
    String driverName = "oracle.jdbc.OracleDriver";
    String url = "jdbc:oracle:thin:oracle1:1541:ORCL";
    String user = "demo";
    String pwd = "demo";
    String SQL = "";
    ResultSet rs;
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection(url,
    user, pwd );
    DatabaseMetaData dma = con.getMetaData();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("select * from test");
    while(rs.next())
    out.println(rs.getString("xx") +
    rs.getString("yy"));
    catch( SQLException e )
    out.println("
    error: -> " + e + " <-
    exiting
    any ideas?
    thanks in advance,
    steve
    null

  • Jdbc. The Network Adapter could not establish the connection. Help Please!!

    I've found several responses over this issue, but none works for me.
    I'm trying to setup a simple jdbc connection from a simple program.
    Platform:
    Fedora Core 4 (FC4) on AMD 64 bits
    Java 1.4.2_04 (64 bits)
    ORacle 10g or Oracle 9.2.0.4 (none works);
    Tips:
    - I can't connect to a remote server, nor to a local server
    - I can connect using SQLplus
    - TNSPing works fine
    - Listener it's up
    - my connection string is jdbc:oracle:thin:user/name@host:port:sid
    - Also try jdbc:oracle:thin:user/name@//host:port/sid
    - I'v tryied with classes12.jar, odbj14.jar
    - my hostname it's ok.
    I've monitored ip traffic on remote computer. While using TNSPING I detect activity. While using jdbc, no.
    Please, any idea??

    Thanks for your reply.
    To your questions:
    - I´v tried both IP, host, and even host.domain
    - I can connect from remote workstation using toad, and from local using sqlplus.
    - I can´t connect via jdbc.
    Folowing:
    A) my sample code
    B) the stack trace
    C) the listener status (from my 9i server. Also tryied another servr with 10g)
    when I call this program, I´ve tried severl connection strings:
    jdbc:oracle:thin:user/pass@sdd51:1521:ebf
    jdbc:oracle:thin:user/pass@:sdd51.sdd.com.ar:1521:ebf
    jdbc:oracle:thin:user/pass@:10.10.10.51:1521:ebf
    also try the other sintax:
    jdbc:oracle:thin:user/pass@//sdd51:1521/ebf
    In the classpath, I´tryied:
    clasess12.jar
    ojdbc14.jar
    nls_charset12.jar
    thanks
    A)=================================================
    // Import the JDBC classes
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    import java.io.*;
    import java.util.*;
    public class test
    // The query we will execute
    static final String query = "select 'Hello JDBC: ' || sysdate from dual";
    // The connection to the database
    static Connection conn;
    // Create the User Interface
    static public void main (String args[])
    try {
    String connect_string = args[0];
         // See if we need to open the connection to the database
         if (conn == null)
    // Create a OracleDataSource instance and set URL
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(connect_string);
         // Connect to the databse
         System.out.println ("Connecting to " + connect_string + "\n");
         conn = ods.getConnection ();
         System.out.println ("Connected\n");
         // Create a statement
         Statement stmt = conn.createStatement ();
         // Execute the query
         System.out.println ("Executing query " + query + "\n");
         ResultSet rset = stmt.executeQuery (query);
         // Dump the result
         while (rset.next ())
         System.out.println (rset.getString (1) + "\n");
         // We're done
         System.out.println ("done.\n");
    catch (Exception e)
    e.printStackTrace();
         // Oops
         System.out.println (e.getMessage () + "\n");
    B)=================================================
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:212)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:102)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:85)
         at test.main(test.java:66)
    C)=================================================
    LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 30-JAN-2006 17:39:59
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 9.2.0.1.0 - Production
    Start Date 24-JAN-2006 11:16:18
    Uptime 6 days 6 hr. 23 min. 40 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Log File /opt/oracle/product/9.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sdd51.sdd.com.ar)(PORT=1521)))
    Services Summary...
    Service "ebf" has 1 instance(s).
    Instance "ebf", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • SQL Developer 1.5 - The Network Adapter could not establish the connection

    I was using SQL Developer 1.2 until this afternoon. I saw that 1.5 was available so I decided to try it out.
    Unfortunately, I cannot connect. I've tried connecting the same way I've done with 1.2 and it gives me the error:
    "Io exception: The Network Adapter could not establish the connection"
    No firewall changes, tns changes have been done the whole 10 minutes I was transitioning over from 1.2 to 1.5.
    Any ideas how I can get 1.5 to connect?

    Hi Echoi ,
    1/Do you want us to look at the tnsnames.ora and see if we spot anything?
    2/There are complications with existing ORACLE_HOME s:
    Re: 1.5 not working at all for me
    post from dooneill:
    Hi Thomas,
    SQL Developer does pick up the JDBC drivers from your local ORACLE_HOME.
    To ensure your using the shipped JDBC drivers you could use the following small script.
    I would appreciate if you could tell me if this works and what version of Oracle you have installed locally.
    1) Close SQL Developer
    2) Create a sqldeveloper.cmd file in the SQL Developer root directory
    3) With the following contents
    SET ORACLE_HOME=%CD%
    start sqldeveloper.exe
    4) Run sqldeveloper.cmd
    Thanks
    Dermot.
    -Turloch

  • The network adapter could not establish the connection after hostname chang

    hi all,
    my computer name and ip address are changed after it is moved to another location in a local lan network. however, when i tried to connect my database in oralce 11g (enterprise edition) after, i got this error "the network adapter could not establish the connection" (in sql developer)
    and "Configuring database with database control requires a listener to be configured in the current oracle home. You need run Netca to configure a listener before you can proceed. Otherwise you may choose to continue with database control" (in dbca when i tried to create a new database). i also cannot access my database in OEM becasue it is still refering to old host name with this error message "Firefox can't establish a connection to the server at...". i changed the old host name to the new host name in files of listener.ora, listener1212114PM3012.bak, tnsnames.ora, and tnsnames1212114PM3012.bak in folder 'product\11.2.0\dbhome_2\NETWORK\ADMIN'. but it didn't work. can anybody pls tell me what do i need to do to fix the problem. i don't want to reinstall my oracle again because i've done a lot of works already in oracle. thanks in advance.
    kind regards,
    hong

    hi,
    C:\>lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-DEC-2012 11:44
    :05
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    C:\>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-DEC-2012 11:46
    :29
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=pc-412-0.xx.xxxx.xxx.xx)
    (PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    64-bit Windows Error: 1004: Unknown error
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    64-bit Windows Error: 2: No such file or directory
    SQL> startup
    ORA-01081: cannot start already-running ORACLE - shut it down first
    Then I shutdown it and startup again. The new message is as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 3373858816 bytes
    Fixed Size 2180424 bytes
    Variable Size 2097154744 bytes
    Database Buffers 1258291200 bytes
    Redo Buffers 16232448 bytes
    Database mounted.
    Database opened.
    I tried to connect the database again and it didn't work. Thanks.
    Hong

  • Connection Problem : The Network Adapter could not establish the connection

    I am trying to connect to an Oracle 9i database using the jdbc drivers from the jdbc/lib directory. Whatever I try I get the error "The Network Adapter could not establish the connection.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:oradev", "user1", "secret");
    The listener is running, I believe the SID is correct. I am able to connect to the database using SQLPLUS, SQLPLUSW, etc. I am running using JDK 1.4.2 and ojdbc14.jar is on my classpath.
    I am running out of ideas so any help would be appreciated.
    Thanks,
    Richard

    I been trying a few more tests and if I change the connection string to "jdbc:oracle:thin:@<tnsname> which I believe you can do, it now raises the exception :-
    java.sql.SQLException: Io exception: SO Exception was generated
    Any Ideas?
    Thanks,
    Richard

Maybe you are looking for