重要的一点集群启动的说明

渡边不斯凯
Aug 27, 2017 · 1 min read

在linux5 中,随着操作系统启动而自启的RAC会在 /etc/inittab文件增加一行:

h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null

在linux6中,RAC会在 另一个文件/etc/init/oracle-ohasd.conf设置RAC随系统自启的脚本:

[root@dzsw1 ~]# cat /etc/init/oracle-ohasd.conf
start on runlevel [35]
stop on runlevel [!35]
respawn
exec /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
[root@dzsw1 ~]#

在linux7中,文件又变成了/etc/systemd/system/oracle-ohasd.service:

# cat /etc/systemd/system/oracle-ohasd.service
# Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
#
# Oracle OHASD startup

[Unit]
Description=Oracle High Availability Services
After=syslog.target network.target remote-fs.target

[Service]
ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
Type=simple
Restart=always

[Install]
WantedBy=multi-user.target graphical.target


那么也就是说,如果不想RAC随着操作系统重启则需要在以上文件中注销掉相应信息,而改为手动启动(每个节点需要)。

--待续

详细参考:http://www.lunar2013.com/2016/01/11-2%E5%92%8C12c-rac%E7%9A%84ohasd%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B%E5%9C%A8%E4%B8%8D%E5%90%8Clinux%E7%89%88%E6%9C%AC%E7%9A%84%E6%BC%94%E5%8F%98.html

)
渡边不斯凯

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade