单节点安装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 @ 2020-10-23 16:15  slnngk  阅读(370)  评论(0编辑  收藏  举报