title: Verifying that OJDBC drivers are updated correctly in weblogic?
body: <p>We have upgraded our Oracle database to version 12. We have a Java application running Java 7 on Weblogic 12.1.2.0.0 with a database connection using the driver class name: <code>oracle.jdbc.OracleDriver</code>.</p>
  
  <p>I cannot find any <code>ojdbc7.jar</code> drivers anywhere if I do a search in my weblogic installation folder <code>C:\Oracle\Middleware\Oracle_Home</code> however I can find <code>ojdbc6.jar</code> in the location <code>C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc_11.2.0</code>.</p>
  
  <p>I am trying to upgrade to <code>ojdbc7.jar</code>. According to the site <a href="https://docs.oracle.com/cd/E24329_01/web.1211/e24367/ds_12cdriver.htm#JDBCA636" rel="nofollow noreferrer">Fusion Middleware Configuring and Managing JDBC Data Sources for Oracle WebLogic Server</a> I need to set the following drivers on my class path:</p>
  
  <ul>
  <li>ojdbc7.jar </li>
  <li>ojdbc7_g.jar </li>
  <li>ojdbc7dms.jar </li>
  <li>ons.jar  </li>
  <li>oraclepki.jar     </li>
  <li>orai18n.jar       </li>
  <li>orai18n-mapping.jar </li>
  <li>osdt_cert.jar  </li>
  <li>osdt_core.jar  </li>
  <li>ucp.jar</li>
  </ul>
  
  <p>I downloaded the first few from <a href="http://www.oracle.com/technetwork/database/features/jdbc/jdbc-drivers-12c-download-1958347.html" rel="nofollow noreferrer">here</a> and the rest I found in my weblogic installation folder already. I copied them into a folder <code>D:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7</code>.</p>
  
  <p>And I added to my class path all the jars to:</p>
  
  <pre><code>D:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\commEnv.cmd
  
  set WEBLOGIC_CLASSPATH=C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\ojdbc7.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\ojdbc7_g.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\ojdbc7dms.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\ons.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\oraclepki.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\orai18n.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\orai18n-mapping.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\osdt_cert.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\osdt_core.jar;C:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.jdbc7\ucp.jar;D:\Oracle\Middleware\Oracle_Home\oracle_common\modules\oracle.pki_12.1.2;%JAVA_HOME%\lib\tools.jar;%PROFILE_CLASSPATH%;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar;%CAM_NODEMANAGER_JAR_PATH%
  </code></pre>
  
  <p>I also went to the windows registry of my service and added the same jars to my CLASSPATH cmd line arguments.</p>
  
  <p>If my application starts up I can see the jars is in my classpath. </p>
  
  <p>But how can I verify which ojdbc drivers are actually being used?
  And is this the correct way of updating the drivers?</p>
  
  <p>(Now before people start saying we should not run Java 7 apps anymore... This is a legacy app that will be replaced soon but for now this is what I have to work with :) )</p>