This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Servlet accessing database... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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.
Consider Paul's rocket mass heater.
subject: Servlet accessing database...
Similar Threads
About JSP error. help me!!!!!
Establishing Connections to a Data base on a different machine
The best way to connect\disconnect to Database
Dynamic IP address for thin driver
Problem in database connectivity in JSP