root.sh 脚本执行失败

本文介绍了一次在Oracle Grid Infrastructure (GI)安装过程中出现的问题及其解决方案。由于在两个节点上同时执行了root.sh脚本,导致其中一个节点上的脚本运行失败。文章详细描述了解决步骤,包括使用rootcrs.pl进行回退操作以及重新执行root.sh脚本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装GI 的时候,不小心 将/u01/app/11.2.0/grid/root.sh 脚本在两个节点同时执行,导致该脚本在节点二上运行失败

解决方法:

1、将 /u01/app/11.2.0/grid/root.sh  进行回退:

/u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

[root@rac-test2 asmdisk]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
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

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac-test2'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac-test2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac-test2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac-test2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node


2、重新执行 /u01/app/11.2.0/grid/root.sh   脚本

[root@rac-test2 asmdisk]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g 

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
User ignored Prerequisites during installation
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac-test1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded



 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

huangliang0703

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值