ojdbc14.jar for Oracle 12c supported? - java

We have application developed in portlet Factory 5.1 which is using Oracle 9i. we are using ojdbc14.jar for that. we are upgrading the Oracle from 9i to 12c. is this ojdbc.jar supported for Oracle 12c as well? i believe it is compatible. Any Idea?

It is better to use the ojdbc7.jar as oracle suggest it in their supports list.
Also the jar version corresponds to the jdbc version that your j2ee comprises of . So i guess you wont be having any issues with the database upgrade.
But remember you may get the support for only ojdbc7.jar on using 12c Release, it is better to upgrade it!

Related

Oracle Database 19c ucp.jar limitations with JDK 11

we are using database Oracle 19c version in production and we are migrating to JDK 11 (currently we are on JDK 7). So i downloaded necessary ojdbc jars from oracle website:
https://www.oracle.com/in/database/technologies/appdev/jdbc-downloads.html
But i found below in the website:
It said ucp.jar certified with JDK11 but with some limitations. Can't find any information about those limitations.
Please share if anyone has idea on those limitations.
Please note that i'm aware Oracle 21c drivers listed in the website certified with JDK11 (including ucp.jar) but those don't have Long Term Support yet. So want to use Oracle 19c drivers only.
The 19c UCP limitations with respect to JDK11 are related to the DataSource APIs added in DataSource APIs in JDK9 (for example createConnectionBuilder and createShardingKey) that you won't find in UCP in 19c. If you don't use these features, you should be fine.
And yes you're right, the current Long Term Support (LTS) release is 19c. 21c should only be used to explore new features.

OJDBC Driver compatible with Oracle 10g and Java 1.8

I am having a rather trivial question. In our project we are using Oracle 10g as the database and Java 1.8 as the language. Can anyone please suggest me which JDBC driver will be suitable in this case?
In the Oracle documentation in the below link:
http://www.oracle.com/technetwork/apps-tech/jdbc-10201-088211.html
I found that ojdbc14.jar should be used. However it is written that it is classes compiled using JDK 1.4 and 1.5. So should I use the same driver when using JDK 1.8?
You can try using ojdbc14.jar however it won't support methods introduced in JDBC 4 (Java 6), JDBC 4.1 (Java 7) and JDBC 4.2 (Java 8). Because Java emphasizes backwards compatibility you most likely will be able to open the database connection, however:
The code will throw LinkageError in runtime if you use methods introduced in JDBC 4+. The code will compile with JDBC 4.2 (Java 8) but these methods will not be available during runtime.
You may experience weird behavior with low level features e.g. statement caching and row fetching was modified in 11g ojdbc6.jar few times. I'm not even sure how this features work in the old ojdbc14.jar.
It's a very unusual, an I'd say not advisable, setup that you want to test. The only way to see if it works is to try it.

How to migrate from apache cassandra 2.0.3 to apache cassandra 3.11

I am using apache cassandra 2.0.3. and like to upgrade to latest cassandra version. There are some docs present for cassandra 2.1.X to 3.x but not for 2.0.3 to 3.x. I tried to search for a proper step by step doc for that, but could not find it. Could some one help me with this.
I also like to know whether the java driver will differ for both version. will there be any issue if i use same java driver. If so how to upgrade that.
You can't directly upgrade from 2.0 to 3.x - you first need to upgrade to at least 2.1.9 (better to take latest 2.1.x), and after performing upgrade as described in the documentation, perform next step - upgrade to 3.x.
Regarding the Java driver - the latest version of Java driver should work with older versions of Cassandra, but the old version of driver may not work with new Cassandra (if you're using driver with version below 3.0, then it won't be compatible). See see compatibility table for full details. See also driver upgrade guide for concrete details about upgrading from older versions of driver.

What is the right JDBC version for MySQL server 5.1.72?

I am a bit confused about what JDBC version to use for MySQL server 5.1.72.
Could you please tell me, what version I should use and why?
The following link http://www.mysql.com/products/connector/ provides a list of MySQL Connectors, choose the JDBC connector and the platform.
Table 2.1 in this page could help you.
Anyway manual states:
The current recommended version for Connector/J is 5.1. This guide covers all four connector versions, with specific notes given where a setting applies to a specific option.
JDBC version does not makes sense here either you were talking about JDBC API then available versions are
JDBC 3.0
JDBC 4.0 (included in Java SE 6)
JDBC 4.1, is specified by a maintenance release 1 of JSR 221
and is included in Java SE 7
The latest version, JDBC 4.2, is specified by a maintenance release 2 of JSR 221
and is included in Java SE 8.
And if you are talking about JDBC driver mysql then it is better to use the latest version available which is
Connector/J 5.1.31
It is always recommended to use the most stable version unless you find some compatibility issue.

Where to Download JDBC Driver

I was googling and couldn't quite tell which JDBC driver to download that my search results returned. I'm using the latest version of MySQL (Community Edition) and running Glassfish 3.0 (If that has any relevance?) also I'm using java 6.
Which driver should I download that would be compatible with my current setup? I really did try and do my research but the fact that there are so many different drivers and from difference sources makes it a tad confusing for some.
Thanks in advance!
You could download a JDBC Driver for MySQL (Connector/J).

Categories