Get JDBC driver version
There are times you need to get the actual JDBC version (in ojdbc6.jar) for certification or compatibility purposes. The steps below describe how to do this.
export ORACLE_HOME=/u01/app/oracle/middleware
export TMPDIR=/tmp/jdbctemp
mkdir -p ${TMPDIR}
unzip ${ORACLE_HOME}/wlserver_10.3/server/lib/ojdbc6.jar -d ${TMPDIR}
cat ${TMPDIR}/META-INF/MANIFEST.MF | grep "Implementation-Version"
Sample Content of MANIFEST.MF
oracle@oraprod:/tmp/jdbctemp> cat META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_30-b03 (Sun Microsystems Inc.)
Implementation-Vendor: Oracle Corporation
Implementation-Title: JDBC
Implementation-Version: 11.2.0.3.0
Repository-Id: JAVAVM_11.2.0.3.0AS11.1.1.6.0_LINUX.X64_111104
Specification-Title: JDBC
Specification-Version: 4.0
Main-Class: oracle.jdbc.OracleDriver
Quicker Version
unzip -p ${ORACLE_HOME}/wlserver_10.3/server/lib/ojdbc6.jar META-INF/MANIFEST.MF | grep ^Implementation-Version