Oracle 10G XE的JDBC驱动程序 [英] JDBC driver for Oracle 10G XE
问题描述
我已经安装了Oracle 10G XE。我想使用JDBC连接到它。我应该使用哪个驱动程序以及从哪里下载?
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 ?
谢谢。
推荐答案
在已安装服务器的计算机上,Oracle JDBC驱动程序位于 ORACLE_HOME / jdbc / lib
中。只需将 ojdbc14.jar
放在类路径上( ojdbc14_g.jar
与 ojdbc14相同。 jar
,但类使用javac -g编译并包含一些跟踪信息。)
On the machine you have installed the server, Oracle JDBC drivers are in ORACLE_HOME/jdbc/lib
. Just put ojdbc14.jar
on your classpath (ojdbc14_g.jar
is the same as ojdbc14.jar
, except that classes were compiled with "javac -g" and contain some tracing information).
编辑:根据 Oracle数据库10g第2版(10.2.0.4) JDBC驱动程序, ojdbc14.jar
包含用于JDK 1.4和1.5 的类(我不明白为什么它不会使用JDK 6,JDBC 4.0的某些功能不仅可用。
According to Oracle Database 10g Release 2 (10.2.0.4) JDBC Drivers, ojdbc14.jar
contains 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).
Oracle数据库11g第2版JDBC驱动程序但我真的没有看到 ojdbc14.jar
和<$ c $之间的区别c> ojdbc15.jar (除了 ojdbc15.jar
需要JDK 5+):它们都是 JDBC 3.0驱动程序所以我认为这只是<$ $生命周期支持的问题C $ C> ojbdc14.jar 。如果您需要JDBC 4.0支持,则需要 ojdbc16.jar
。如果您需要,请查看 Oracle JDBC FAQ 更多细节。
Some newer drivers are available at Oracle Database 11g Release 2 JDBC Drivers but I don't really see the difference between ojdbc14.jar
and ojdbc15.jar
(except that ojdbc15.jar
requires a JDK 5+): they are both JDBC 3.0 driver so I think it's just a matter of end of life support for ojbdc14.jar
. If you want JDBC 4.0 support, you'll need ojdbc16.jar
though. Have a look at the Oracle JDBC FAQ if you want more details.
这篇关于Oracle 10G XE的JDBC驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!