Software >> Middleware >> Weblogic >> How to use the utils.dbping class within weblogic.jar to perform a db connection test

e.g. for ORACLE_THIN client driver in Unix environment

 

su to the application user

cd to the domain bin directory

. ./setDomainEnv.sh

echo $CLASSPATH

make sure weblogic.jar is in the classpath

java utils.dbping ORACLE_THIN db_username db_password db_host:db_port/dbname