Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

connectivity to databse through oracle 10g

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i made a program using servlets to connect t0 a database.i also used html for querry page. foolowing is my code. its working good with mysqland microsoft access but a system error with oracle 10g








[ May 31, 2008: Message edited by: Campbell Ritchie ]
 
Marshal
Posts: 69782
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but welcome to JavaRanch
I have edited your post with code tags and "disable smilies" to improve legibility.
I think people would be better able to help if you post the exact text of the error message.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you are using Oracle, why don't you just use an Oracle JDBC driver?
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of things to tell here

1. Use a type4 java driver.
2. Instead of blatantly pasting your code mention where do you think you might be going wrong.

3. Dont't just code..Think and code.

I am sending you the Code for oracle connectivity.
Just make sure that you have the oracle jars in your classpath while trying to run it.
Also change the UserName,Password and Other details in the Connection string.

[edit]Disable smilies. CR[/edit]
[ June 04, 2008: Message edited by: Campbell Ritchie ]
 
Rajat Bhatnagar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think i pasted the wrong version of code here.

just ignore the

Part
 
Popeye has his spinach. I have this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic