File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC/Oracle access problem

 
Saket Barve
Ranch Hand
Posts: 229
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to access a networked machine through the following JDBC code. I have checked the SID, port, user name and password. The same parameters work smoothly when I use Toad for DB access but fails here.




Here is the error:


I tried replacing the IP address with the machine name but that wouldn't work either.

Regards,
Saket
 
Bhavin Sanghani
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saket,

go through following link...HTH

http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm

secondly, in JDBC url paste ur tns entry (google it for proper format)...

also, there could be some version related issues...different format of JDBC url is proposed from Oracle to use Oracle JDBC driver...just check it out..

-bhavin
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic