This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connect oracle database

 
sam liya
Ranch Hand
Posts: 1240
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic