Error: "java.lang.ClassNotFoundException: com.inet.ora.OraDriver"

  • KM476887
  • 28-Jul-2008
  • 28-Jul-2008

Archived Content: This information is no longer maintained and is provided "as is" for your convenience.


When the user runs "Check credential" for oracle database the connection fails


The following error is logged in the probeMgr-patternDebug.log

... [DEBUG] [Thread-<xx>] - connection to ip=<x.x.x.x> by 'sql' protocol failed. error: java.lang.ClassNotFoundException: com.inet.ora.OraDriver


This is a bug since the drivers or jar files needed to run Check credentials is not configured in the probe's environment path. The probe environment path can be located at <DDM DiscoveryProbe install path>\scripts\install\conf\WrapperEnv.conf


Follow the instructions below

1. Add or modify the following lines in WrapperEnv.conf file. This file can be located at  <DDM DiscoveryProbe install path>\scripts\install\conf

# Define jdbc path in the Environment global vars section around line 30
set.jdbc =%root%/lib/collectors/probeManager/discoveryResources/db

# Define Oracle and MSSQL in the Environment Collectors Path section around line 79 and 80

# Add Oracle and MSSQL path in the Manager and Probe's class path as show  in two lines below


2. Restart the probe for changes to take effect

Note: Also added drivers for Microsoft SQL as discussed in Document ID KM476885 - Error: "java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver"