Sunday 24 June 2018

adstrtal.sh exits with status 150

https://dbissues.blogspot.com/2018/06/adstrtalsh-exits-with-status-150.html

We may get this error when we start all apps tier services.

[oracle@erp scripts]$ ./adstrtal.sh
You are running adstrtal.sh version 120.13
Enter the APPS username: apps
Enter the APPS password:****
Executing service control script: /d01/oracle/PROD/inst/apps/PROD_erp/admin/scripts/adopmnctl.sh
start script returned:
****************************************************
You are running adopmnctl.sh version 120.4
Starting Oracle Process Manager (OPMN) …
adopmnctl.sh: exiting with status 0
adopmnctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_erp/logs/appl/admin/log/adopmnctl.txt
for more information …
.end std out.
.end err out.
****************************************************
Executing service control script:
/d01/oracle/PROD/inst/apps/PROD_erp/admin/scripts/adapcctl.sh start script returned: ****************************************************
You are running adapcctl.sh version 120.6
Starting OPMN managed Oracle HTTP Server (OHS) instance …
adapcctl.sh: exiting with status 150
adapcctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_erp/logs/appl/admin/log/adapcctl.txt
for more information …
.end std out.
.end err out.
****************************************************
Executing service control script: /d01/oracle/PROD/inst/apps/PROD_erp/admin/scripts/adoacorectl.sh start script returned:
****************************************************
You are running adoacorectl.sh version 120.11
Starting OPMN managed OACORE OC4J instance …
adoacorectl.sh: exiting with status 150
adoacorectl.sh: check the logfile
/d01/oracle/PROD/inst/apps/PROD_erp/logs/appl/admin/log/adoacorectl.tx t for more information …
.end std out.
.end err out.
****************************************************
/d01/oracle/PROD/inst/apps/PROD_erp/admin/scripts/adformsctl.sh start script returned: ****************************************************
You are running adformsctl.sh version 120.12
Starting OPMN managed FORMS OC4J instance …
adformsctl.sh: exiting with status 150
adformsctl.sh: check the logfile
/d01/oracle/PROD/inst/apps/PROD_erp/logs/appl/admin/log/adformsctl.txt for more information…

Solution :

Open a new shell and set your apps environment, and then run the following:

$cd $ADMIN_SCRIPTS_HOME adopmnctl.sh stop
Now Check if  it is really down: ps -ef | grep -i opm
Delete the following:
$ rm -fr $INST_TOP/ora/10.1.3/j2ee/oacore/persistence/*
$ rm -fr $INST_TOP/ora/10.1.3/j2ee/oafm/persistence/*
$ rm -fr $INST_TOP/ora/10.1.3/j2ee/forms/persistence/*
Run the following script
$adopmnctl.sh start
Start all applications services and check if it completes with status 0
$adstrtal.sh.sh apps/[appspassword]

No comments:

Post a Comment