在安装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!