Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Manju Tcs   on Jul 21 In Java Category.

  
Question Answered By: Devrim Yilmaz   on Jul 21

why on earth would you use odbc at all in this, just use jdbc directly
forget about the registering of odbc sources and substitute these two
lines in the example

Class.forName("oracle.jdbc.OracleDriver");
conn=DriverManager.getConnection("jdbc:oracle:thin:@//[server]:1521/[database]",\
"scott","tiger");

where [server] is your oracle  server
and [database] is your database  instance/schema

this will work on any OS

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on oracle connection Or get search suggestion and latest updates.


Tagged: