Oracle home is already provisioned for the target

This post is also available at: Português

Error when deploying ORACLE_HOME from a golden image, using Fleet Maintenance, I received the error below:

+ emcli db_software_maintenance -performOperation '-name=Deploy GI' -purpose=DEPLOY_SIHA_SOFTWARE -target_type=has -target_list=has_orcltest.localhost -normal_credential=ORACLE_VMS:SYSMAN -privilege_credential=SUDOORACLE:SYSMAN -input_file=data:/dados/PROJETOS/patch_oem/config_files/deploy_has_image_1925.txt
Processing target "has_orcltest.localhost"...
Checking image subscription...
Check image subscription passed.
Checking if target is in non-default location inside the Oracle Home...
        Oracle home is already provisioned for the target [has_orcltest.localhost] for given gold image version at location '/u01/app/19.21.0.0/grid'.
        
ERROR: Operation could not be completed
Verb performOperation unsuccessful
ShellScript

I racked my brains to find a solution to this error, but in the end, all it took was inserting a parameter into the deploy file.

Below is the original file, which was attempted for the first deployment.

[oracle@orcl config_files]$ cat deploy_has_image_1925_error.txt
NEW_ORACLE_HOME_LIST=/u01/app/19.25.0.0/grid
dispatchLoc=/u01/app/temp/dispatchloc
workingDir=/u01
Plaintext

And the new deploy file with the IS_REDEPLOY=true parameter added.

[oracle@orcl config_files]$ cat deploy_has_image_1925_error.txt
NEW_ORACLE_HOME_LIST=/u01/app/19.25.0.0/grid
dispatchLoc=/u01/app/temp/dispatchloc
workingDir=/u01
IS_REDEPLOY=true
Plaintext

And with the parameter added, the deployment was successful.

[oracle@orcl config_files]$ emcli db_software_maintenance -performOperation -name="Deploy GI" -purpose='DEPLOY_SIHA_SOFTWARE' -target_type='has' -target_list=has_orcltest.localhost -normal_credential="ORACLE_VMS:SYSMAN" -privilege_credential="SUDOORACLE:SYSMAN" -input_file="data:/dados/PROJETOS/patch_oem/config_files/deploy_has_image_1925_error.txt"
Processing target "has_orcltest.localhost"...
Checking image subscription...
Check image subscription passed.
Checking if target is in non-default location inside the Oracle Home...
Oracle home target list is E8E5FBCFA382E70C8CF3CE4B02215041
Operation 'Deploy GI' created successfully.

Deploy Grid home software for has_orcltest.localhost can be monitored using:
EMCLI:
  emcli get_instance_status -exec=2CBE7D3476457BD6E0632404080AD840 -details -xml
Browser:
  https://<EM Host>:<EM Port>/em/faces/core-jobs-procedureExecutionTracking?executionGUID=2CBE7D3476457BD6E0632404080AD840

Verb performOperation completed successfully
ShellScript

Reference:

13C : Fleet : How To Use IS_REDEPLOY & ATTACH_HOME Parameters For Re-Deploy/Attach Oracle Home For Issues Like “Oracle home is already provisioned for this target [target_name] for given gold image version at location” (Doc ID 3008380.1)

Previous Article

How to remove ORACLE_HOME from inventory.xml

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *