script to start Enterprise Manager for all ORACLE Instances listed in ORATAB:
ORATAB=/etc/oratab
cat $ORATAB | while read LINE
do
case $LINE in
\#*) ;; #comment-line in oratab
*)
ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
if [ "$ORACLE_SID" = '*' ] ; then
# same as NULL SID - ignore this entry
ORACLE_SID=""
continue
fi
# Proceed only if last field is 'Y'.
if [ "`echo $LINE | awk -F: '{print $NF}' -`" = "Y" ] ; then
export ORACLE_SID
echo '***** Starting EM for ORACLE_SID='$ORACLE_SID' *****'
echo 'emctl start dbconsole'
fi
esac
done
при желании можно запихнуть в dbstart..