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
posted
0
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.
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?