Java ojdbc6.jar 和 ojdbc7.jar 有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31931251/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the difference between ojdbc6.jar and ojdbc7.jar?
提问by Brooke
Will ojdbc6.jar work for JDK 1.7 and Oracle 12c? Should I use ojdbc7.jar?
ojdbc6.jar 是否适用于 JDK 1.7 和 Oracle 12c?我应该使用 ojdbc7.jar 吗?
Thank you in advance.
先感谢您。
采纳答案by Anand Dwivedi
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
包含的 ojdbc6.jar 是最新的 12c 驱动程序。ojdbc6.jar 和 ojdbc7.jar 的唯一区别是后者是用 Java 7 编译的。由于 DB Solo 至少目前使用的是 Java 6,所以它只能包含 ojdbc6.jar。在功能方面,版本是相同的。关联
回答by RikH
回答by Pino
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 postfor more details.
为完整起见,请注意文件名中的数字不是驱动程序的版本号,并且ojdbc6.jar
12.xojdbc6.jar
版与 11.x版有一个奇怪的差异:较新的版本不会截断时间或将时间设置为“00:00:00”当使用 setDate 和 getDate 方法调用组件时,您也应该注意版本号(您可以在清单中找到它作为“Implementation-Version”)。有关更多详细信息,请参阅此帖子。