我有WEB应用服务器和ORACLE服务器各一台,现在WEB应用服务器用jdbc连接ORACE时
弹出“java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection”异常。
但同样的用该程序连接另一台ORACLE服务器时,一切正常!
且在ORACLE服务器操作sqlplus也一切正常!
...全文
224打赏收藏
连接oracle出问题!
我有WEB应用服务器和ORACLE服务器各一台,现在WEB应用服务器用jdbc连接ORACE时 弹出“java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection”异常。 但同样的用该程序连接另一台ORACLE服务器时,一切正常! 且在ORACLE服务器操作sqlplus也一切正常!
Re: Java.SQL.Exception The Network Adapter could not establish the connection
Author: parthas_k@yahoo.com
In Reply To: Java.SQL.Exception The Network Adapter could not establish the connection Jul 11, 2003 7:24 AM
Reply 8 of 8
Hi Guys,
I have seen this problem in almost all the forums.Now a solution is achieved.
Try this.
This problem is mainly due to the connection URL specified for the Oracle thin driver.
Few steps to debug this scenario...
1) Check for the class path frst.
2) Check whether the listner is running.
Linux or Solaris check --> ORA_HOME/bin/lsnrctrl.sh
Windows -->ORA_HOME/bin/lsnrctrl.exe
3) If these are Okay, the problem is with your Connection URL. Check the following.