rootupgrade.sh fails: Failed to perform J2EE (OC4J) Container Resource upgrade due to localhost setting (Doc ID 2217914.1)

Last updated on JANUARY 28, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

Symptoms

rootcrs.pl execution failed while GI upgrade from 11.2.0.3 to 11.2.0.4

 

#rootupgrade.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0.4/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

.

.

Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.

Failed to perform J2EE (OC4J) Container Resource upgrade at /u01/app/11.2.0.4/grid/crs/install/crsconfig_lib.pm line 9323.
/u01/app/11.2.0.4/grid/perl/bin/perl -I/u01/app/11.2.0.4/grid/perl/lib -I/u01/app/11.2.0.4/grid/crs/install /u01/app/11.2.0.4/grid/crs/install/rootcrs.pl execution failed

rootcrs_rachost02.log:

2016-12-03 18:08:16: Running as user grid: /u01/app/11.2.0.4/grid/bin/srvctl enable oc4j
2016-12-03 18:08:16: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0.4/grid/bin/srvctl enable oc4j '
2016-12-03 18:08:17: Removing file /tmp/cca-Taj7S
2016-12-03 18:08:17: Successfully removed file: /tmp/cca-Taj7S
2016-12-03 18:08:17: /bin/su successfully executed

2016-12-03 18:08:17: J2EE (OC4J) Container Resource enable ... passed
2016-12-03 18:08:17: Running as user grid: /u01/app/11.2.0.4/grid/bin/srvctl start oc4j
2016-12-03 18:08:17: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0.4/grid/bin/srvctl start oc4j '
2016-12-03 18:18:34: Removing file /tmp/dca-Taj7T
2016-12-03 18:18:34: Successfully removed file: /tmp/dca-Taj7T
2016-12-03 18:18:34: /bin/su exited with rc=1

2016-12-03 18:18:34: Error encountered in the command /u01/app/11.2.0.4/grid/bin/srvctl start oc4j
> OC4J could not be started
> PRCR-1079 : Failed to start resource ora.oc4j
> CRS-2674: Start of 'ora.oc4j' on 'rachost02' failed
> CRS-2674: Start of 'ora.oc4j' on 'rachost01' failed
> CRS-2632: There are no more servers to try to place resource 'ora.oc4j' on that would satisfy its placement policy
> End Command output
2016-12-03 18:18:34: J2EE (OC4J) Container Resource Start ... failed ...
2016-12-03 18:18:34: Failed to perform J2EE (OC4J) Container Resource upgrade
2016-12-03 18:18:34: Running as user grid: /u01/app/11.2.0.4/grid/bin/cluutil -ckpt -oraclebase /u01/app/grid -writeckpt -name ROOTCRS_NODECONFIG -state FAIL
2016-12-03 18:18:34:

s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0.4/grid/bin/cluutil -ckpt -oraclebase /u01/app/grid -writeckpt -name ROOTCRS_NODECONFIG -state FAIL '

2016-12-03 18:18:35: Removing file /tmp/eca-Paj7U
2016-12-03 18:18:35: Successfully removed file: /tmp/eca-Paj7U
2016-12-03 18:18:35: /bin/su successfully executed

2016-12-03 18:18:35: Succeeded in writing the checkpoint:'ROOTCRS_NODECONFIG' with status:FAIL
2016-12-03 18:18:35: CkptFile: /u01/app/grid/Clusterware/ckptGridHA_rachost02.xml
2016-12-03 18:18:35: Sync the checkpoint file '/u01/app/grid/Clusterware/ckptGridHA_rachost02.xml'
2016-12-03 18:18:35: Sync '/u01/app/grid/Clusterware/ckptGridHA_rachost02.xml' to the physical disk
2016-12-03 18:18:35: ###### Begin DIE Stack Trace ######
2016-12-03 18:18:35: Package File Line Calling
2016-12-03 18:18:35: --------------- -------------------- ---- ----------
2016-12-03 18:18:35: 1: main rootcrs.pl 393 crsconfig_lib::dietrap
2016-12-03 18:18:35: 2: crsconfig_lib crsconfig_lib.pm 9323 main::__ANON__
2016-12-03 18:18:35: 3: crsconfig_lib crsconfig_lib.pm 9167 crsconfig_lib::configNode
2016-12-03 18:18:35: 4: main rootcrs.pl 921 crsconfig_lib::perform_configNode

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