Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jave dependency on verion of oracle.

 
Prabhakar Digumarthi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Iam new to JAVA.HI I am working in Unix environment.One of my shell script is calling a javaprogram.This Java program is inturn connecting to oracle database using configuration file which is in Xml format.The configuration contains db userid,password,and the driver name.

Now in our unix server we have installled oracle 10g.WIll java depend on oracle version installed if so how to make the javadriver to point to 10g folder rather than 8i folder of oracle installed in the unix server.

It would we agreat help if some one explains about how a javaprogram will connect to databases in detail
 
Campbell Ritchie
Sheriff
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know how you tell Java to connect to a particular version, but I suggest you go through the Java Tutorials as well as the documentation for Oracle, which should tell you what to do.

And welcome to JavaRanch
[ August 30, 2008: Message edited by: Campbell Ritchie ]
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prabhakar,
The important part is the JDBC driver you use.
It must be compatible with both the java version you are using and the Oracle database version you are using.
Please refer to this Web page for more details:

http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html

Good Luck,
Avi.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic