CRS-2101 The OLR was formatted using version 3

Posted 雅冰石

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CRS-2101 The OLR was formatted using version 3相关的知识,希望对你有一定的参考价值。

一 问题描述

在redhat 7上安装rac grid软件,执行/u01/app/11.2.0.4/grid/root.sh时报错:

CRS-2101 The OLR was formatted using version 3

二 出错原因

因为RHEL 7使用systemd而不是initd运行进程和重启进程,而root.sh通过传统的initd运行ohasd进程。

三 解决办法

单独在linux 7中为ohasd设置一个服务。

步骤如下:
1. 创建服务ohas.service的服务文件并赋予权限
touch /usr/lib/systemd/system/ohas.service

chmod 777 /usr/lib/systemd/system/ohas.service

2. 往ohas.service服务文件添加启动ohasd的相关信息

vi /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. 加载,启动服务

重新加载守护进程

systemctl daemon-reload

设置守护进程开机自动启动

systemctl enable ohas.service

手工启动ohas服务

systemctl start ohas.service
4. 重新运行root.sh脚本

sh root.sh

报错消失

--本篇文章参考自:linux7 安装rac 执行root脚本时候报错

以上是关于CRS-2101 The OLR was formatted using version 3的主要内容,如果未能解决你的问题,请参考以下文章

The request sent by the client was syntactically incorrect.(转载)

A potentially dangerous Request.Form value was detected from the client

A potentially dangerous Request.Form value was detected from the client

搭建RAC 遇到 Failed to create keys in the OLR

Failed to create keys in the OLR, rc = 127, Message:

Ajax使用formdata异步上传文件,报错the request was rejected because no multipart boundary was found