- 论坛徽章:
- 0
|
这是我的 /etc/init.d/dbora
---------------------------
#!/bin/sh
ORA_HOME=/opt/oracle/product/9.2
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
start) # Start Oracle Database and Net8 listener
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart" &
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start" &
su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl start" &
;;
stop) # Stop Oracle Database and Net8 listener
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut" &
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" &
su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl stop" &
exit 1
;;
esac
------------------------------------------
权限如下
-rwxr-xr-x 1 root root 596 Jul 26 16:37 dbora
设置了开机启动和关机关闭
# ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
# ln -s /etc/init.d/dbora /etc/rc4.d/S99dbora
# ln -s /etc/init.d/dbora /etc/rc5.d/S99dbora
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
# ln -s /etc/init.d/dbora /etc/rc6.d/K10dbora
,开机的时候还没有启动,但在/var/log/messages可以找到以下信息
Jul 27 08:52:37 centos34 rc: Starting dbora: succeeded
但就是Oracle没有启动,但用/etc/init.d/dbora start就可以启动了.
请问是什么问题啊?谢谢. |
|