biemond-orawls icon indicating copy to clipboard operation
biemond-orawls copied to clipboard

Patching OPatch - question

Open standagh opened this issue 5 years ago • 6 comments

If this is a duplicate please ignore.

There is following line related to insetall WLS PSU 12.2.1.3.180717 Patch 27912627: Before Applying this PSU, please apply Opatch 13.9.4 Patch 28186730

But installation instructions for 28186730 are: Install the software via: java -jar <PATCH_HOME>/6880880/opatch_generic.jar -silent oracle_home=$ORACLE_HOME

So - 2 differencis to regular patches installed via opatch apply:

  • directory inside patch (6880880) is different to patch ID (28186730)
  • installation using java -jar...

Is it possible to apply this patch using puppet orawls module? I didn't found any option how to do it so far.

standagh avatar Jul 20 '18 13:07 standagh

Hi,

Ok it looks like oradb and I need to add opatch upgrade just like in db where this is very common. https://github.com/biemond/biemond-oradb/blob/puppet4_3_data/manifests/opatchupgrade.pp

Thanks

biemond avatar Jul 21 '18 15:07 biemond

We had the same issue. Based on Edwin's tip, Maarten and I have endeavoured to fix this. The result is available in https://github.com/aukebergsma/biemond-orawls/tree/patch-1. For example, you can call this as:

orawls::opatchupgrade {'28186730':
  oracle_product_home_dir => $fwm_directory,
  patch_id                => 6880880,
  patch_file              => 'p28186730_139400_Generic.zip',
  opversion               => '13.9.4.0.0',
  os_user                 => 'oracle',
  os_group                => 'oinstall',
  require                 => Class['orawls::weblogic']
}

Since we are no fluent git / github users, we are no sure if we can create a (correct) pull request (we now have a branch with the commits in a reversed order compared to Edwin's branch). Maybe for the process it might also be better if you try it first.

aukebergsma avatar Aug 07 '18 19:08 aukebergsma

nice, please make a PR, I can always fix it and improve it

biemond avatar Aug 07 '18 19:08 biemond

Ok, we created a PR.

aukebergsma avatar Aug 08 '18 06:08 aukebergsma

Hi Ed and folks,

Is this integrated into orawls already ? I am encountering the same and would like to use the fix instead of writing a script for it.

userMar2017 avatar Jul 26 '19 16:07 userMar2017

ok, I was able to figure it out....I used the following form

Thanks everyone !

orawls::opatchupgrade {'28186730': .. ..

userMar2017 avatar Jul 26 '19 18:07 userMar2017