oracle jdbc驱动程序版疯狂 [英] oracle jdbc driver version madness
问题描述
为什么Oracle会提供不同的(!)版本的JDBC驱动程序,例如: ojdbc14.jar,对于每个(!)数据库版本?
文件都有不同的大小,因此可能是不同的内容。
Why the heck does Oracle offer a different(!) version of the JDBC driver, e.g. ojdbc14.jar, for every(!) database version?
The files all have different sizes and thus probably different content.
背景:
我们得到一个随机且看似不可复制的错误,在保存数据时说无效数字(我们猜测它是时间戳)。但这不是任何特别的声明。大多数时候,它可以节省很多。每月只需一次无害的查看语句就会失败。
background:
We get a random and seemingly irreproducible error saying "invalid number" when saving data (we guess it's the Timestamp). But it's not any particular statement. Most of the time, it saves just fine. Just once a month a harmless looking statement will fail.
所以我仔细看了一下Oracle的下载站点,发现尽管文件共享同名,但没有一个文件大小匹配。
So i had a closer look at Oracle's download site and noticed that none of the filesizes match despite files sharing the same name.
我们的产品在我们客户维护的数据库上运行,即客户端运行的版本和补丁是什么。
那么什么司机我们用吗?最新的(Oracle 11g) - 尽管它通常是 9i和 10g数据库?
Our product is run on databases maintained by our clients, i.e. whatever version and patch the clients have running is what it is.
So what driver do we use? The latest (Oracle 11g) - despite the fact that it's usually 9i and 10g databases?
为什么他们不将所有版本链接到相同的一个驱动程序适合所有文件?
或者是否有微小的差异导致像我们的随机错误这样的影响?
Why don't they just link all versions to the same "one driver suits all" file?
Or are there minute differences leading to effects like our random errors?
编辑:我错了关于9i数据库。
i was mistaken about the 9i databases.
推荐答案
请参阅
的兼容性矩阵 http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq -090281.html#02_02
另请注意,timestamp数据类型仅在Oracle 10之后可用。
Also take in mind that the timestamp datatype is only available since Oracle 10.
这篇关于oracle jdbc驱动程序版疯狂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!