oracle grid 静默,静默安装grid 中 crs错误

先描述一下报错描述:

/u01/oracle/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, Message:

Failed to write the checkpoint:'' with status:FAIL.Error code is 256

Failed to create keys in the OLR at /u01/oracle/grid/crs/install/crsconfig_lib.pm line 7497.

在grid安装完成之后需要运行root.sh脚本,但是经常会出现上面的错误。进过查证是缺少compat-libcap1-1.10-1。需要安装上compat-libcap1-1.10-1 并删除之前的crs 并重新运行root.sh 应该就可以了。

[root@dgslave oracle]# yum list|grep compat-libca

compat-libcap1.i686 1.10-1 cdrom

compat-libcap1.x86_64 1.10-1 cdrom

[root@dgslave oracle]# yum install compat-libcap1.x86_64 -y

下面删除原来的crs

perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

[root@dgslave oracle]# perl /u01/oracle/grid/crs/install/rootcrs.pl -verbose -deconfig -force

Using configuration parameter file: /u01/oracle/grid/crs/install/crsconfig_params

Usage: srvctl []

commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade

objects: database|service|asm|diskgroup|listener|home|ons

For detailed help on each command and object and its options use:

srvctl -h or

srvctl -h

PRKO-2012 : nodeapps object is not supported in Oracle Restart

CRS-4013: This command is not supported in a single-node configuration.

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

################################################################

# You must kill processes or reboot the system to properly #

# cleanup the processes started by Oracle clusterware #

################################################################

Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall

error: package cvuqdisk is not installed

Successfully deconfigured Oracle clusterware stack on this node

然后重新运行root.sh 就可以了

[root@dgslave grid]# sh root.sh

Check /u01/oracle/grid/install/root_dgslave_2017-07-23_17-00-06.log for the output of root script

[root@dgslave grid]# cat /u01/oracle/grid/install/root_dgslave_2017-07-23_17-00-06.log

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/oracle/grid

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.

To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:

/u01/oracle/grid/perl/bin/perl -I/u01/oracle/grid/perl/lib -I/u01/oracle/grid/crs/install /u01/oracle/grid/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command:

/u01/oracle/grid/crs/config/config.sh

This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

[root@dgslave grid]# /u01/oracle/grid/perl/bin/perl -I/u01/oracle/grid/perl/lib -I/u01/oracle/grid/crs/install /u01/oracle/grid/crs/install/roothas.pl

Using configuration parameter file: /u01/oracle/grid/crs/install/crsconfig_params

User ignored Prerequisites during installation

LOCAL ADD MODE

Creating OCR keys for user 'oracle', privgrp 'dba'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

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

Operation successful.

CRS-4664: Node dgslave successfully pinned.

Adding Clusterware entries to upstart

dgslave 2017/07/23 17:01:03 /u01/oracle/grid/cdata/dgslave/backup_20170723_170103.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值