Java: Obtendo a versão de um driver JDBC

From Wiki


Verificando o driver JDBC do Oracle

Execute o comando

# $ java -jar ojdbc6.jar
Oracle 11.2.0.4.0 JDBC 4.0 compiled with JDK6 on Thu_Jul_03_18:17:32_PDT_2014
#Default Connection Properties Resource
#Mon Jun 10 20:13:06 CEST 2019
$ java -jar ojdbc8.jar
Oracle 19.13.0.0.0 JDBC 4.2 compiled with javac 1.8.0_301 on Sun_Aug_22_02:42:14
_PDT_2021
#Default Connection Properties Resource
#Fri Nov 25 18:27:17 BRT 2022
***** JCE UNLIMITED STRENGTH IS INSTALLED ****


Verificando o driver JDBC do DB2

Execute o comando

# java -cp db2jcc4.jar:db2jcc_license_cu.jar com.ibm.db2.jcc.DB2Jcc -version
IBM Data Server Driver for JDBC and SQLJ 4.14.122

#java -cp db2jcc4.jar:db2jcc_license_cu.jar com.ibm.db2.jcc.DB2Jcc -version
IBM Data Server Driver for JDBC and SQLJ 4.14.137

na technote DB2 JDBC Driver Versions, peguei os valores e comparei com

  • 4.14.122 => v9.7 FP8
  • 4.14.137 => v9.7 FP9

Ver também