The network adaptor could not establish the connection
Hi all,
my Oracle version :10g
operating System:windows vista home premium.
I wrote a jdbc program,Actually it gives the output correctly upto yesterday but it gives the error message now:
java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:111)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:145)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:254)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
438)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at First.MakeConnection(first.java:21)
at abc1.main(abc1.java:10)
And also in my
C:\oracle\product\10.2.0\db_1\network\log\listener
shows:
09-APR-2008 20:20:44 * ping * 0
09-APR-2008 20:20:44 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51637)) * establish * ssanthu * 0
09-APR-2008 20:20:44 * service_update * ssanthu * 0
09-APR-2008 20:20:44 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.100)(PORT=1521)))(VERSION=169870080)) * status * 0
09-APR-2008 20:20:52 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51642)) * establish * ssanthu * 0
09-APR-2008 20:20:53 * service_update * ssanthu * 0
09-APR-2008 20:20:59 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51643)) * establish * ssanthu * 0
09-APR-2008 20:21:15 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51644)) * establish * ssanthu * 0
09-APR-2008 22:16:43 * service_died * ssanthu * 12547
TNS-12547: TNS:lost contact
TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production on 10-APR-2008 03:15:15
Copyright (c) 1991, 2006, Oracle. All rights reserved.
System parameter file is C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to C:\oracle\product\10.2.0\db_1\network\log\listener.log
Trace information written to C:\oracle\product\10.2.0\db_1\network\trace\listener.trc
Trace level is currently 0
Started with pid=2384
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.100)(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
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production on 10-APR-2008 13:34:38
Copyright (c) 1991, 2006, Oracle. All rights reserved.
please can any one suggest me.....why i got the error like this.
Thanks in advance.
Edited by: javagrl on Apr 11, 2008 9:26 AM
Edited by: javagrl on Apr 11, 2008 9:27 AM
Edited by: javagrl on Apr 11, 2008 9:27 AM
If it worked yesterday, but not today, that proabably means you turned off your computer between then and now.
I suspect you set up some classpath term using say a dos window that when you turned off your computer, went away.
You need to put the classpath in some configuration file such as <start><control panel><admin tools><data sources odbc>,
or add information to your tnsnames file, or add an item to your computer's PATH.
Similar Messages
-
THE NETWORK ADAPTOR COULD NOT ESTABLISH THE CONNECTION error, pls help me
I download sql developer and when i want to add a new connection and fiil in the blacnks than i click test button i got the "THE NETWORK ADAPTOR COULD NOT ESTABLISH THE CONNECTION" ERROR , what should i do?
should i download 10g or 11g to use sql developer????
thanks.Without knowing what exactly you entered, I would guess that what you filled in wasn't exactly correct. Do you have an Oracle client already installed on your computer? If so, verify that what you filled in on the new connection matches the information for that DB in your TNSNAMES file (tnsping will report the server and port if you can't find the TNSNAMES file).
theFurryOne -
The Network Adaptor could not establish the connection while deploying
Hi All,
I am using oracle db 9.2.0.7 and OWB 9.2.0.4. When I am trying to deploy the object on remote database using owb deployment manager, it is failing to deploy object and giving an error "The Network Adaptor Could Not establish connection."
When I am trying to connect using SQL+, it is connecting as well as I can create the objects and all but the same thing I am trying to do using OWB, it is giving me an error.
What I understand is if there is something wrong with the tnsnames or listner, then it should give an error with sql+ as well. I have also check the c:\windows\system32\driver\etc\hosts which includes the ipaddress and host name.
Please help.
Thanks
-MehulHi,
are You using 2 different Oracle Homes (one for OWB and one with main Oracle software)
If so, may be that the TNSNAMES.ORA in the OWB Oracle Home is not correctly configured.
Please check or clarify that
Hope this helps
Max -
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
DavidThanks 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. -
Network adopter could not establish a connection
Hi iam new to sql developer
When Ever i try to connect databse which is placed on server
it reports an Network Adopter failure error
Can you tell me why it is so?i am using sql developer 3.0 and using 10g database
I want to also mention that database is on server and i am using client machine
i am using parameters like
connection name = Apps
username = xyz
password = ******
then selecting Tns as connection type
in network lais field all tns entries are shown
and i select my required alias and click test then Fillowing error occurs
Test failed ; Network adapter could not establish the connection
Edited by: Green on Apr 22, 2011 10:29 PM -
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]
nullDear 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 -
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
SamirHi,
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
nullhi, 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 -
Network adapter could not establish the connection
Hi,
Iam new to using Oracle please help me in this problem. Iam trying to connect oracle8i in my home pc(win 98) in java.. I have said..
String url="jdbc:oracle:thin:@testhost:1521:sid";
DriverManager.getConnection(url,"scott","tiger");
Actually i have added the service name using Oracle Net 8 Assistant ... it asked me service name so i gaved "fobjects". then host and port number then i gave "testhost" and port number as 1521. then i tried to use the test service but i couldnt get it... it gaved me error called " ORA12545- Connect failed because target host or obejct doe not exist ..Even then i pressed finished button to accomplish the thing...ans when i executed the java program with the above service name setup it said SO Excpetion : Network adapter could not establish the connection.
Well What the wrong i have done, help me...
Regards
Lensi.hi,
I think you have to register the driver first. pls try the following program...
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
* This class tests the environment to check if JDBC is configured and
* connection to database is possible thru JDBC. Uses THIN driver to connect.
public class JDBCCheck {
public JDBCCheck() { }
private Connection conn = null;
private final int NO_DRIVER = 1;
private final int INVALID_URL = 17002;
private final int INVALID_CREDENTIALS = 1017;
private final int NULL_URL = 2;
private final int DATABASE_DOWN = 1034;
public static void main(String[] args) {
JDBCCheck check = new JDBCCheck();
check.dbconnect();
public void dbconnect() {
if(loadDriver())
if(connect())
doSomething();
public boolean loadDriver() {
boolean loadeddriver = false;
String jdbcDriver = System.getProperty("jdbc.driver.class");
// Use Oracle driver if nothing is set
if(jdbcDriver == null) jdbcDriver = "oracle.jdbc.driver.OracleDriver";
log("Loading JDBC Driver : class="+jdbcDriver+" ...");
// try to load driver
try {
Class.forName(jdbcDriver);
log("Loaded JDBC Driver ");
loadeddriver = true;
} catch (ClassNotFoundException noclassEx) {
error(NO_DRIVER,noclassEx);
return loadeddriver;
public boolean connect() {
boolean connected = false;
String jdbcURL = System.getProperty("jdbc.url");
String username = System.getProperty("jdbc.username");
String password = System.getProperty("jdbc.password");
if(username == null || password== null) {
username = "scott";
password = "tiger";
if(jdbcURL == null) error(NULL_URL,new Exception(" jdbc.url cannot be null "));
log("Connecting with URL="+jdbcURL+" as "+username+"/"+password);
try {
conn = DriverManager.getConnection(jdbcURL,username,password);
log("Connected to Database");
connected = true;
} catch (SQLException sqlEx) {
error(sqlEx.getErrorCode(),sqlEx);
return connected;
public void doSomething() {
Statement stmt = null;
ResultSet rset = null;
try {
stmt = conn.createStatement();
log("Created Statement object");
rset = stmt.executeQuery(" SELECT 'PASSED' FROM Dual ");
log("Retrieved ResultSet object");
if(rset.next())
log("Connection :"+rset.getString(1));
} catch (SQLException sqlEx) {
} finally {
try {
log("Closing Statment & ResultSet Objects");
if (rset != null) rset.close();
if (stmt != null) stmt.close();
if (conn != null) {
log("Disconnecting...");
conn.close();
log("Disconnected from Database");
} catch (Exception e) { }
public void log(String logMsg) {
System.out.println("Log: "+logMsg);
public void error(int errcode, Exception ex) {
String jversion = System.getProperty("java.version").substring(0,3);
String os = System.getProperty("os.name");
String excp = ex.toString();
// Driver not found in classpath
if(errcode == NO_DRIVER) {
String jarname = "classes12.jar";
String nlsjarname = "nls_charset12.jar";
if(jversion.equals("1.1")) {
jarname = "classes111.jar";
nlsjarname = "nls_charset11.jar";
else if(jversion.equals("1.4"))
jarname = "ojdbc14.jar";
System.out.println(" Error: JDBC Drivers not present in CLASSPATH ");
System.out.println("\n Your CLASSPATH is :"+System.getProperty("java.class.path"));
System.out.println("\n To add Oracle JDBC Drivers to CLASSPATH ");
// Windows
if(os.indexOf("Windows") != -1) {
System.out.println(" >set CLASSPATH=<path-to-"+jarname+">;<path-to-"+
nlsjarname+">;%CLASSPATH%;");
} else {
System.out.println(" $CLASSPATH=<path-to-"+jarname+">:<path-to-"+
nlsjarname+">:$CLASSPATH:");
System.out.println(" $export CLASSPATH");
System.out.println(" Oracle JDBC Drivers can be found in "+
"<ORACLE_HOME>/jdbc/lib directory or "+
"downloaded from http://otn.oracle.com/software/");
} else if (errcode == NULL_URL) {
System.out.println("Error: jdbc.url was not supplied");
System.out.println("Usage: java -Djdbc.url=jdbc:oracle:thin:@<hostname>:<port>:<db_sid> JDBCCheck ");
} else if (errcode == INVALID_URL) {
// Check if Invalid Database SID
if( excp.indexOf("ERR=12505") != -1)
System.out.println("Error: Invalid Database SID was specified in jdbc.url ");
System.out.println("Error: Invalid JDBC URL or DB Listener is down, refer to http://myjdbc.tripod.com/basic/jdbcurl.html ");
} else if (errcode == INVALID_CREDENTIALS) {
System.out.println("Error: Invalid username/password was specified ");
System.out.println("Try connecting to the database thru SQL Plus using the same username/password");
} else if (errcode == DATABASE_DOWN ) {
System.out.println("Error: The Database you are tying to Connect is down ");
System.out.println(" Start the Database and then try to connect ");
} else {
System.out.println("Error code not handled : "+errcode);
System.out.println("\nException Message :"+excp);
System.exit(0);
while running thig pgm, you should pass the driver URL..
java -Djdbc.url=jdbc:oracle:thin:@<hostname>:<port>:<db_sid> JDBCCheck -
Network adapter could not establish the connection oracle 11g
Hi All,
I Have oracle 11g database in remote system.When I am trying to access through my Oracle Jdeveloper in my system,I am getting this error:
"Test Failed: network adapter could not establish the connection oracle 11g"
I also checked the ipaddress and listener status by giving lsnrctl status and service in remote system.Both are running.
What Should I do now?
Thanks in advance902286 wrote:
Hi All,
I Have oracle 11g database in remote system.When I am trying to access through my Oracle Jdeveloper in my system,I am getting this error:
"Test Failed: network adapter could not establish the connection oracle 11g"
I also checked the ipaddress and listener status by giving lsnrctl status and service in remote system.Both are running.
What Should I do now?
Thanks in advance
For starters, you make sure that there is even the possibility of a network connection between your client machine and the machine hosting the "remote system". What happens when, on the client machine, you issue a 'ping <ip address of remote system>'? -
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.
Maybe you are looking for
-
Norton did block a worm but I scanned Norton twice, no problem. My home page is Dell MSN and comes up with articles and pictures, now it just lists the topics, no pictures.
-
SSL port is enabled, so why can't I connect through HTTPS?
Hi, I'm using Weblogic 9.2.2, Solaris 9 with Java 1.5 We have our created our managed server within a cluster, and although we have enabled the SSL listen port ... http://screencast.com/t/t5UN6Exwp when I try connecting to our app through HTTPS in a
-
InDesign CS6 Closes Immediately
Whenever I try to open InDesign it immediately closes after loading, no error message or anything. I tried opening a document that needed updated links, and it asks me if I want to update them, but then asks if I want to save before quitting without
-
How can i unlock(country lock) iphone?
i used to belong in United States and also used iphone4 at at&t. i did not know the country lock before i flighted to foreign country. One of my friend asked me about the country lock i had to have country unlock if i using this iphone from U.S to ot
-
How is the SSD in the U430 used?
I bought the U430 a month ago and have searched all over the internet but didn't retrieve any information about how the SSD is used. There is a 25GB SSD and there is nothing on it except some lenovo drivers. Actually I expected the OS (Win 8) to be o