Skip to content

Commit

Permalink
Remove unwanted or conflicting patches from DB
Browse files Browse the repository at this point in the history
Conflicting one-off patches have to be removed before applying opatchauto.
  • Loading branch information
duhlig authored Jul 1, 2019
1 parent 39dfaa0 commit 16920a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions roles/oraswdb-manage-patches/tasks/db-home-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,30 @@
tags:
- ocmconfig

- name: db-opatch | Remove unwanted patches from DB
oracle_opatch:
oracle_home={{ oracle_home_db }}
patch_base={{ oracle_patch_install }}/{{ db_version}}/{{ item.path | default (item.patchid)}}/
patch_id={{item.patchid}}
patch_version={{ item.patchversion |default(omit)}}
opatchauto=False
conflict_check=True
stop_processes={{item.stop_processes |default(False)}}
ocm_response_file={{ ocm_response_file | default(omit)}}
output=verbose
state={{ item.state}}
with_items:
- "{{db_homes_config[dbh.home]['opatch']}}"
become: yes
become_user: "{{ oracle_user }}"
tags:
- apply_patch_db
when:
- apply_patches_db|bool
- db_homes_config[dbh.home]['opatch'] is defined
- item.state == "absent"
register: psuapplym

- name: db-opatch | Manage opatchauto patches for DB (non-gi)
oracle_opatch:
oracle_home={{ oracle_home_db }}
Expand Down

1 comment on commit 16920a8

@duhlig
Copy link
Owner Author

@duhlig duhlig commented on 16920a8 Jul 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I forgot the comment for the above commit. Here it is:

  • Situation:

    • DB 12.1.0.2 EE
    • PSU Jan 19
    • One Off Patch 18633374 (among others)
  • Objective:

    • PSU Apr 19
  • Problem:

    • conflicting patch 18633374 has to be removed before installing PSU Apr 19
  • Suggested solution:

==> Is there a different solution for the problem of conflicting patches?

Please sign in to comment.