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

Similar Messages

  • The Network Adapter could not establish the connection;

    Hi
    I am using Oracle 9i JDeveloper Version 9.0.3.5.
    While running tutorial i am facing following error:
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3675)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1194)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1121)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:664)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:736)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:575)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:240)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:703)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:232)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976)
         at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:2494)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1304)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:384)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1147)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1008)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:977)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:944)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:931)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:873)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:858)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:827)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:686)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:846)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:351)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3675)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1194)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1121)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:664)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:736)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:575)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:240)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:703)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:232)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976)
         at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:2494)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1304)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:384)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1147)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1008)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:977)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:944)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:931)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:873)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:858)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:827)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:686)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:846)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:351)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    I have checked all the setups. Its as per document.
    I will appreciate any help on this.
    Thanks & Regards
    Samir

    Hi,
    according to the message, the database is not accessible. This can be because the database is down or the database connect information points e.g. to a wrong port
    Frank

  • 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

  • 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

  • Top Link error 17002 The Network Adapter could not establish the connection

    I have installed an application developped in an another environnement.
    I have created the database schema in my own database.
    I have created a database connection to this schema.
    I have reconciled the schema using this connection (so the database and the connection are available and correct from jdeveloper)
    I have updated the Mapping to use the new connection and new generated the mapping status report without any errors
    and i still have this error ! The Network Adapter could not establish the connection when i access any jsp document containing data from the database.
    I check and recheck everything and all is correct ... sure something is wrong somewhere ... where is the question ...

    Sorry I think you didn't read the thread or you read it too fast !
    I'm not a beginner and I know what the problem is but all the settings are correct in jdev and the database and the listener are running ... i'm able to browse the tables, seeing data reconciling objects with the database connection referenced in the top link descriptor
    It seem that top link is using something else and i don't understand from where it took the connection description.

  • 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

  • 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

  • I got a The Network Adapter could not establish the connection..

    hi guys,
    i've just downloaded and installed oracle 10g express in my win 7 installation.
    i've already created 2 tables and one user and everything seems to be ok.
    but.. there's a but!!! i've tried to connect (using driver ojdbc14) from netbeans and i got a "The Network Adapter could not establish the connection" error.
    the connection string is:
    jdbc:oracle:thin:@pcs:1251:XE
    (pcs is my pc's name).
    what problem can be?
    many thanks ;)

    lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-ABR-2011 01:53:14
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Resumen de Servicios...
    El servicio "CLRExtProc" tiene 1 instancia(s).
    La instancia "CLRExtProc", con estado UNKNOWN, tiene 3 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:0 rechazado:0
    LOCAL SERVER
    "ORACLE SERVER" establecidos:0 rechazados:0 actuales:0 máximo:25 estado:ready
    CLRExtProc
    (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_F94_50C6352F.ORA))
    "ORACLE SERVER" establecidos:0 rechazados:0 actuales:0 máximo:25 estado:ready
    CLRExtProc
    (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_F94_50C6352F.ORA))
    El servicio "PLSExtProc" tiene 1 instancia(s).
    La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:0 rechazado:0
    LOCAL SERVER
    El servicio "XEXDB" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "D000" establecidos:0 rechazados:0 actuales:0 máximo:1002 estado:ready
    DISPATCHER <machine: PCS, pid: 3440>
    (ADDRESS=(PROTOCOL=tcp)(HOST=pcs)(PORT=49160))
    El servicio "XE_XPT" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:5 rechazado:0 estado:ready
    LOCAL SERVER
    El servicio "xe" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:5 rechazado:0 estado:ready
    LOCAL SERVER
    El comando ha terminado correctamente
    lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-ABR-2011 01:53:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    ESTADO del LISTENER
    Alias LISTENER
    Versión TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Fecha de Inicio 06-ABR-2011 00:13:13
    Tiempo Actividad 0 días 1 hr. 39 min. 51 seg.
    Nivel de Rastreo off
    Seguridad ON: Local OS Authentication
    SNMP OFF
    Servicio por Defecto XE
    Parámetros del Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log del Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Recibiendo Resumen de Puntos Finales...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcs)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Resumen de Servicios...
    El servicio "CLRExtProc" tiene 1 instancia(s).
    La instancia "CLRExtProc", con estado UNKNOWN, tiene 3 manejador(es) para este servicio...
    El servicio "PLSExtProc" tiene 1 instancia(s).
    La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    El servicio "XEXDB" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "XE_XPT" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "xe" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente

  • 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

  • The network adapter could not establish the connection with Oracle

    I installed Oracle in my laptop (windows 2008), and install Hyperion 11.1.2, when I configure Hyperion, it pops up with "the network adapter could not establish the connection with Oracle"?

    Hi,
    This usually means that the connection details you have put in for Oracle are incorrect or Oracle can not be contacted.
    Double check your configuration connection details and make sure you can access Oracle using them details.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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

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

    Hi,
    when iam trying to connect the db with new connection, new port etc.. it's showing that network adapter could not established, please help me in connecting to db.
    Regards,
    sirisha

    See The Network Adapter could not establish the connection.

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

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

Maybe you are looking for

  • DTW AR Invoice Update

    Hi, Is is possible to UPDATE already posted AR invoices with DTW? Of course I do not want to change fields like Doc total, customer, or anything in the rows. I would like to update the Sales Employee code and a title user-defined field (which can be

  • Message between and iPhone 6 and iphone 6 plus

    can I still receive text messages while on the phone from an iPhone 6 to iPhone 6 plus???

  • CS3 Export Settings Menu Not Appearing

    I've had CS3 for a few years now and have never had this issue before. When I go to export through Adobe Media Encoder, the Export Settings window never pops up. Instead, CS3 somewhat freezes in the sense that if I try and click on something, I get a

  • MFC -Creating a Simple Button in the Windows client Area

    How to create a Button in the client area (Not using Dialog to display the Button) using  CButton  class programatically

  • NetWeaver and Sun JVM bug 4957990?

    Hi, does anyone know if and how NetWeaver is affected by Sun JVM bug 4957990 ? <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4957990">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4957990</a> Thanks, Victor