This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Servlet accessing database..." Watch "Servlet accessing database..." New topic
Author

Servlet accessing database...

Vimala Shirur
Greenhorn

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!
Thanks.
Anonymous
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: http://aspose.com/file-tools
 
subject: Servlet accessing database...
 
Similar Threads
About JSP error. help me!!!!!
Establishing Connections to a Data base on a different machine
Problem in database connectivity in JSP
The best way to connect\disconnect to Database
Dynamic IP address for thin driver