Using the Properties File of an Existing Patch Plan to Patch the targets

To edit an existing patch plan after it has been created for updating the patch-target pairs or generic information or deployment options, you can follow the steps listed here:

  1. To view the user-editable fields of an existing plan, run the get_patch_plan_data command, and save the output to a properties file as follows:
    $ emcli get_patch_plan_data -name=demo_agent >demo_agent.props
    
    Output:
    name=demo_agent
    description=
    deployment_date=	
    planPrivilegeList=VIEWER:ADMIN:VIEW;OPER:ADMIN:VIEW;DESIGNER:ADMIN:VIEW
    patch.0.patch_id=13426630
    patch.0.release_id=9800371121010
    patch.0.platform_id=2000
    patch.0.language_id=0
    patch.0.target_name=abc1.example.com:1836
    patch.0.target_type=oracle_emd
    patch.1.patch_id=13426630
    patch.1.release_id=9800371121010
    patch.1.platform_id=2000
    patch.1.language_id=0
    patch.1.target_name=abc2.example.com:4473
    patch.1.target_type=oracle_emd
    deploymentOptions.StageLocation=%emd_emstagedir%
    deploymentOptions.AdvancedOPatchOptions=null
    deploymentOptions.StagePatches=true
    
  2. Edit the properties file (demo_agent.props) using any editor. You can change the storage location as follows:
    name=demo_agent
    description=
    deployment_date=	
    planPrivilegeList=VIEWER:ADMIN:VIEW;OPER:ADMIN:VIEW;DESIGNER:ADMIN:VIEW
    patch.0.patch_id=13426630
    patch.0.release_id=9800371121010
    patch.0.platform_id=2000
    patch.0.language_id=0
    patch.0.target_name=abc1.example.com:1836
    patch.0.target_type=oracle_emd
    patch.1.patch_id=13426630
    patch.1.release_id=9800371121010
    patch.1.platform_id=2000
    patch.1.language_id=0
    patch.1.target_name=abc2.example.com:4473
    patch.1.target_type=oracle_emd
    deploymentOptions.StageLocation=%emd_emstagedir%/demo
    deploymentOptions.AdvancedOPatchOptions=null
    deploymentOptions.StagePatches=true
    
  3. To save the patch plan with the new edited data, run set_patch_plan_data command as follows:
    emcli set_patch_plan_data -name=demo_agent -input_file=data:demo_agent.props
    
    Output:
    It is successfully on updating deployment options from the patch plan.
    

    Note:

    If the selected target impacts other targets, then you need to add impact_other_targets with the value "add_all". For example, if one of the agents running on the NFS home is selected for patching, other agent based on the same NFS home will also be impacted while patching, so they are all required to present in the patch plan.

  4. Follow Steps 5, 6, 7, 8, and 9 mentioned in the Creating a New Properties File for Patching Targets to complete the patching process.