在aix6.1上安装oracle 11g r2 grid单机执行root.sh报错Failed to start the Cluste..

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:496

aix6.1(6106)上安装oracle 11g r2 grid单机执行root.sh报错Failed to start the Clusterware的处理方法

报错日志如下:

#/oracle/app/11.2.0/grid/root.sh
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
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 'system'..
Operation successful.
CRS-4664: Node p550b successfully pinned.
Adding daemon to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2014-05-15 01:59:46.561
[client(7995444)]CRS-2101:The OLR was formatted using version 3.
2014-05-15 01:59:50.126
[client(7995452)]CRS-1001:The OCR was formatted using version 3.
ohasd failed to start at /oracle/app/11.2.0/grid/crs/install/roothas.pl line 330.
/oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/roothas.pl execution failed

同时检查并无相关可参考的日志,在网上和官方查询,基本可以定为是oracle bug,最终解决方法为:
$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force
oracle/app/11.2.0/grid/root.sh
在Adding daemon to inittab的时候,立即打开另一个窗口执行:
dd of=/dev/null if=/tmp/.oracle/npohasd bs=1024 count=1
即可。

但是发现重启操作系统仍然无法启动,只能手工运行。
crsctl start has
同时开窗口执行
dd of=/dev/null if=/tmp/.oracle/npohasd bs=1024 count=1
即可。

如果不能自动启动,解决方法如下:

vi /etc/init/oracle-ohasd.conf
增加:
# Oracle OHASD startup
start on runlevel [35]
stop on runlevel [!35]
respawn
exec /etc/init.d/init.ohasd run >/dev/null 2>&1

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】