auto start script for oracle .... but ...

auto start script for oracle .... but ...

下面的脚本有这样的错误 高手请看看 ..
: command not found
: command not found
: command not found
: command not found
: command not found
'/oracle: line 15: syntax error near unexpected token `
'/oracle: line 15: `case "$1" in



# !/bin/sh
# chkconfig: 345 51 49
# description: oracle dabase deamons
#

ORA_HOME=/u01/app/oracle/product/8.1.7
ORA_OWNER=oracle

# if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]
# then
# echo "Oracle startup: cannot start"
# exit
# fi

case "$1" in
'start')

echo -n "Starting Oracle: "
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
touch /var/lock/subsys/oracle8i
echo
;;

'stop')
echo -n "Shutting down Oracle: "
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
rm -f /var/lock/subsys/oracle8i
echo
;;

'restart')
echo -n "Restarting Oracle: "
$0 stop
$0 start
echo
;;

*)
echo "Usage: oracle { start | stop | restart }"
exit 1

esac
exit 0      
你是在windows下写的脚本然后传上linux的计算机上的,它不认
在linux下用vi写或用ftp以ASCII形式上传。