Solved

JDBC database connection

Posted on 2004-04-30
3
754 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
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

Industry Leaders: 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

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

679 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