单节点安装grid报错roothas.pl line 377, <ALERTLOG> line 4

环境:
OS:Centos 7
Oracle:11.2.0.4

[root@localhost bin]# /u01/grid/grid_home/perl/bin/perl -I/u01/grid/grid_home/perl/lib -I/u01/grid/grid_home/crs/install /u01/grid/grid_home/crs/install/roothas.pl
Using configuration parameter file: /u01/grid/grid_home/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
Adding Clusterware entries to inittab

ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2020-10-23 03:48:26.701:
[client(4858)]CRS-2101:The OLR was formatted using version 3.
2020-10-23 03:48:27.451:
[client(4881)]CRS-1001:The OCR was formatted using version 3.

ohasd failed to start at /u01/grid/grid_home/crs/install/roothas.pl line 377, <ALERTLOG> line 4.


解决方案:
解决方案:
1.首先删除配置:
/u01/grid/grid_home/perl/bin/perl -I/u01/grid/grid_home/perl/lib -I/u01/grid/grid_home/crs/install /u01/grid/grid_home/crs/install/roothas.pl -deconfig -force -verbose
Using configuration parameter file: /u01/grid/grid_home/crs/install/crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Successfully deconfigured Oracle Restart stack


2.重新执行root.sh
[root@localhost ~]#/u01/grid/grid_home/root.sh
[root@localhost ~]#/u01/grid/grid_home/perl/bin/perl -I/u01/grid/grid_home/perl/lib -I/u01/grid/grid_home/crs/install /u01/grid/grid_home/crs/install/roothas.pl

在执行root.sh脚本时出现Adding daemon to inittab的时候,在另一个窗口使用root立即执行以下命令:
dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

(等待root.sh成功执行完毕后可以ctrl+c取消这里的命令)

 

3.Stand-Alone Server 的状态
[root@localhost bin]# cd /u01/grid/grid_home/bin
[root@localhost bin]# ./crsctl check has
CRS-4638: Oracle High Availability Services is online

[root@localhost bin]# ./crsctl check css
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon

[root@localhost bin]# ./crsctl check evm
CRS-4533: Event Manager is online

[root@localhost bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :        152
         Available space (kbytes) :     261968
         ID                       : 2004635789
         Device/File Name         : /u01/grid/grid_home/cdata/localhost/local.ocr
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check succeeded

 

4.系统重启后每次启动的时候无法启动

 

执行如下命令手工启动

 

[root@localhost bin]# ./crsctl start has

 

这个时候一直没有反应 一直在等待

 

 

 

需要在另外一个窗口开启执行如下命令才行

 

[root@localhost ~]# dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

 

posted @   slnngk  阅读(394)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2019-10-23 通过sql查询es数据
2019-10-23 es配置x-pack使用账号密码验证(last单机和集群模式)
点击右上角即可分享
微信分享提示