tag:blogger.com,1999:blog-3890970057024318255.post8227661960984112121..comments2024-03-15T08:36:23.954+03:00Comments on Database Administration Tips: dbalarm Script Updated!Mahmmoud ADELhttp://www.blogger.com/profile/15299387537990081025noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3890970057024318255.post-41728857255776657592020-12-09T15:11:45.359+03:002020-12-09T15:11:45.359+03:00Then please hash the following lines in the script...Then please hash the following lines in the script from line 87 to 97:<br /><br /># Check if there is another session of dbalarm is running: [Avoid performance impact]<br /> DBALARMCNT=`ps -ef|grep -v grep|grep -v vi|grep dbalarm|wc -l`<br /> if [ ${DBALARMCNT} -gt 2 ]<br /> then<br /> echo -e "\033[32;5mdbalarm.sh script is currently running by another session.\033[0m"<br /> echo ""<br /> echo "Please make sure the following sessions are completed before running dbalarm script: [ps -ef|grep -v grep|grep -v vi|grep dbalarm]"<br /> ps -ef|grep -v grep|grep -v vi|grep dbalarm.sh<br /> echo "Script Terminated !"<br /> echo<br /> exit<br /> fiMahmmoud ADELnoreply@blogger.comtag:blogger.com,1999:blog-3890970057024318255.post-15923571753520488372020-12-09T10:18:49.806+03:002020-12-09T10:18:49.806+03:00nopnopOraDetectorhttps://www.blogger.com/profile/04299695474976693763noreply@blogger.comtag:blogger.com,1999:blog-3890970057024318255.post-82545526165449949772020-12-07T09:24:37.630+03:002020-12-07T09:24:37.630+03:00Do you get any output when running this command?
p...Do you get any output when running this command?<br />ps -ef|grep -v grep|grep -v vi|grep dbalarmMahmmoud ADELnoreply@blogger.comtag:blogger.com,1999:blog-3890970057024318255.post-65267431957506577802020-12-06T12:02:41.254+03:002020-12-06T12:02:41.254+03:00im getting the below while nothing is currently ru...im getting the below while nothing is currently running<br />Please make sure the following sessions are completed before running dbalarm script: [ps -ef|grep -v grep|grep -v vi|grep dbalarm]<br />OraDetectorhttps://www.blogger.com/profile/04299695474976693763noreply@blogger.com