• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Connectivity

 
Saritha Penumudi
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to get the connecitvity to the database using Oracle Thin driver. Few weeks back I was able to get the connectivity and I was able to get data from the database from my test program.
Yesterday when i just tired to retest my program I am getting
SQLException: IOException : Network could not establish the connection.

When i try to debug my program, when i try to print connection object to just to know if connection is being returned or not, I was able to see com.evermind.sql.OrionCMTConnection@1759d12 as output.

The above exception is being throwed when I create statement using con.createStatement() method

If it is not able to get the network connectivity then how it is able to get the connection object?

I am using Oracle 10g application and configured my database and looking up through JNDI in my program.

Please help me out with the concept and how to solve my problem

early reply would be appreciated
Thank you
Saritha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic