Open talek opened 1 day ago
Hi Alec,
I am not sure but I found possible reasons for this issue.
The main reason for oraswdb_manage_patches_force_opatch_upgrade
is the new prepatch install feature during ORACLE_HOME installation.
We need to update OPatch for the apply of a RU during installation but we can't read the version with opatch version
, because the home is not registered yet.
I force the update in this situation to update the OPatch utility. This is only ecevuted once for each ORACLE_HOME.
It is possible that current_opatch_version
is defined, when the role oraswgi_manage_patches
has been executed during the same play or you try to installe multiple ORACLE_HOMEs during 1 play.
Regards Thorsten
Hi Thorsten,
Ok, it makes sense. Thanks for shedding some light on this.
The scenario I'm using is quite simple: I'm invoking swdb.yml
playbook, trying to install Oracle 19.21 against a rhel9 molecule vm (no multiple oracle homes, just a simple inventory inspired by your example/beginner_patching
). Starting with 19.21, we shouldn't need any workarounds on rhel9, since it's working flawless with the default oraswdb_manage_patches_force_opatch_upgrade: false
anyway. Still, if I want to force OPatch upgrade, I end up with this error which, if I don't miss something, it shouldn't happen. I like the idea of forcing OPatch upgrade, but it should work outside of prepatch install feature as well.
Regards, Alec
Hello,
Reading the logic behind, my understanding is that oraswdb_manage_patches role skips reading OPatch version when "oraswdb_manage_patches_force_opatch_upgrade: true" but later on the OPatch version is needed for some of the subsequent tasks?
Is this a bug? Thanks!
Regards, Alec