• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to JDBC

 
nirail rail
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

Are Oracle JDBC Driver, server Specific (WIN NT)
THAT IS ONE FOR WEBSPHERE AND ANOTHER FOR WEBLOGIS IF YES
PLS TELL ME WHICH DRIVERS SHOULD I USE FOR WEBSPHERE 3.5.7 TO CONNECT ORACLE 8i/9i
HOW TO INSTALL DRIVERS?
IF I HAVE APPLICATION SERVER ON ONE M/C AND ORACLE ON ANOTHER WHERE SHOULD I INSTALL DRIVERS?
WHAT HAS TO BE ENTERED IN CLASSPATH(WIN NT)?
WHAT HAS TO GO IN CLASS.FORNAME(--------------------);

PLS HELP
[ July 07, 2004: Message edited by: Bear Bibeault ]
 
Samuel Johnson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC Driver are not Application "server" specific. It is, however, database server specific. Click here and get yourself an Oracle JDBC Driver (classes12.jar).

Add classes12.jar into your CLASSPATH and try the following code where xxx.xxx.xxx.xxx is the IP of your Oracle Server

String url = "jdbc racle:thin:@xxx.xxx.xxx.xxx:1521 racleSID";
String userId = "";
String password = "";
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection(url, userId, password);
Statement stmt = con.createStatement();
//==================
} catch (Exception e) {

}
 
Samuel Johnson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. url should be:


[edited to disable smilies]
[ July 07, 2004: Message edited by: Jeanne Boyarsky ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: try : instead of 'colon's to avoid smilies

:o


Dave
 
nirail rail
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Samuel,

Thanks sir, i will try it out and get back to you

Thanks once again for quick reply
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you could check the "disable smilies" checkbox at the bottom of the post window. It's in the options section (underneath the instant UBB code section.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic