#!/bin/sh ORA_HOME=/opt/oracle/product/8.1.7 ORA_OWNER=oracle if [ ! -f $ORA_HOME/bin/dbstart ] then echo "Oracle8i : dbstart not found." exit 1 fi case "$1" in # Start the Oracle INSTANCE start) su - $ORA_OWNER -c $ORA_HOME/bin/dbstart su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start" ;; # Stop the Oracle INSTANCE stop) su - $ORA_OWNER -c $ORA_HOME/bin/dbshut su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" ;; *) echo "Usage: $0 start | stop" esac exit 0