oracle安装中止缺少,11G GRID 安装缺少到libcap.so.1而终止的解决方法

在OEL 6.3上搭建一台11G的RAC测试环境,在最后执行root.sh脚本的时候遇到libcap.so.1: cannot open shared object file: No such file or directory 错误。

如下所示:

[root@rac1 11.2.0]# /g01/oraInventory/orainstRoot.sh

Changing permissions of /g01/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /g01/oraInventory to oinstall.

The execution of the script is complete.

[root@rac1 11.2.0]# /g01/app/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /g01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

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.sh script.

Now product-specific root actions will be performed.

2013-10-10 03:41:35: Parsing the host name

2013-10-10 03:41:35: Checking for super user privileges

2013-10-10 03:41:35: User has super user privileges

Using configuration parameter file: /g01/app/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

/g01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

Failed to create keys in the OLR, rc = 127, 32512

OLR configuration failed

查询了一下,发现是由于缺少包导致的。

在2个节点上重新安装上此包。

[root@rac1 Packages]# rpm -ivh compat-libcap1-1.10-1.x86_64.rpm

warning: compat-libcap1-1.10-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY

Preparing...                ########################################### [100%]

1:compat-libcap1         ########################################### [100%]

删除以前的CRS配置。

[root@rac1 ~]# perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

2013-10-10 04:01:41: Parsing the host name

2013-10-10 04:01:41: Checking for super user privileges

2013-10-10 04:01:41: User has super user privileges

Using configuration parameter file: /g01/app/11.2.0/grid/crs/install/crsconfig_params

PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.gsd is registered

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.ons is registered

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.eons is registered

Cannot communicate with crsd

ADVM/ACFS is not supported on oraclelinux-release-6Server-3.0.2.x86_64

ACFS-9201: Not Supported

Failure at scls_scr_setval with code 8

Internal Error Information:

Category: -2

Operation: failed

Location: scrsearch3

Other: id doesnt exist scls_scr_setval

System Dependent Information: 2

CRS-4544: Unable to connect to OHAS

CRS-4000: Command Stop failed, or completed with errors.

error: package cvuqdisk is not installed

Successfully deconfigured Oracle clusterware stack on this node

再次执行root.sh脚本,又遇到了ohasd failed to start at /g01/app/11.2.0/grid/crs/install/rootcrs.pl line 443 错误。

[root@rac1 ~]# /g01/app/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /g01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

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.sh script.

Now product-specific root actions will be performed.

2013-10-10 04:02:57: Parsing the host name

2013-10-10 04:02:57: Checking for super user privileges

2013-10-10 04:02:57: User has super user privileges

Using configuration parameter file: /g01/app/11.2.0/grid/crs/install/crsconfig_params

LOCAL ADD MODE

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

root wallet

root wallet cert

root cert export

peer wallet

profile reader wallet

pa wallet

peer wallet keys

pa wallet keys

peer cert request

pa cert request

peer cert

pa cert

peer root cert TP

profile reader root cert TP

pa root cert TP

peer pa cert TP

pa peer cert TP

profile reader pa cert TP

profile reader peer cert TP

peer user cert

pa user cert

Adding daemon to inittab

CRS-4124: Oracle High Availability Services startup failed.

CRS-4000: Command Start failed, or completed with errors.

ohasd failed to start: Inappropriate ioctl for device

ohasd failed to start at /g01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.

网上搜了一下,竟然是ORACLE 的BUG。

解决方法竟然是出现pa user cert的时候在另一个窗口不停的执行下面的命令,直到命令执行成功,真是变态啊。

/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

具体可以参考:

阅读(26800) | 评论(0) | 转发(4) |

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值