wood burning stoves 2.0*
The moose likes JDBC and the fly likes connect oracle 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 "connect oracle database" Watch "connect oracle database" New topic
Author

connect oracle database

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1070
whan i am connecting jdbc database i use below commands

Class.forName("com.mysql.jdbc.Driver").newInstance();

String url="jdbc:mysql://localhost/test";
String user="root";
String password="admin";

connect=DriverManager.getConnection(url,user,password);


but when i need to connect oracle what are the values for parameters to Class.forName("") and url
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

aruna sameera wrote:
but when i need to connect oracle what are the values for parameters to Class.forName("") and url

Can you guess which Driver class should be placed there and Where can you find that Oracle Driver for JDBC connection?
Search this two things and you can solve it by yourself
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connect oracle database
 
Similar Threads
problem in connecting to oracle through jdbc
Access database from a class file
JDBC with OAS
problem connecting with the database
strange problem when accessing MySQL