chkconfig只管启动不管关闭?

还是数据库自动启动停止的问题。
上次配置了数据库自动启动停止后,一次重启操作系统,查看$ORACLE_HOME/shutdown.log,发现并没有对应的数据库停止记录,接着检查alert,确实有crash recovery的内容,说明上次系统关闭时数据库没有正常关闭。

再接着查看/etc/rc.d/rc5.d,只有S99dbora,而没有K10dbora。
于是手动添加了K10dbora。想了想,觉得还是将信将疑,还是再验证一下。

[root@localhost rc5.d]# pwd
/etc/rc.d/rc5.d
[root@localhost rc5.d]# ls -l *dbora
lrwxrwxrwx 1 root root 17 Dec 27 16:40 K10dbora -> /etc/init.d/dbora
lrwxrwxrwx 1 root root 15 Dec 27 16:36 S99dbora -> ../init.d/dbora
上面以绝对路径链接显示的就是我手动添加的,至于为何单这个显示绝对路径以及其影响不得而知。

先删除,再添加。
[root@localhost rc5.d]# /sbin/chkconfig --del dbora
[root@localhost rc5.d]# ls -l *dbora
ls: *dbora: No such file or directory
[root@localhost rc5.d]# /sbin/chkconfig --add dbora
[root@localhost rc5.d]# ls -l *dbora
lrwxrwxrwx 1 root root 15 Dec 27 16:46 S99dbora -> ../init.d/dbora
可以看到,使用chkconfig --add 添加后,还是只有启动项,没有停止项。

dbora中关于chkconfig的配置信息是存在的。
[root@localhost rc5.d]# head /etc/init.d/dbora
#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.

[root@localhost rc5.d]#

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24131851/viewspace-682670/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24131851/viewspace-682670/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值