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)
©著作权归作者所有:来自51CTO博客作者jsj_007的原创作品,如需转载,请注明出处,否则将追究法律责任

每一份赞赏源于懂得

赞赏

0人进行了赞赏支持

更多相关文章

  1. MSS和MTU的区别是什么?
  2. php之数据库链式操作
  3. Redux从设计到源码
  4. SSD可靠性影响因素、原理和解决方法
  5. 【PHP 面向对象】面向对象(OOP)编程之魔术方法实现重载知识点归
  6. PHP:oop->重载之set/get/call/callStatic,oop事件委托,数据库查询
  7. CPU到底在忙啥?CPU利用率的正确计算方法
  8. 开源APM工具PinPoint部署方法
  9. IDEA最新激活码2021(IDEA2021.6永久激活方法)教程

随机推荐

  1. golang如何创建目录
  2. golang的优势在哪里
  3. golang可以写web吗?
  4. golang结构体怎么判断是否为空
  5. golang判断map是否存在key
  6. 2021年放弃Python选择Go的原因
  7. golang接口可以嵌套吗
  8. 运行golang程序提示进程无法启动
  9. golang mysql操作介绍
  10. golang反向代理无法访问