PRCR-1079 or CRS-2807:Resource 'ora.oc4j' Failed To Start Since /etc/netsvc.conf File Was Empty on AIX

(Doc ID 2273210.1)

Last updated on AUGUST 17, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
IBM AIX on POWER Systems (64-bit)

Symptoms

1. Oc4j fails to start

srvctl start oc4j
OC4J could not be started
PRCR-1079 : Failed to start resource ora.oc4j
CRS-2674: Start of 'ora.oc4j' on 'node1' failed
CRS-2632: There are no more servers to try to place resource 'ora.oc4j' on that would satisfy its placement policy

 2. Debug oc4j

$ export _CRS_PORT==23792
$ export _CRS_STOP_TIMEOUT=120
$ export _CRS_START_TIMEOUT=300
$ export _USR_ORA_ENV="SCRIPT_DEBUG=1"
$ oc4jctl start
Start OC4J
[oc4jctl debug] ... constructed PID file = /u01/app/11.2.0/grid/oc4j/j2ee/home/OC4J_DBWLM_config/.oc4jpid_node1...
[oc4jctl debug] ... OC4J start timeout is 300 seconds
[oc4jctl debug] ... BEGIN_DEBUG [Action=start] ...
[oc4jctl debug] ... updating /u01/app/11.2.0/grid/oc4j/j2ee/home/OC4J_DBWLM_config/system-jazn-data.xml file ...
[oc4jctl debug] ... /u01/app/11.2.0/grid/oc4j/j2ee/home/OC4J_DBWLM_config/system-jazn-data.xml file update succeeded ...
[oc4jctl debug] ... OC4J Container Started (pid=14286902) ...
[oc4jctl debug] ... OC4J Container is not ready (0/20) ...
[oc4jctl debug] ... OC4J Container is not ready (1/20) ...
[oc4jctl debug] ... OC4J Container is not ready (2/20) ...
[oc4jctl debug] ... OC4J Container is not ready (3/20) ...
[oc4jctl debug] ... OC4J Container is not ready (4/20) ...
[oc4jctl debug] ... OC4J Container is not ready (5/20) ...
[oc4jctl debug] ... OC4J Container is not ready (6/20) ...
[oc4jctl debug] ... OC4J Container is not ready (7/20) ...

 3. scriptagent_grid_log

2017-05-02 11:25:06.825: [ora.oc4j][1800] {1:27526:170} [check] Executing action script: /u01/app/11.2.0/grid/bin/oc4jctl[check]
2017-05-02 11:25:06.883: [ora.oc4j][1800] {1:27526:170} [check] Check OC4J
2017-05-02 11:25:11.970: [ora.oc4j][1800] {1:27526:170} [check] /u01/app/11.2.0/grid/bin/oc4jctl.pl: Could not fetch http://localhost:8888/      <<<<<<<
2017-05-02 11:25:11.970: [ora.oc4j][1800] {1:27526:170} [check] Retcode (Container): 500 <<<<<<
2017-05-02 11:25:11.970: [ AGFW][2314] {1:27526:170} ora.oc4j 1 1 state changed from: STARTING to: FAILED
2017-05-02 11:25:11.971: [ AGFW][2314] {1:27526:170} Agent sending last reply for: RESOURCE_START[ora.oc4j 1 1] ID 4098:812
2017-05-02 11:25:11.992: [ AGFW][2314] {1:27526:170} Agent received the message: RESOURCE_CLEAN[ora.oc4j 1 1] ID 4100:860
2017-05-02 11:25:11.992: [ AGFW][2314] {1:27526:170} Preparing CLEAN command for: ora.oc4j 1 1

 4. /etc/hosts

127.0.0.1 localhost.localdomain localhost                     <<<< Entry is correct
xxxxxx
xxxxxx

Changes

Fresh installation of oracle GI 11.2.0.3, Initially root.sh failed to bring up oc4j resource.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms