Oracle & MySQL Support

InfraStack-Labs Oracle & MySQL DBA Services help you manage, maintain, and optimize your critical Oracle systems. We deliver 24/7, year-round support with flexible monthly contracts that don’t lock you in.

Please contact me :-

Saturday, February 28, 2015

Monitoring Weblogic Datastore Connectivity

If weblogic application deployed seems to have intermittent issue of datastore errors, We can monitor the datastore ping to find the reason for database connectivity failure using below sample script that I used to monitor my database connectivity from the weblogic server.every 5 mins

.  /home/oracle/
while true()
java -classpath $WL_HOME/server/lib/weblogic.jar utils.dbping ORACLE_THIN apps ******* > /tmp/chknet.out
java -classpath $WL_HOME/server/lib/weblogic.jar utils.dbping ORACLE_THIN apps ******* >> /tmp/chknet.out
grep "**** Success!!! ****" /tmp/chknet.out
if [ $? -ne 0 ] then
cat /tmp/chknet.out | /bin/mail -s "Erec:Issue"
sleep 300


No comments:

Post a Comment

Thanks for you valuable comments !