java 从何处获取 11.2.0.3 的 Oracle jar 文件 - xdb、aq、i18n、xmlparser
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12529215/
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
Where to get Oracle jar files for 11.2.0.3 - xdb, aq, i18n, xmlparser
提问by Rich Cowin
I'm trying to update a legacy Java application to be compatible with Oracle 11g version 11.2.0.3.
我正在尝试更新旧 Java 应用程序以与 Oracle 11g 版本 11.2.0.3 兼容。
The application was running on Oracle 10g version 10.2.0.4 and uses Oracle Advanced Queues. It has Maven dependencies declared for:
该应用程序在 Oracle 10g 版本 10.2.0.4 上运行并使用 Oracle Advanced Queues。它为以下项目声明了 Maven 依赖项:
- aq 10.2.0.4.0
- xdb 10.2.0.4.0
- xmlparser 10.2.0.4.0
- i18n 10.2.0.4.0
- 水 10.2.0.4.0
- xdb 10.2.0.4.0
- xmlparser 10.2.0.4.0
- i18n 10.2.0.4.0
I'm struggling to find the same files for 11g, specifically for 11.2.0.3. I've looked around in various places such as my Oracle home directory, JDeveloper installation and online, and found a bewildering variety of jar files of various names and versions that are candidates but not quite what I need.
我正在努力为 11g,特别是 11.2.0.3 找到相同的文件。我环顾了各个地方,例如我的 Oracle 主目录、JDeveloper 安装和在线,发现了各种名称和版本的各种令人眼花缭乱的 jar 文件,它们是候选文件,但并不是我所需要的。
Can anyone let me know where to find the right jar files?
谁能告诉我在哪里可以找到正确的 jar 文件?
It seems that there are now some aq
classes in the JDBC driver, but the package name has changed from oracle.aq
to oracle.jdbc.aq
. Whilst I'm happy to do some refactoring I'd like some confidence that this is the right thing to do before going ahead. Any advice here would be valuable.
看来,现在有一些aq
在JDBC驱动程序类,但包的名字已经从oracle.aq
到oracle.jdbc.aq
。虽然我很高兴进行一些重构,但我希望有信心在继续之前这是正确的做法。这里的任何建议都是有价值的。
Edit:When trying to run with the mish-mash of versions I've managed to find I get the following error when trying to run the apps unit tests:
编辑:尝试使用混搭的版本运行时,我设法发现在尝试运行应用程序单元测试时出现以下错误:
java.lang.NoSuchMethodError: oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;
at oracle.sql.converter.CharacterConverterFactoryOGS.make(CharacterConverterFactoryOGS.java:43)
at oracle.sql.CharacterSetWithConverter.getInstance(CharacterSetWithConverter.java:97)
at oracle.sql.CharacterSetFactoryThin.make(CharacterSetFactoryThin.java:129)
at oracle.sql.CharacterSet.make(CharacterSet.java:514)
at oracle.sql.CHAR.<clinit>(CHAR.java:72)
Edit:Managed to solve the problem that was causing the error in my unit tests by downloading orai18n.jar
and xdb6.jar
from Oracle's Oracle Database 11g Release 2 JDBC Drivers page. However, I'm still short of aq
and xmlparser
.
编辑:通过从Oracle 的 Oracle 数据库 11g 第 2 版 JDBC 驱动程序页面下载orai18n.jar
并设法解决导致我的单元测试中出现错误的问题。但是,我仍然缺少and 。xdb6.jar
aq
xmlparser
Edit:Found the Oracle XDK home pagewhich looks promising for getting xmlparser
, but there are no downloads available in an obvious place.
编辑:找到了 Oracle XDK 主页,看起来很有希望获得xmlparser
,但在明显的地方没有可用的下载。
采纳答案by Kalpesh Soni
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html
Oracle Database 11g Release 2 JDBC Drivers
Oracle 数据库 11g 第 2 版 JDBC 驱动程序
xdb6 and the drivers are here
xdb6 和驱动程序在这里
Edit: Note that oracle 12c drivers will work with 12c and 11g!
编辑:请注意,oracle 12c 驱动程序将适用于 12c 和 11g!
https://www.oracle.com/technetwork/database/application-development/jdbc/downloads/index.html
https://www.oracle.com/technetwork/database/application-development/jdbc/downloads/index.html
回答by Brad
The JAR files are included with the Oracle full database client. I don't think the client is available publicly for download for 11.2.0.3 yet, except perhaps as part of Oracle XE. If you have the Oracle EE install, the standalone, full client is available from disk 4.
JAR 文件包含在 Oracle 完整数据库客户端中。我不认为客户端可以公开下载 11.2.0.3,除非作为 Oracle XE 的一部分。如果您安装了 Oracle EE,则可以从磁盘 4 获得独立的完整客户端。
You'll find the correct JAR files in the client in $ORACLE_HOME/jdbc/lib, $ORACLE_HOME/lib, $ORACLE_HOME/rdbms/jlib, and $ORACLE_HOME/jlib. Remember to include orai18n-collation.jar when including orai18n.jar for XQJ support, and ONLY use the same version of ojdbcX.jar as the JARs from the client (i.e, don't use ojdbc5.jar or ojdbc14.jar - use ojdbc6.jar).
您将在客户端的 $ORACLE_HOME/jdbc/lib、$ORACLE_HOME/lib、$ORACLE_HOME/rdbms/jlib 和 $ORACLE_HOME/jlib 中找到正确的 JAR 文件。记住在包含 orai18n.jar 以支持 XQJ 时包含 orai18n-collation.jar,并且仅使用与来自客户端的 JAR 相同版本的 ojdbcX.jar(即,不要使用 ojdbc5.jar 或 ojdbc14.jar - 使用 ojdbc6 。罐)。