这里写了个脚本,可是这个脚本不知道有什么问题,不能自动启动,请高手看看
#!/bin/sh
ORA_HOME=/oracleapp/u01/app/oracle/product/8.1.7 
ORA_OWNER=oracle 
if [ ! -f $ORA_HOME/bin/dbstart ] 
then 
echo "Oracle startup: cannot start" 
exit 
fi 
case "$1" in 
'start') 
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart & 
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl << EOF
start
EOF
;;
'stop')
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut & 
;;
esac