grid软件,执行root.sh脚本失败,解决办法

在安装Oracle Grid 11.2.0.1时,执行root.sh脚本遇到OHASD启动失败的问题。错误原因是Oracle 11.2.0.1仍使用旧的init方式配置启动,而在Red Hat 6.2上已经改为使用upstart。解决方案包括编辑$sGRID_HOME/crs/install/s_crsconfig_lib.pm文件,添加启动OHASD的upstart命令,或在执行root.sh脚本时手动使用/bin/dd命令清理文件,并编辑/etc/init/oracle-ohasd.conf。执行这些步骤后,root.sh脚本成功执行。
摘要由CSDN通过智能技术生成

安装oracle grid软件,安装到执行root.sh脚本是提示错误

错误信息:

CRS-4664: Node db2 successfully pinned.
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
2016-05-26 15:19:08.894
[client(18649)]CRS-2101:The OLR was formatted using version 3.
2016-05-26 15:19:09.480
[client(18676)]CRS-1001:The OCR was formatted using version 3.
[client(18750)]CRS-10001:CRS-6021: No msg for has:crs-6021 [l][unlimited]
[client(18751)]CRS-10001:CRS-6021: No msg for has:crs-6021 [n][65536]


ohasd failed to start at /u01/grid/crs/install/roothas.pl line 358, <ALERTLOG> line 6.

参看日志,没有看出什么大问题

提示:/var/temp/.oracle/npohasd 不存在

参考文档:

需要改变该文件权限

[root@localhost .oracle]# ls -l
total 0
prw-r--r-- 1 grid oinstall 0 Mar 11 21:21 npohasd
[root@localhost .oracle]# chown root:oinstall npohasd 


Then dconfigur crs using :


[root@localhost .oracle]# /u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig -force
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
CRS resources for listeners are still configured
CRS-2613: Could not find resource 'ora.cssd'.
CRS-4000: Command Stop failed, or completed with errors.
CRS-2613: Could not find resource 'ora.cssd'.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4133: Oracle High Availability Services has been stopped.
/u01/app/11.2.0/grid/bin/acfsdriverstate: line 51: /lib/acfstoolsdriver.sh: No such file or directory
/u01/app/11.2.0/grid/bin/acfsdriverstate: line 51: exec: /lib/acfstoolsdriver.sh: cannot execute: No such file or directory
cannot remove path when cwd is /var/tmp/.oracle for /var/tmp/.oracle: at /u01/app/11.2.0/grid/crs/install/s_crsconfig_lib.pm line 1813
Successfully deconfigured Oracle Restart stack


and then run root.sh again: 


[root@localhost .oracle]# /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root script...


The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/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: /u01/app/11.2.0/grid/crs/install/crsconfig_params
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 daemon to inittab
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'error: file /etc/SuSE-release: No such file or directory
'


localhost 2012/03/12 07:30:46 /u01/app/11.2.0/grid/cdata/localhost/backup_20120312_073046.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server


下面的文章为转发的的参考资料

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值