今天有個朋友在AIX平台下面安裝11.2.0.2 RAC,AIX系統的版本是61000604,使用了HACMP 6.1雙機軟體。
在安裝cluster的時候,在2節點執行root.sh的時候報下面的錯誤:
# /oracle/app/11.2.0/grid/root.sh
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User grid has the required capabilities to run CSSD in realtime mode
exec(): 0509-036 Cannot load program /oracle/app/11.2.0/grid/bin/ocrconfig.bin because of the following errors:
0509-150 Dependent module libskgxn2.so could not be loaded.
0509-022 Cannot load module libskgxn2.so.
0509-026 System error: A file or directory in the path name does not exist.
Failed to create or upgrade OLR
Failed to create or upgrade OLR at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 6744.
/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,一切正常。
本文轉自7343696 51CTO部落格,原文連結:http://blog.51cto.com/luoping/1009427,如需轉載請自行聯系原作者