今天有个朋友在AIX平台下面安装11.2.0.2 RAC,AIX系统的版本是61000604,使用了HACMP 6.1双机软件。

     在安装cluster的时候,在2节点执行root.sh的时候报下面的错误:

 
  
  1. # /oracle/app/11.2.0/grid/root.sh 
  2. Running Oracle 11g root script... 
  3.   
  4. The following environment variables are set as
  5. ORACLE_OWNER= grid 
  6. ORACLE_HOME= /oracle/app/11.2.0/grid 
  7.   
  8. Enter the full pathname of the local bin directory: [/usr/local/bin]: 
  9. Copying dbhome to /usr/local/bin ... 
  10. Copying oraenv to /usr/local/bin ... 
  11. Copying coraenv to /usr/local/bin ... 
  12.   
  13. Creating /etc/oratab file... 
  14. Entries will be added to the /etc/oratab file as needed by 
  15. Database Configuration Assistant when a database is created 
  16. Finished running generic part of root script. 
  17. Now product-specific root actions will be performed. 
  18. Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params 
  19. Creating trace directory 
  20. User grid has the required capabilities to run CSSD in realtime mode 
  21. exec(): 0509-036 Cannot load program /oracle/app/11.2.0/grid/bin/ocrconfig.bin because of the following errors: 
  22. 0509-150 Dependent module libskgxn2.so could not be loaded. 
  23. 0509-022 Cannot load module libskgxn2.so. 
  24. 0509-026 System error: A file or directory in the path name does not exist. 
  25. Failed to create or upgrade OLR 
  26. Failed to create or upgrade OLR at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 6744. 
  27. /oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/rootcrs.pl execution failed 

  当时分析原因如下:

1,有部分的包没有安装

2,没有执行rootpre.sh或者没有把grid用户增加到HA的组中。

  在朋友那里了解情况后,是因为他在安装的时候只在1节点上面执行了rootpre.sh,没有在2节点上面执行。

  解决方案:

  在2节点上面执行rootpre.sh脚本,增加按照提示,把grid用户增加到ha组中,

删除后root.sh配置的信息,再次执行root.sh,一切正常。