RAC安裝時出現PRKC-1024 : Invalid netmask: eth0

abstractcyj發表於2018-05-08
Clusterware安裝到最後,執行root.sh時, 始終過不去, 錯誤資訊如下:

PRKC-1024 : Invalid netmask: eth0
add nodeapps -n zbxdb1 -A zbxdb1-vip//eth0 on node=zbxdb1 ... failed
Failed to add  Nodeapps at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9373.
/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

最開始把問題定位在網路卡上。但是修改網路卡配置,ifup, ifdown, systemctl restart network始終未能解決問題

靜下心來,仔細看日誌:
發現有這麼一行:
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params

於是看了一下這個引數檔案:
RAC安裝時出現PRKC-1024 : Invalid netmask: eth0

怪不得老是出現問題:

手動修改引數檔案:
NEW_NODEVIPS='zbxdb1-vip/255.255.255.0/eth0,zbxdb2-vip/255.255.255.0/eth0'
重新執行root.sh
居然成功了

以下是完整錯誤日誌:

[grid@zbxdb1 ~]$ cat /oracle/app/11.2.0/grid/install/root_zbxdb1_2018-05-08_16-46-15.log
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/app/11.2.0/grid
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

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
User ignored Prerequisites during installation
Installing Trace File Analyzer
PRKC-1024 : Invalid netmask: eth0
add nodeapps -n zbxdb1 -A zbxdb1-vip//eth0 on node=zbxdb1 ... failed
Failed to add  Nodeapps at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9373.
/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


參考:http://arumel.com/en/prefix-y-prkc-1024-mascara-de-red-no-valida/

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-2154194/,如需轉載,請註明出處,否則將追究法律責任。

相關文章