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 nmhserror 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) -lnnz1Requirements 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)
相关文章
相关标签/搜索