Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The Network Adapter could not establish the connection

843854Oct 25 2002 — edited Oct 25 2002
Hi,

I'm having the following error when trying to access an Oracle server (installed in Linux Red Hat 7.2) from other Linux Red Hat 7.2:

javax.servlet.ServletException: Io exception: The Network Adapter could not establish the connection

From other clients like windows clients all works fine.
The ping from the client box to the oracle server is OK and the tnsping too. I'm only trying to create a Connection object with this code:

Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:saveweb/saveweb@192.168.0.4:1521:tesla");
con.close();

Now I'm trying with this jdbc url, but I already have tried with this url:
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.4:1521:tesla","saveweb","saveweb");

I'm using the JDK 1.2.2 (I need to use it) and I'm using classes12.zip that I download from the Oracle site. I already have tried to use the classes12_01.zip too.

Thanks for any help.

Sergio Stateri Jr.
sergio.jr@tesla.com.br
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2002
Added on Oct 25 2002
2 comments
185 views