重要的一点集群启动的说明
在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随着操作系统重启则需要在以上文件中注销掉相应信息,而改为手动启动(每个节点需要)。
--待续
