File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Servlet accessing database... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Servlet accessing database..." Watch "Servlet accessing database..." New topic

Servlet accessing database...

Vimala Shirur

Joined: Jan 12, 2001
Posts: 12
I want to write a servlet to establish the database connection and to access the data from this database. I have oracle 8.0 installed on my system, could anyone please help me how to set up this Dsn name from the control panel on windows '95 and what should be the URL format for DriverManager.getConnection method
DriverManager.getConnection(?? , "scott", "tiger");
and what should be the string parameter in the following method
Class.forName(" ?? ").newInstance();
Also are there other than Sun's jdbc dbc driver?
Appreciate your help!
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Oracle makes its own JDBC drivers (there are four different ones) and they will provide the documentation for using them. Check outtheir site to get the software and the documentation.
I agree. Here's the link:
subject: Servlet accessing database...
jQuery in Action, 3rd edition