Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
Fixed catbundle script for RAC
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhollenberger committed Jan 12, 2016
1 parent 43f7be1 commit d1e8f96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/psu_rac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
sudo_user: "{{ oracle_user }}"
environment: env
register: dblist
tags: catbundle

- debug: var=dblist.stdout_lines

Expand Down
6 changes: 5 additions & 1 deletion tasks/run_catbundle.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---

- name: 11.2 - Load Modified SQL Files into the Database
shell: export ORACLE_SID={{ item }}; echo exit | {{ oracle_home }}/bin/sqlplus / as sysdba @catbundle.sql psu apply
shell: export ORACLE_SID={{ item }}{{ host_num |default('') }}; echo exit | {{ oracle_home }}/bin/sqlplus -S / as sysdba @catbundle.sql psu apply
sudo: yes
sudo_user: "{{ oracle_user }}"
register: catbundle
environment: env
with_items: dblist.stdout_lines
args:
chdir: "{{ oracle_home }}/rdbms/admin"
run_once: true
when: oracle_version == '11.2.0.4'
tags: catbundle

- name: 12.1 - Load Modified SQL Files into the Database
shell: "export ORACLE_SID={{ item }}; ./datapatch -verbose"
Expand All @@ -20,6 +22,8 @@
with_items: dblist.stdout_lines
args:
chdir: "{{ oracle_home }}/OPatch"
run_once: true
failed_when: datapatch.rc == 1
when: oracle_version == '12.1.0.2'
ignore_errors: true
tags: catbundle

0 comments on commit d1e8f96

Please sign in to comment.