linux 7安装oracle 11g root.sh不成功

root.sh一直卡在:
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2021-05-07 11:11:17.070:
[client(14360)]CRS-2101:The OLR was formatted using version 3.

尝试手动启动has,日志报:
[ohasd(42582)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.

方法1:
mos中有关root.sh执行失败的描述文档为:
Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)
根本原因是linux 7+系统服务管理方式由原来的init变成了systemctl,11g r2默认使用init来管理,导致系统无法启动ohasd 服务.按官方的说法要打补丁patch 18370031。

方法2:
使用root执行以下语句后,重新执行root.sh,两个节点都要操作
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

该方法来自网络,重启后可能会导致ohasd启动失败。

其他方法(未验证):
添加ohas.service服务,然后运行脚本root.sh。
步骤如下:
1. 以root用户创建服务文件
#touch /usr/lib/systemd/system/ohas.service
#chmod 777 /usr/lib/systemd/system/ohas.service
 
2. 将以下内容添加到新创建的ohas.service文件中
[root@rac1 init.d]# cat /usr/lib/systemd/system/ohas.service
[Unit]
Description=Oracle High Availability Services
After=syslog.target
[Service]
ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
Restart=always
[Install]
WantedBy=multi-user.target
 
3. 以root用户运行下面的命令
systemctl daemon-reload
systemctl enable ohas.service
systemctl start ohas.service

其他安装问题:
pdksh安装包:
Missing pdksh-5.2.14 package during Oracle database 11.2.0.4 install on Oracle Linux 7 (Doc ID 1962046.1)
可忽略

compat-libstdc++安装包:
Installation of 12.1.0.2 Oracle Database Server/Client on RHEL 7/OL7 reports pre-requisite package 'compat-libstdc++' missing. (文档 ID 2062336.1)

agent nmhs
error in invoking target 'agent nmhs' of make file ins_emagent.mk while installing Oracle 11.2.0.4 on Linux (文档 ID 2299494.1)

$(MK_EMAGENT_NMECTL) 后增加 -lnnz1
$(MK_EMAGENT_NMECTL) -lnnz1


Requirements for Installing Oracle 11.2.0.4 RDBMS on OL7 or RHEL7 64-bit (x86-64) (Doc ID 1962100.1)
Master Note of Linux OS Requirements for Database Server (Doc ID 851598.1)
上一篇:CentOS 7按照Oracle 11G教程


下一篇:1622. 奇妙序列