wood burning stoves 2.0*
The moose likes JDBC and the fly likes Execution freezes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Execution freezes" Watch "Execution freezes" New topic
Author

Execution freezes

Lubosh Bazant
Greenhorn

Joined: Jan 15, 2002
Posts: 14
Hello
I am running jdk1.3 and I am trying to establish a JDBC connection with a Oracle7.3 database sitting on a remote machine. I have my URL and User/password set up, however everytime I run the program the there is no output. The program does not go beyond the DriverManager.getConnection() line. Not even an exception is thrown. It just freezes. Also I am using a thin driver to establish the connection.
I was wondering if this is a common behaviour in some error cases and how can it be solved.
Thanks
Nitin Shivaram
Ranch Hand

Joined: Jan 17, 2001
Posts: 71
Try printing the warnings too, use Connection.getWarnings in a loop to see if something is wrong.
Are you able to connect to the database through a sqlclient?(say sqlplus).


Nitin S<br />Sun Certified Java Programmer for the Java 2 platform.<br />Tekmetrics Certified Java Programmer For the Java 2 Platform.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I've had a similar problem in Oracle where an operation was performed in SqlPlus or similar and was not committed.
Suggested solution: Um, commit all transactions in database clients?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Execution freezes