What is the difference between ojdbc6.jar and ojdbc7.jar?

廉价感情. 提交于 2020-01-11 04:27:16

问题


Will ojdbc6.jar work for JDK 1.7 and Oracle 12c? Should I use ojdbc7.jar?

Thank you in advance.


回答1:


The included ojdbc6.jar is the latest 12c driver. The only difference between ojdbc6.jar and ojdbc7.jar is that the latter one is compiled with Java 7. Since DB Solo is at least for now using Java 6, it can only include ojdbc6.jar. In terms of functionality the versions are identical. Link




回答2:


Note that another difference between ojdbc6 and ojdbc7 is the supported Oracle version.
Specifically ojdbc7 does not support Oracle 11.2 or 11gR2 whereas ojdbc6 does: source.




回答3:


For completeness, note that the number in the filename is NOT the version number of the driver and ojdbc6.jar version 12.x has a weird difference respect ojdbc6.jar version 11.x: newer versions do not truncate or set to "00:00:00" the time component when called with setDate and getDate methods, so you should pay attention to the version number too (you can find it in the manifest as "Implementation-Version"). See this post for more details.



来源:https://stackoverflow.com/questions/31931251/what-is-the-difference-between-ojdbc6-jar-and-ojdbc7-jar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!