srvctl config database -d DBNAME DB PRCT-1011 : Failed to run "osdbagrp". Detailed error:



 srvctl config database -d DBNAME 

issue 

 DB PRCT-1011 : Failed to run "osdbagrp". Detailed error:


solution

$ cd $ORACLE_HOME/srvm/lib

cp -p -r config.s config.s.bkp

login to working node and copy the confg.s to not working node

scp -r config.s oracle@dbnode2:/erp_base/app/oracle/product/12.1.0.2/rdbms/lib

 

login to prod again

cd $ORACLE_HOME/srvm/lib

$ make -f ins_srvm.mk iosdbagrp

 

validate:

$ osdbagrp -d

$ osdbagrp -a  

$ osdbagrp -o



Trying to register the database manually, it fails with:

$ srvctl add database -d <dbname> -o <ORACLE_HOME>
PRCR-1006 : Failed to add resource ora.<dbname>.db for uat
PRCT-1011 : Failed to run “osdbagrp”. Detailed error: null

Testing osdbagrp command with the following options, the result shows:

$ osdbagrp -d <<< works
$ osdbagrp -a <<< segmentation fault
$ osdbagrp -o <<< works
When checked in the OS log, /var/log/messages, it reports the following segmentation fault

Feb 11 11:59:30 node1 kernel: osdbagrp[21751]: segfault at 100000000 ip 000000367965eff0 sp 00007fffab30ddf0 error 4 in libc-2.5.so[3679600000+14f000]

Cause:

The binary osdbagrp in the RDBMS ORACLE_HOME/bin is corrupted for some reason.

Solution:

1. Regenerate the osdbagrp binary, as RDBMS software owner

Either relink the osdbagrp executable only (preferred):

$ cd $ORACLE_HOME/srvm/lib
$ make -f ins_srvm.mk iosdbagrp
or alternatively relink all executables, however this will require to shutdown all instances running from this ORACLE_HOME:

$ cd $ORACLE_HOME/bin
$ relink all

2. Copy the osdbagrp binary from other nodes of the cluster if it is working fine on the other nodes

cp /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/osdbagrp /u01/app/oracle/product/12.1.0.2/dbhome_3/bin/osdbagrp

Retry srvctl add database command.


Another Solution:


- Action plan to fix the above issue:

Copy the "osdbagrp" from the $GI_HOME/bin to the $RDBMS_HOME/bin

1) take a back up of $RDBMS_HOME/bin/osdbagrp 
2) copy $GI_HOME/bin/osdbagrp to $RDBMS_HOME/bin/ 
3) try below command again from RDBMS Home 
   osdbagrp -a  --> this should now result asmadmin instead of Memory fault
4) srvctl add database -d VIS1 -o $ORACLE_HOME <-- this works now.


appsdbahelp

17+ years of experience in Oracle Database, Oracle Cloud Infrastructure(OCI), Oracle EBS on Cloud, Oracle E-Business Suite, DevOps tools, Oracle WebLogic, Oracle Application Server, Oracle Access Manager and various Operating System flavors including Redhat Linux, UNIX (Solaris, HP-UX) and Windows. Expert in Oracle9i/10g/11g/12c/19c database administration, upgrade, configuration and tuning. Experience in Oracle E-Business Suite technological stack, including architecture, installation, configuration, maintenance, tuning, cloning and patching procedures. Expert in Oracle Cloud Infrastructure(OCI), Oracle EBS On Cloud and Oracle EBS Cloud Manager Experience with Oracle Cloud Solution and Expert of Oracle ERP/Oracle HCM Cloud deployment Experience in Terraform, JSON and chef cloud infrastructure automation framework Knowledge of ASM, Data Guard, Real Application Cluster, Exadata and Exalogic Knowledge of Oracle Enterprise Manager(OEM) Grid Control, Oracle WebLogic, Oracle Internet Directory, Oracle Access Manager and Apache Ability to analyze problem, develops solutions and bring program/project execution to completion.

Post a Comment

Previous Post Next Post