一切环境都准备OK了,安装到要求执行2个脚本时,报错。。。
[root@daodao grid]# ./root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/grid-11.2/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.
2011-06-04 01:34:02: Parsing the host name
2011-06-04 01:34:02: Checking for super user privileges
2011-06-04 01:34:02: User has super user privileges
Using configuration parameter file: /u01/grid-11.2/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/grid-11.2/grid/crs/install/rootcrs.pl -deconfig'
to configure existing failed configuration and then rerun root.sh
[root@daodao grid]# /u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig
2011-06-04 01:34:17: Parsing the host name
2011-06-04 01:34:17: Checking for super user privileges
2011-06-04 01:34:17: User has super user privileges
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
Oracle Clusterware stack is not active on this node
Restart the clusterware stack (use /u01/grid-11.2/grid/bin/crsctl start crs) and retry
Failed to verify resources
添加新评论3 条评论
2014-02-25 16:54
2011-06-30 11:24
2011-06-04 02:07
1,vi /etc/selinux/config
SELINUX=disabled
2,重新执行root.sh
...
...
...
run '/u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig'
3,执行/u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig' 报错
# /u01/grid-11.2/grid/crs/install/rootcrs.pl -deconfig
2011-06-04 01:52:59: Parsing the host name
2011-06-04 01:52:59: Checking for super user privileges
2011-06-04 01:52:59: User has super user privileges
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
Oracle Clusterware stack is not active on this node
Restart the clusterware stack (use /u01/grid-11.2/grid/bin/crsctl start crs) and retry
Failed to verify resources
4.忽略掉报错删除,来自网上。。。
# /u01/grid-11.2/grid/crs/install/rootcrs.pl -delete -force -verbose
2011-06-04 01:55:03: Parsing the host name
2011-06-04 01:55:03: Checking for super user privileges
2011-06-04 01:55:03: User has super user privileges
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
/u01/grid-11.2/grid/srvm/admin/getcrshome: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
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
/u01/grid-11.2/grid/bin/clsecho.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
/u01/grid-11.2/grid/bin/crsctl.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
/u01/grid-11.2/grid/bin/crsctl.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
You must kill crs processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
Successfully deconfigured Oracle clusterware stack on this node
5,执行root.sh
报错。。。
Using configuration parameter file: /u01/grid-11.2/grid/crs/install/crsconfig_params
/u01/grid-11.2/grid/bin/ocrconfig.bin: error while loading shared libraries: /u01/grid-11.2/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
Command return code of 127 (32512) from command: /u01/grid-11.2/grid/bin/ocrconfig -local -upgrade grid oinstall
Failed to create or upgrade OLR
6,继续google
chcon -t texrel_shlib_t /u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1
7,执行root.sh,提示需要deconfig,执行deconfig
8,在次root.sh
成功。。。
先记录一下。