linux里写了个oracle自动启动的脚本,名:oracle10g,如下:
#!/bin/bash
#
# chkconfig: 35 95 1
# description: init script to start oracle database 10g, TNS listener, EMS, isqlplus

#

# match these values to your environment:export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=test06
export ORACLE_USER=oraclecase $1 in
start)
su - "$ORACLE_USER"<<EOO
lsnrctl start
sqlplus /nolog<<EOS
connect / as sysdba
startup
EOS
emctl start dbconsole
isqlplusctl start
EOO
;;
*)
echo "Usage: oracle10g {start|stop}"
;;
esac执行 service oracle10g start 的时候会报错:
syntax error: unexpected end of file
不知道是哪里出错了,望高人指点,谢谢!