I have installed Oracle 10G XE. I want to connect to it using JDBC . Which driver should i use for it and from where can i download it ?
Thank You.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On the machine you have installed the server, Oracle JDBC drivers are in
ORACLE_HOME/jdbc/lib. Just putojdbc14.jaron your classpath (ojdbc14_g.jaris the same asojdbc14.jar, except that classes were compiled with “javac -g” and contain some tracing information).EDIT: According to Oracle Database 10g Release 2 (10.2.0.4) JDBC Drivers,
ojdbc14.jarcontains classes for use with JDK 1.4 and 1.5 (and I don’t see why it wouldn’t work with a JDK 6, some features of JDBC 4.0 won’t just be available).Some newer drivers are available at Oracle Database 11g Release 2 JDBC Drivers but I don’t really see the difference between
ojdbc14.jarandojdbc15.jar(except thatojdbc15.jarrequires a JDK 5+): they are both JDBC 3.0 driver so I think it’s just a matter of end of life support forojbdc14.jar. If you want JDBC 4.0 support, you’ll needojdbc16.jarthough. Have a look at the Oracle JDBC FAQ if you want more details.