PRCT-1011 : Failed to run "osdbagrp". Detailed error: null
此类报错是ebs遇到的相关bug,mos:1928577.1
##这里详细记录的如何解决改问题,按照如下方式就可以解决此类问题
[oracle@dm01dbadm01 lib]$ srvctl add database -d PRODOLD -o /u01/app/oracle/product/11.2.0.4/dbhome_1
PRCR-1006 : Failed to add resource ora.prodold.db for prodold
PRCT-1011 : Failed to run "osdbagrp". Detailed error: null
1.编译文件$ORACLE_HOME/rdbms/lib/config.c内容替换如下
[oracle@dm01dbadm01 lib]$ cat config.c
/* SS_DBA_GRP defines the UNIX group ID for sqldba adminstrative access. */
/* Refer to the Installation and User's Guide for further information. */
/* IMPORTANT: this file needs to be in sync with
rdbms/src/server/osds/config.c, specifically regarding the
number of elements in the ss_dba_grp array.
*/
#define SS_DBA_GRP "dba"
#define SS_OPER_GRP ""
#define SS_ASM_GRP ""
char *ss_dba_grp[] = {SS_DBA_GRP, SS_OPER_GRP, SS_ASM_GRP };
2.获取新的config.o文件
[oracle@dm01dbadm01 lib]$ rm -f $ORACLE_HOME/rdbms/lib/config.o
[oracle@dm01dbadm01 lib]$ make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk $ORACLE_HOME/rdbms/lib/config.o
4.重新生成osdbagrp binary
[oracle@dm01dbadm01 lib]$ cd $ORACLE_HOME/srvm/lib
[oracle@dm01dbadm01 lib]$ make -f ins_srvm.mk iosdbagrp
- Linking Oracle OSDBA Group tool
gcc -o osdbagrp -m64 -z noexecstack -L/u01/app/oracle/product/11.2.0.4/dbhome_1//lib/ -L/u01/app/oracle/product/11.2.0.4/dbhome_1/lib/ -L/u01/app/oracle/product/11.2.0.4/dbhome_1/lib/stubs/ /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/lib/config.o /u01/app/oracle/product/11.2.0.4/dbhome_1/srvm/lib/sprdbgrp.o /u01/app/oracle/product/11.2.0.4/dbhome_1/srvm/lib/pradmgrp.o `cat /u01/app/oracle/product/11.2.0.4/dbhome_1/lib/sysliblist` -lm `cat /u01/app/oracle/product/11.2.0.4/dbhome_1/lib/sysliblist` -lm -lm -L/u01/app/oracle/product/11.2.0.4/dbhome_1/lib
test ! -f /u01/app/oracle/product/11.2.0.4/dbhome_1/bin/osdbagrp || \
mv -f /u01/app/oracle/product/11.2.0.4/dbhome_1/bin/osdbagrp /u01/app/oracle/product/11.2.0.4/dbhome_1/bin/osdbagrp0
mv -f osdbagrp /u01/app/oracle/product/11.2.0.4/dbhome_1/bin/osdbagrp
5.重新添加db到crs中
[oracle@dm01dbadm01 lib]$ srvctl add database -d PRODOLD -o /u01/app/oracle/product/11.2.0.4/dbhome_1
解决如下:prodold已经被添加成功