SRVCTL add database fails with osdbagrp error
This seems to have caused missing ASM group entry in config.c
$ srvctl add database -d ERPDBA -o /erp_base/app/11.2.0 -p +DATA/spfileERPDBA.ora -c RAC -a EBS
PRCR-1006 : Failed to add resource ora.ERPDBA.db for ERPDBA
PRCT-1011 : Failed to run "osdbagrp". Detailed error: null
You can fix it by following below action plan.
$ cd $ORACLE_HOME/rdbms/lib
$ cp config.o config.o.backup
$ rm -f $ORACLE_HOME/rdbms/lib/config.o
$ make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk $ORACLE_HOME/rdbms/lib/config.o
$ cd $ORACLE_HOME/srvm/lib
$ make -f ins_srvm.mk iosdbagrp
$ srvctl add database -d ERPDBA -o /erp_base/app/11.2.0 -p '+DATA/spfileERPDBA.ora' -c RAC -a EBS
$ srvctl add instance -d ERPDBA -i ERPDBA1 -n nizam-rac1
$ srvctl add instance -d ERPDBA -i ERPDBA2 -n nizam-rac2
$ srvctl start database -d ERPDBA
$ srvctl status database -d ERPDBA
Instance ERPDBA1 is running on node nizam-rac1
Instance ERPDBA2 is running on node nizam-rac2
This seems to have caused missing ASM group entry in config.c
$ srvctl add database -d ERPDBA -o /erp_base/app/11.2.0 -p +DATA/spfileERPDBA.ora -c RAC -a EBS
PRCR-1006 : Failed to add resource ora.ERPDBA.db for ERPDBA
PRCT-1011 : Failed to run "osdbagrp". Detailed error: null
You can fix it by following below action plan.
$ cd $ORACLE_HOME/rdbms/lib
$ cp config.o config.o.backup
$ rm -f $ORACLE_HOME/rdbms/lib/config.o
$ make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk $ORACLE_HOME/rdbms/lib/config.o
$ cd $ORACLE_HOME/srvm/lib
$ make -f ins_srvm.mk iosdbagrp
$ srvctl add database -d ERPDBA -o /erp_base/app/11.2.0 -p '+DATA/spfileERPDBA.ora' -c RAC -a EBS
$ srvctl add instance -d ERPDBA -i ERPDBA1 -n nizam-rac1
$ srvctl add instance -d ERPDBA -i ERPDBA2 -n nizam-rac2
$ srvctl start database -d ERPDBA
$ srvctl status database -d ERPDBA
Instance ERPDBA1 is running on node nizam-rac1
Instance ERPDBA2 is running on node nizam-rac2