Wednesday, November 11, 2009

oafm,forms and oacore not starting up after IP adress change

Issue:
oafm, forms and oacore not starting up after IP adress change of the Oracle Applications Server

Error from the logs:

adformsctl.sh or adformsctl..cmd: exiting with status 204
adoafmctl.sh or adoafmctl.cmd: exiting with status 204
adoacorectl.sh or adoacorectl.cmd: exiting with status 204


Cause

The OC4J lock files contains the IP adress, after the ip adress change the lock files includes the wrong Ip adress which caused the OJ4J to fail

Steps to resolve the issue:
1 - Be sure to have a valid Backup
2 - open a new shell and set your apps environment
3 - cd
4 - adopmnctl.sh stop or adopmnctl.cmd stop for windows

5 - check if it is really down: ps -ef | grep grep opm for windows check if all java.exe processes are gone.

6 - 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/*

for windows

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\*

Use use the explorer validate if they are deleted for windows.

6 - execute autoconfig at the Application Tier
7 - start all Applications Services
8 - check if the issue has been resolved: adapcctl.sh status or for windows adapcctl.cmd status

For more check the Metalink Doc.Id. 412980.1

No comments:

Post a Comment

Command to do active duplicate for Oracle Database

1. First login to target server 2. Validate tns connectivity between Source DB and Target DB 3. Prepare and validate space availability 4. S...