Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Execution freezes

 
Lubosh Bazant
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic