Page 1 of 1

JDBC related error.

Posted: Thu Aug 17, 2017 12:57 am
by chash
Hi,
To monitor Database and run some customized queries, I have installed Oracle client on nagios core.
Oracle client is working fine and I am able to run SQL query using sqlplus, after installing ODBC.
now want to use a java plugin. and for that JDBC need to be used.
At present I am getting error : Error: JDBC Driver Problem. "java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver"
Javac command completed successfully. (Java script, ojdbc6.jar were kept in same sub directory.)
I did use classpath in command 'java -cp ...' while running java command. Any information in this regard, will be great help.
Thank you.

Re: JDBC related error.

Posted: Thu Aug 17, 2017 9:57 am
by mcapra
If you can share the specific plugin you are using, where you found it, and what documentation you followed, that would be massively helpful in beginning to troubleshoot this. However, this is not strictly a Nagios related problem; It's a Java problem.

Literally the only reason you'd be seeing that error is if oracle.jdbc.driver.OracleDriver is not included in your classpath at build/run time.

Re: JDBC related error.

Posted: Thu Aug 17, 2017 4:50 pm
by tmcdonald
Thanks for the assist, @mcapra! OP, let us know if you need further assistance.