>  기사  >  데이터 베이스  >  RedHat AS4 下安装oracle10g

RedHat AS4 下安装oracle10g

WBOY
WBOY원래의
2016-06-07 15:06:551003검색

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 六、设置oracle自动启动与关闭 1、编辑 /etc/oratab,把所有的 instance 的重启动标志设置成 'Y',如: fstest:/oracle/product/10.2.0:Y 2、做一个启动脚本 /etc/init.d/dbora ,如下所示: #!/bin/s

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入

六、设置oracle自动启动与关闭

1、编辑 /etc/oratab,把所有的 instance 的重启动标志设置成 'Y',如:
fstest:/oracle/product/10.2.0:Y
2、做一个启动脚本 /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=/oracle/product/10.2.0/
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/dbstart
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
;;
'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/lsnrctl stop"
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
;;
'restart')
$0 stop
$0 start
;;
esac

3、赋予执行权限
chmod 750 /etc/init.d/dbora
作成以下链接:
ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
执行以下命令:
chkconfig --level 345 dbora on

我在u3下装过N次了,只要你按步骤做应该没有问题



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1479943

  [1] [2] [3] 

RedHat AS4 下安装oracle10g

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.