Wednesday, September 18, 2013

WebLogic: how to find JDBCDriver version for oracle.jdbc.OracleDriver

These ways don't use the ACTUAL driver being used by WebLogic.

You can simply run WLST, connect(....) to a Managed Server,
cd ('/JDBCServiceRuntime/' + msname + '/JDBCDataSourceRuntimeMBeans/' + dsname)

and you will see interesting stuff:
-r--   DatabaseProductName                          Oracle
-r--   DatabaseProductVersion                       Oracle Database 11g Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
-r--   DeploymentState                              2
-r--   DriverName                                   Oracle JDBC driver
-r--   DriverVersion                      

PS: interestingly, OracleDriver contains a public static final String getDriverVersion()

No comments: