Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
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";


 
Author
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.
 
Rancher
Posts: 43016
76
  • 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.
 
crispy bacon. crispy tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic