#!/bin/kshORATAB=/etc/oratabdb=`egrep -i ":Y|:N" $ORATAB | cut -d ":" -f1`echo "this is db $db"pslist="`ps -ef | grep pmon`"for i in $db ; doecho "$pslist" | grep "ora_pmon_$i" > /dev/null 2> $ORACLE_SIDif (( $? ));thenecho "Oracle Instance - $i: Down "elseecho "Oracle Instance - $i: Up "fidone
通过脚本判断oracle当前状态
最新推荐文章于 2024-08-07 08:45:00 发布