这里写了个脚本,可是这个脚本不知道有什么问题,不能自动启动,请高手看看
#!/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
#!/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
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货