免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 12618 | 回复: 4
打印 上一主题 下一主题

linux启动错误日志在哪里? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-06 14:30 |只看该作者 |倒序浏览
我现在装了RHEL4和oracle10.2,其中我做了一个启动脚本dbora在/etc/init.d下,
并且用ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora

现在linux启动到S99dbora服务的时候就死在哪里了,我现在想查看一下错误日志

请问到哪里查看?

论坛徽章:
0
2 [报告]
发表于 2006-02-06 14:39 |只看该作者
/var/log/messages

论坛徽章:
0
3 [报告]
发表于 2006-02-06 22:40 |只看该作者
var/log/messages

论坛徽章:
0
4 [报告]
发表于 2006-02-07 06:48 |只看该作者
把S99dbora先去掉,直接运行/etc/init.d/dbora,可以用了再ln

出错的日志里不一定会有什么用得上的,要看你的dbora是怎么写的了

论坛徽章:
0
5 [报告]
发表于 2006-02-07 11:49 |只看该作者
我上网抄了一个脚本并改成参数
/etc/init.d/dbora
#!/bin/sh
# description: Oracle auto start-stop script.
# chkconfig: - 20 80
#
# 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.
ORA_HOME=/home/oracle/product/10.2.0/db_1
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
    echo "Oracle startup: cannot start"
    exit
fi
case "$1" in
    'start')
        # Start the Oracle databases:
        # The following command assumes that the oracle login
        # will not prompt the user for any values
        su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
        su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
        ;;
    'stop')
        # Stop the Oracle databases:
        # The following command assumes that the oracle login
        # will not prompt the user for any values
        su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
        su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
        ;;
esac


Use chmod to set the privileges to 750:

chmod 750 /etc/init.d/dbora
Link the file into the appropriate run-level script directories:

ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora

在linux已经启动的情况下,我用S99dbora start能够启动oracle服务

现我重新启动linux到dbora服务时,就死在那里
经过查看/var/log/messages日志
发现dbora那一行显示:
dbora:do you want to choose a different one?[N]

请教一下,这个如何查找原因,我自己深得应该不是脚本有问题。
我看linux服务启动的时候后面都有[确定],而我的日志显示是N,
难道是这个引起的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP