Friday, November 30, 2018

Apache http Failed To Start In R12.1.3 after clone

Hiya Buddies!!!
We would like to share this below error which is very normal during cloning. Here, we are facing this issue because of some OS upgrade/incompatibilities from source to target.
We got the below error while starting the EBS Apps services. While start the application services, we found that apache was getting failed as shown below error log details:

Executing service control script:
/u01/test/inst/test_tech/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)
script returned:
****************************************************
You are running adapcctl.sh version 120.7.12010000.2
Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 204

adapcctl.sh: check the logfile /u01/test/inst/test_tech/logs/appl/admin/log/adapcctl.txt for more information ...
 ==
 opmn id=tech:6208
    0 of 1 processes started.
ias-instance id=test_tech.tech.non-tech.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server/
Error
--> Process (index=1,uid=778177156,pid=9722)
 failed to start a managed process after the maximum retry limit

Log:
 /u01/test/inst/test_tech/logs/ora/10.1.3/opmn/HTTP_Server~1.log
07/15/18-21:08:04 :: adapcctl.sh: exiting with status 204
=============================================================
    /u01/test/inst/test_tech/logs/ora/10.1.3/opmn/HTTP_Server~1.log
18/07/15 21:08:02 Start process
--------
Can't stat executable /u01/test/inst/test_tech/ora/10.1.3/Apache/Apache/bin/.apachectl
18/07/14 03:05:56 Start process
--------
/u01/test/inst/test_tech/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd

Status:
Web Entry Point Services   Oracle HTTP Server test_tech          adapcctl.sh      Failed

Solution:
For this we need to apply a patch in 10.1.3 Oracle Home as shown below:
Please find the below steps:

1. We need to source oracle_home to 10.1.3
[tech:] $cd $ORA_CONFIG_HOME/10.1.3/
$ls -ltr *.env
or we can export ORACLE_HOME to 10.1.3 manually...

2. We need to attached oracle home, this step can be ignored also...
$cd $ORACLE_HOME/oui/bin
$./runInstaller -silent -attachHome -invPtrLoc $INST_TOP/admin/oraInst.loc ORACLE_HOME=/u01/test/apps/tech_st/10.1.3  -ignoreSysPrereqs ORACLE_HOME_NAME=test_10_1_3_home
$$ORACLE_HOME/OPatch/opatch lsinventory -invPtrLoc \  $INST_TOP/admin/oraInst.loc

3. We need to apply this patch 12722501 on 10.1.3 Oracle Home (OPatch).
$cd /u01/patch/OPatch/12722501
#$ORACLE_HOME/OPatch/opatch apply -invPtrLoc $INST_TOP/admin/oraInst.loc
$ORACLE_HOME/OPatch/opatch apply -silent -invPtrLoc \ $INST_TOP/admin/oraInst.loc -ocmrf \ /appdata/delphix/postclone/apps/backup/ocm_response.rsp
Here, -ocmrf is oracle configuration manager response file, it is included with release of opatch.

4. $ORACLE_HOME/OPatch/opatch lsinventory -invPtrLoc \ $INST_TOP/admin/oraInst.loc

5. Run the Apps env file.

6. Run autoconfig on Apps Tier.
$cd $ADMIN_SCRIPTS_HOME
./adautocfg.sh appspass=$APPS_PWD

7. Start the application services.

Note
: This solution is not for all cases if apache is not starting. This is only as per MOS.

Some more useful links:
Regards,
TechOrNontech Team

No comments:

Post a Comment