aspose file tools*
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
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: 1085
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
 
wood burning stoves
 
subject: connect oracle database