ORACLE RAC安装过程中,root.sh运行错误

本文记录了在安装Oracle RAC过程中遇到的问题及解决方案。主要问题是由于SELINUX未关闭导致的权限拒绝错误和集群配置冲突。通过关闭SELINUX并清除原有的集群配置后,成功解决了这些问题。

在安装rac的过程中,在第二个节点跑root.sh的时候,遇到了一下错误:

[root@db2 grid]# ./root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:

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.
2015-03-30 20:18:38: Parsing the host name
2015-03-30 20:18:38: Checking for super user privileges
2015-03-30 20:18:38: User has super user privileges
Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
Creating trace directory
/u01/app/grid/bin/ocrconfig.bin: error while loading shared libraries: /u01/app/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
Command return code of 127 (32512) from command: /u01/app/grid/bin/ocrconfig -local -upgrade grid oinstall
Failed to create or upgrade OLR

Cause:

SELINUX没有关闭

Solution:

如何设置SELINUX,查看

http://blog.youkuaiyun.com/tw7752/article/details/44515821

再次运行root.sh

[root@db2 grid]# ./root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:

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.
2015-03-30 20:20:45: Parsing the host name
2015-03-30 20:20:45: Checking for super user privileges
2015-03-30 20:20:45: User has super user privileges
Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
Improper Oracle Clusterware configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Clusterware
run '/u01/app/grid/crs/install/rootcrs.pl -deconfig'
to configure existing failed configuration and then rerun root.sh

[root@db2 grid]# /u01/app/grid/crs/install/rootcrs.pl -deconfig
2015-03-30 20:21:40: Parsing the host name
2015-03-30 20:21:40: Checking for super user privileges
2015-03-30 20:21:40: User has super user privileges
Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
Oracle Clusterware stack is not active on this node
Restart the clusterware stack (use /u01/app/grid/bin/crsctl start crs) and retry
Failed to verify resources

红字部分告诉我们,需要将之前的配置删除:

[root@db2 grid]# /u01/app/grid/crs/install/rootcrs.pl -deconfig -verbose -force
2015-03-30 20:40:34: Parsing the host name
2015-03-30 20:40:34: Checking for super user privileges
2015-03-30 20:40:34: User has super user privileges
Using configuration parameter file: /u01/app/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 centos-release-5-11.el5.centos

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,everything is fine!




评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值