ser - $ORACLE_OWNER -c '$ORACLE_HOME/bin/lsnrctl start'
runuser - $ORACLE_OWNER -c '$ORACLE_HOME/bin/dbstart'
runuser - $ORACLE_OWNER -c '$ORACLE_HOME/bin/emctl start dbconsole'
touch ${ORACLE_LOCK}
echo
;;
'stop')
echo -n "shutting down ${ORACLE_DESC}: "
runuser - $ORACLE_OWNER -c '$ORACLE_HOME/bin/lsnrctl stop'
runuser - $ORACLE_OWNER -c '$ORACLE_HOME/bin/dbshut'
rm -f ${ORACLE_LOCK}
echo
;;
'restart')
echo -n "restarting ${ORACLE_DESC}:"
$0 stop
$0 start
echo www.2cto.com
;;
*)
echo "usage: $0 { start | stop | restart }"
exit 1
esac
exit 0
chmod a+x Oracle11g
日后启动 oracle 可以直接执行 Oracle11g start