File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes I am not able nto make jdbc connectivity with oracle 10g on windows vista operating system. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

I am not able nto make jdbc connectivity with oracle 10g on windows vista operating system.

yashpal waghmare
Greenhorn

Joined: Sep 17, 2008
Posts: 22
I am not able nto make jdbc connectivity with oracle 10g on windows vista operating system, I have done following code for that, I have put comment at line where its giving an error.

TreeMap loginMap = new TreeMap();
Connection con = null;
ResultSet rs= null;
Statement st =null;
String query = null;

try{
Class.forName("oracle.jdbc.driver.OracleDriver");

String url = "jdbc:oracle:thin:@123.236.165.26:1521:orcl";// its giving error at this line
con = DriverManager.getConnection(url);

st = con.createStatement();

query="select user_name, user_password from TrainRes_user_tbl";


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This has nothing to do with Struts--try on a JDBC forum/list.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am not able nto make jdbc connectivity with oracle 10g on windows vista operating system.
 
Similar Threads
Tomcat and Oracle, will i transfer any file?
how to make java database connectivity with oracle 10g on windows vista operating system.
JDBC Prepared Statement - multiple datatypes as input
Connection problem with oracle
ORA-01019: unable to allocate memory in the user side