Failed to create a peer profile for Oracle Cluster GPnP. gpnptool rc=32512

 这些时间一直在研究11g RAC的安装,一直苦于所有的安装前期检查基本通过,但最后安装完毕时运行CRS配置脚本时总是报错。过程如下:

脚本:

/u01/app/oraInventory/orainstRoot.sh 
/u01/app/11.2.0/grid/root.sh

第一个脚本顺利完成。
[root@dbrac2 ~]# /u01/app/oraInventory/orainstRoot.sh 
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.

第二个脚本则到最后面一直报错。
[root@dbrac2 ~]# /u01/app/11.2.0/grid/root.sh 
Running Oracle 11g root.sh script...
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]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
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.
2012-02-24 22:17:30: Parsing the host name
2012-02-24 22:17:30: Checking for super user privileges
2012-02-24 22:17:30: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Failed to create a peer profile for Oracle Cluster GPnP. gpnptool rc=32512
Creation of Oracle GPnP peer profile failed for dbrac2 at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 4138.

 

重复安装了几次都是出现如此错误。

于是查看安装日志信息:

$ORACLE_HOME/cfgtoollogs/crsconfig/rootcrs_dbrac1.log

 

2012-02-24 22:16:39: gpnptool: rc=32512
2012-02-24 22:16:39: gpnptool output:
/u01/app/11.2.0/grid/bin/gpnptool.bin: error while loading shared libraries: /u01/app/11.2.0/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied  #报错信息

2012-02-24 22:16:39: Failed to create a peer profile for Oracle Cluster GPnP. gpnptool rc=32512
2012-02-24 22:16:39: ###### Begin DIE Stack Trace ######
2012-02-24 22:16:39:     Package         File                 Line Calling   
2012-02-24 22:16:39:     --------------- -------------------- ---- ----------
2012-02-24 22:16:39:  1: main            rootcrs.pl            300 crsconfig_lib::dietrap
2012-02-24 22:16:39:  2: crsconfig_lib   crsconfig_lib.pm     4138 main::__ANON__
2012-02-24 22:16:39:  3: main            rootcrs.pl            435 crsconfig_lib::initialize_local_gpnp
2012-02-24 22:16:39: ####### End DIE Stack Trace #######

 

经过查明原因:

原来是selinux没有关闭。

编辑/etc/sysconfig/selinux:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing   注释掉
SELINUX=disable         增加    
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

除了selinux可能在安装RAC时带来很多麻烦,还有iptables也会带来很多麻烦,所以应该也都关闭。

[root@dbrac1 ~]# chkconfig --level 35 iptables off

 

然后重启即可。

 

posted @ 2013-05-04 17:04  wilson.han  阅读(1497)  评论(0编辑  收藏  举报