Bookmark Topic Watch Topic
  • New Topic

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

 
yashpal waghmare
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Report post to moderator
This has nothing to do with Struts--try on a JDBC forum/list.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
    Bookmark Topic Watch Topic
  • New Topic