Unable To Apply Oracle Portal 11g Patches Using OPatch Getting Too Many Arguments And OS Undefined Variable (Doc ID 1465506.1)

Last updated on DECEMBER 05, 2016

Applies to:

Portal - Version 11.1.1.4.0 to 11.1.1.6.0 [Release FMW11g]
Information in this document applies to any platform.
Checked for relevance on 04-Jun-2014

Symptoms

Trying to apply a Portal 11g patch, get the following error:

 

oracle@fmw11g:/u01/app/oracle/product/11gMW_PFRD/Oracle_PFRD_Dev/OPatch> $ORACLE_HOME/OPatch/opatch apply $ORACLE_HOME/14058307 -pre "-s portal -p welcome1 -c fmw11g.vm.oracle.com:1521:asdb.vm.oracle.com" -opatch_pre_end
/u01/app/oracle/product/11gMW_PFRD/Oracle_PFRD_Dev/OPatch/opatch: line 386: [: too many arguments

CMD=./ptlpatch.csh -z P14058307_PATCHBUNDLE.zip -s portal -p welcome1 -c fmw11g.vm.oracle.com:1521:asdb.vm.oracle.com.....................................................................
Please set your ORACLE_HOME to your 10.1.2 midtier installation home.
.....................................................................
OS: Undefined variable.

Command invocation returned Error... 'OS: Undefined variable.
', Return Code = 1
Execution of PRE script failed, with return value = 1

Do you want to proceed? [y|n]
n
User Responded with: N
OPatch failed: ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'
OPatch will attempt to restore the system...
Restoring the Oracle Home...

 

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