• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connectivity to databse through oracle 10g

 
gopal jaiswal
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 ]
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • 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.
 
Nareshreddy Kola
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?
 
Rajat Bhatnagar
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic