Unable To Deploy Patch Plan With "in Place" Option With EMCLI (Doc ID 2083246.1)

Last updated on APRIL 26, 2016

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.3.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.0.3.0 version, Provisioning Framework

Unable to deploy a patch plan with the "in place" option via EMCLI.

For example,

=> Create patch plan named "NNN" manually in the GUI with "in place option", no rollback, ...
=> Use command : emcli get_patch_plan_data -name="NNN" > PROPS to retrieve plan specification in PROPS file
=> Create a new patch plan ("TEST1") with same specification :
emcli create_patch_plan -name="TEST1" -input_file=data:PROPS -impact_other_targets=add_all

Then, the patch plan is created but even if the "deploymentOptions.cloneAndPatch.selected=false" in the input_file, the option remains as "OUT OF PLACE".  Therefore, the analyze patch plan failed since the destination Oracle_Home is not set.

Example of the PROPS file :
___________________________________________________________________
-bash-3.2$ more PROPS
name=TEST1
description=
deployment_date=
planPrivilegeList=

patch.0.patch_id=20299023
patch.0.release_id=600000000009300
patch.0.platform_id=226
patch.0.language_id=0
patch.0.target_name=DEMTS1
patch.0.target_type=oracle_database

deploymentOptions.cloneAndPatch.selected=false
deploymentOptions.StagePatches=true
deploymentOptions.isStageLocationShared=false
deploymentOptions.StageLocation=%emd_emstagedir%
deploymentOptions.AdvancedOPatchOptions=null
deploymentOptions.deploymentProcedure=PATCH_SADB:oracle:true
deploymentOptions.rollbackMode=false
_____________________________________________________________________

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