昨天同事有个紧急部署,12.2C已停产,但客户确定要求就直接部署了,db1主机上执行/u01/app/12.2.0/grid_1/root.sh到最后报错,报错如下:
CRS-2676: Start of 'ora.DATA.dg' on 'db1' succeeded
2023/04/05 12:00:14 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2023/04/05 12:05:49 CLSRSC-614: failed to get the list of configured diskgroups
Died at /u01/app/12.2.0/grid_1/crs/install/oraasm.pm line 2069.
The command '/u01/app/12.2.0/grid_1/perl/bin/perl -I/u01/app/12.2.0/grid_1/perl/lib -I/u01/app/12.2.0/grid_1/crs/install /u01/app/12.2.0/grid_1/crs/install/rootcrs.pl ' execution failed
[root@db1 ~]#
处理办法:
db1主机用root用户重新编译后重跑root.sh:
# cd /u01/app/12.2.0/grid_1/rdbms/lib
# /usr/bin/make -f ins_rdbms.mk client_sharedlib libasmclntsh12.ohso libasmperl12.ohso ORACLE_HOME=/u01/app/12.2.0/grid_1
# /u01/app/12.2.0/grid_1/root.sh
db1完全正常后,db2在执行/u01/app/12.2.0/grid_1/root.sh前先执行
# cd /u01/app/12.2.0/grid_1/rdbms/lib
# /usr/bin/make -f ins_rdbms.mk client_sharedlib libasmclntsh12.ohso libasmperl12.ohso ORACLE_HOME=/u01/app/12.2.0/grid_1