/etc/init.d/oracleDB01

Hier folgt das Script um die Oracle Instance DB01 zu starten.

(Muss verbesseret werden)

tux01:~# cat > /etc/init.d/oracleDB01 <<EOF
#! /bin/sh
# Start|Stop Oracle Instance DB01 

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=DB01
DESC="Oracle Instance"

case "\$1" in
  start)
        su - oracle -c dbstart
        ;;
  stop)
        su - oracle -c dbshut
        ;;
  restart|force-reload)
        su - oracle -c dbshut
        sleep 5
        su - oracle -c dbstart
        ;;
  *)
        echo "Usage: /etc/init.d/oracleDB01 {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0
EOF



Urs Stotz 2005-09-01