Java: Obtendo a versão de um driver JDBC

= Verificando o driver JDBC do Oracle =

Execute o comando

Oracle 11.2.0.4.0 JDBC 4.0 compiled with JDK6 on Thu_Jul_03_18:17:32_PDT_2014
 * 1) $ java -jar ojdbc6.jar
 * 1) Default Connection Properties Resource
 * 2) Fri Nov 25 18:25:13 BRT 2022

$ 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 ***** JCE UNLIMITED STRENGTH IS INSTALLED ****
 * 1) Default Connection Properties Resource
 * 2) Fri Nov 25 18:27:17 BRT 2022

= Verificando o driver JDBC do DB2 =

Execute o comando

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

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 =


 * Mais Artigos sobre Java