Link to home
Start Free TrialLog in
Avatar of BSSForests
BSSForestsFlag for Canada

asked on

How to determine what OJDBC driver file is being used when referencing oracle.jdbc.driver.OracleDriver

I administer Websphere and one of the apps I have installed does not have a datasource associated to it.  All of the other applications that are installed use their own datasources and are associated to a certain OJDBC14.jar file.  I am in the process of upgrading this jar file.  I need to find out how Websphere associates an OJDBC driver to the oracle.jdbc.driver.OracleDriver class.  The application in question simply uses the following code to connect the database: jdbc.driverClassName=oracle.jdbc.driver.OracleDriver...connection info.
Is the link between oracle.jdbc.driver.OracleDriver and the OJDBC14.jar driver associated in a CLASSPATH?  If so, how do I modify this in Websphere environment?
Avatar of HonorGod
HonorGod
Flag of United States of America image

Well it sounds like the easy way would be to add "-verbose" option to the java JVM arguments.  This will cause the JVM to write out (to SystemOut.log I believe) the class files that are loaded, and the path to the file in which this particular class file was found.

Do you know how to set JVM options/arguments?
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm happy to hear that you found the information useful.

Thanks for the grade & points.

Good luck & have a great day.