Solved

JDBC database connection

Posted on 2004-04-30
3
757 Views
Last Modified: 2011-09-20
Can this be a problem with  JDBC database connection.

java.sql.SQLException: Io exception: Got minus one from a read call

0
Comment
Question by:smena
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Assisted Solution

by:yoren
yoren earned 50 total points
ID: 10960612
Looks like you lost a network connection mid-stream. Do you get this every time? If not, it might just have been a fluke.
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 150 total points
ID: 10961597
may be explain u r problem clearly...?
may be problem using.....

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

Properties prop = new Properties();
prop.put("user", "system");
prop.put("password","manager");
prop.put("oracle.net.encryption_client", "REQUIRED");
prop.put("oracle.net.encryption_types_client", "(DES40C)");
prop.put("oracle.net.crypto_checksum_client", "REQUESTED");
prop.put("oracle.net.crypto_checksum_types_client", "(MD5)");

Connection conexion = DriverManager.getConnection("jdbc:oracle:thin:
@maquina:1522:test", prop);
Statement sentencia = conexion.createStatement();
ResultSet rs = sentencia.executeQuery("SELECT * FROM GV$TABLESPACE");
ResultSetMetaData rsmd = rs.getMetaData();


R.K

0
 

Accepted Solution

by:
mvanzan earned 100 total points
ID: 10962776
You might have already found this, but I did a google search for that exception and found this answer on another forum.  It may not be the solution to your problem, but I thought I'd post it just in case.

Everything else I've found point more to an oracle network configuration issue, not a JDBC issue.  Good luck,

MVZ

>Steve Croft
>Jun 14 2003 12:30  Figured it out, mostly. The init.ora file had LOCAL_LISTENER >defined to a bogus listener alias. Kinda wierd that it would still work for
>some clients. Anyway, removing that and restarting the instance cleared it up.
 

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question