#!/bin/ksh #********************************************* # Let's exit immediately if the # database is not running . . . #********************************************* check_stat=`ps -ef|grep ${ORACLE_SID}|\ grep pmon|wc -l`; oracle_num=`expr $check_stat` if [ $oracle_num -lt 1 ] then exit 0 fi