linux下配置oracle自动启动问题?
参照oracle的帮助配置oracle自动启动,以下是出错log的一段。
连接被拒绝,什么原因?该怎么解决?
......
May 24 00:56:38 localhost dbora: + ORACLE_HOME=/usr/ora10g/oracle
May 24 00:56:38 localhost dbora: + ORACLE=oracle
May 24 00:56:38 localhost dbora: +
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/ora10g/oracle/bin
May 24 00:56:38 localhost dbora: ++ hostname
May 24 00:56:38 localhost dbora: + HOST=localhost.localdomain
May 24 00:56:38 localhost dbora: ++ uname
May 24 00:56:39 localhost dbora: + PLATFORM=Linux
May 24 00:56:39 localhost dbora: + export ORACLE_HOME PATH
May 24 00:56:39 localhost dbora: + '[' '!' '' = ORA_DB ']'
May 24 00:56:39 localhost dbora: + '[' Linux = HP-UX ']'
May 24 00:56:39 localhost dbora: + rsh localhost.localdomain -l oracle
/etc/rc5.d/S99dbora start ORA_DB
May 24 00:57:10 localhost dbora: localhost.localdomain: Connection refused
May 24 00:57:10 localhost dbora: + exit
May 24 00:57:10 localhost rc: Starting dbora: failed
附上/etc/init.d/dbora文件
#! /bin/sh -x
#
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for you installation
ORACLE_HOME=/usr/ora10g/oracle
#
# change the value of ORACLE to the login name of the
# oracle owner at your site
#
ORACLE=oracle
PATH=${PATH}ORACLE_HOME/bin
HOST=`hostname`
PLATFORM=`uname`
export ORACLE_HOME PATH
#
if [ ! "$2" = "ORA_DB" ] ; then
if [ "$PLATFORM" = "HP-UX" ] ; then
remsh $HOST -l $ORACLE -n "$0 $1 ORA_DB"
exit
else
rsh $HOST -l $ORACLE $0 $1 ORA_DB
exit
fi
fi
#
LOG=$ORACLE_HOME/startup.log
touch $LOG
chmod a+r $LOG
#
case $1 in
'start')
echo "$0: starting up" >;>; $LOG
date >;>; $LOG
# Start Oracle Net
if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
echo "starting Oracle Net Listener"
$ORACLE_HOME/bin/lsnrctl start >;>; $LOG 2>;&1 &
fi
echo "Starting Oracle databases"
$ORACLE_HOME/bin/dbstart >;>; $LOG 2>;&1 &
;;
'stop')
echo "$0: shutting down" >;>; $LOG
date >;>; $LOG
# Stop Oracle Net
if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
echo "stopping Oracle Net Listener"
$ORACLE_HOME/bin/lsnrctl stop >;>; $LOG 2>;&1 &
fi
echo "stopping Oracle databases"
$ORACLE_HOME/bin/dbshut >;>; $LOG 2>;&1 &
;;
*)
echo "usage: $0 {start|stop}"
exit
;;
esac
#
exit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配过的兄弟帮帮忙