简体   繁体   English

如何使用 ojdbc6.jar 与 Oracle 19c?

[英]How to use ojdbc6.jar with Oracle 19c?

We have a legacy application, currently using ojdbc6.jar which cannot be upgraded now.我们有一个遗留应用程序,目前使用 ojdbc6.jar,现在无法升级。 However we want to upgrade to Oracle 19c.但是我们想升级到 Oracle 19c。 Can we use ojdbc6.jar with Oracle 19c?我们可以将 ojdbc6.jar 与 Oracle 19c 一起使用吗? If the answer is no, then can we set compatible to 11.2.0 to be able to use ojdbc6.jar?如果答案是否定的,那么我们是否可以将兼容设置为 11.2.0 以便能够使用 ojdbc6.jar?

Normally you can use older drivers for newer databases.通常,您可以将较旧的驱动程序用于较新的数据库。 You just can not use the newer features of the newer database.您只是不能使用较新数据库的较新功能。 If the driver is really old, the dba can change the sqlnet.ora on the server to allow connections from older versions.如果驱动程序真的很旧,dba 可以更改服务器上的 sqlnet.ora 以允许来自旧版本的连接。

For example: SQLNET.ALLOWED_LOGON_VERSION_CLIENT=11 allows a client from version 11 to connect to the databases.例如: SQLNET.ALLOWED_LOGON_VERSION_CLIENT=11允许版本 11 的客户端连接到数据库。

Better is to make sure the app is upgraded for support of the latest LTS release.更好的是确保升级应用程序以支持最新的 LTS 版本。 In this case that would be 19c.在这种情况下,这将是 19c。 Allowing older versions to connect can have security considerations.允许旧版本连接可能有安全考虑。

In the jdbc Frequently Asked Questions you will find a lot of information.jdbc 常见问题解答中您会发现很多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM