Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a JDBC driver's version and a DB's version have to match exactly?

Say I have postgresql 9.1 running on a server, yet I choose to use a 9.2 driver to access it. Would this work? If not, are these version checks always enforced, or does it depend on your DBMS?

like image 692
filpa Avatar asked Aug 22 '13 23:08

filpa


People also ask

Is JDBC backwards compatible?

1 Answer. Hi, The backwards compatibility of the JDBC drivers is only to previous minor version updates of Virtual DataPort. So if you need to connect to both VDP 6.0 and 7.0 from the same client (eg: DBeaver) than you will need both the 6.0 and 7.0 versions of the denodo-vdp-jdbcdriver.

Is ojdbc10 compatible with JDK 8?

Java StandardsSupports JDK8, JDK11, and JDK17 and implements JDBC 4.2 and JDBC 4.3 by ojdbc11. jar (21c) and ojdbc10. jar (19c). Universal Connection Pool (ucp.

Which driver is the most reliable and always the best choice for JDBC applications?

The best choice is to use Oracle JDBC thin driver.

What JDBC version is compatible with Oracle 19c?

According to the Oracle JDBC FAQ (Question "What are the Oracle JDBC releases Vs JDK versions?"), only the Java versions you listed (Java 8 to 11) are supported for Oracle 19c.


Video Answer


1 Answers

Not mandatory.
Drivers can support multiple versions of RDBMS, or just only specific one, it depends.
Usually every drivers come out with compatibility table to let you choose most recent driver version (usually with bugfixes, improvements, ...) against your RDMBS version or just the latest drivers compatible with your RDBMS for legacy scenario.

http://jdbc.postgresql.org/download.html

This is the current version of the driver. Unless you have unusual requirements (running old applications or JVMs), this is the driver you should be using. It supports Postgresql 7.2 or newer and requires a 1.5 or newer JVM. It contains support for SSL and the javax.sql package. It comes in two flavours, JDBC3 and JDBC4. If you are using the 1.6 or 1.7 JVM, then you should use the JDBC4 version.

like image 66
Luca Basso Ricci Avatar answered Sep 27 '22 18:09

Luca Basso Ricci