From e272f49ab18cd12e463514c19c1a20a16b07481a Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Tue, 28 Nov 2023 11:44:33 +0000 Subject: [PATCH 1/9] Sep 2023 19c RU patching --- ansible/roles/oracle-19c/defaults/main.yml | 4 +- .../oracle-19c/tasks/oracle_ru_patching.yml | 53 +++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml diff --git a/ansible/roles/oracle-19c/defaults/main.yml b/ansible/roles/oracle-19c/defaults/main.yml index 1a4d45a27..1fe11bc2c 100644 --- a/ansible/roles/oracle-19c/defaults/main.yml +++ b/ansible/roles/oracle-19c/defaults/main.yml @@ -8,10 +8,12 @@ oracle_install_group: oinstall oracle_asmlib_rpm: oracleasmlib-2.0.17-1.el8.x86_64.rpm oracle_prereq_rpm: oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm oracleasm_support_rpm: oracleasm-support-2.1.12-1.el8.x86_64.rpm -opatch: p6880880_190000_Linux-x86-64-12.2.0.1.37.zip +opatch_version: 12.2.0.1.37 +opatch: "p6880880_190000_Linux-x86-64-{{ opatch_version }}.zip" oracle_combo_patch: 35058172 oracle_release_update: 35037840 oracle_ojvm_patch: 35050341 +bkpdate: "{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}" stage: "{{ artefact_dir }}/stage" temp: "{{ artefact_dir }}/temp" diff --git a/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml b/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml new file mode 100644 index 000000000..de28a74fe --- /dev/null +++ b/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml @@ -0,0 +1,53 @@ +--- +- name: Get OPatch Version + ansible.builtin.shell: | + export ORACLE_HOME={{ grid_home }} + {{ grid_home }}/OPatch/opatch version | head -1 | cut -d' ' -f3 | grep {{ opatch_version }} | wc -l + register: grid_required_version_check + +- name: Upgrade OPatch + block: + + - name: Backup previous OPatch folder + ansible.builtin.archive: + path: "{{ item }}/OPatch" + dest: "{{ item }}/OPatch_{{ bkpdate }}.zip" + format: zip + remove: yes + owner: oracle + group: oinstall + loop: + - "{{ database_home }}" + - "{{ grid_home }}" + + - name: Download Oracle 19c PSU patch and OPatch files from S3 bucket + amazon.aws.aws_s3: + bucket: "{{ artefacts_s3_bucket_name }}" + object: "{{ artefacts_s3_bucket_path }}/{{ item }}" + dest: "{{ stage }}/{{ item }}" + mode: get + overwrite: latest + loop: + - "{{ psu_patch }}" + - "{{ opatch }}" + + - name: Unarchive Opatch + ansible.builtin.unarchive: + src: "{{ stage }}/{ opatch_zip }}" + dest: "{{ item }}" + owner: oracle + group: oinstall + mode: u=rwx,g=rx,o=rx + remote_src: yes + loop: + - "{{ database_home }}" + - "{{ grid_home }}" + + #block + when: grid_required_version_check == "0" + become: true + become_user: "{{ oracle_install_user }}" + environment: + ORACLE_HOME: "{{ grid_home }}" + PATH: "{{ grid_home }}/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin" + From 6cafd4dd867230e3a960bf379d762dd927bea300 Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Wed, 29 Nov 2023 13:24:03 +0000 Subject: [PATCH 2/9] Updated for PSU patch upgrade --- ...nt_name_corporate_staff_rostering_test.yml | 1 + ...ent_name_nomis_combined_reporting_test.yml | 1 + .../environment_name_oasys_test.yml | 1 + ansible/roles/oracle-19c/defaults/main.yml | 22 ++++++++++++++----- .../oracle-19c/tasks/download_software.yml | 2 +- ansible/roles/oracle-19c/tasks/get_facts.yml | 8 +++++++ .../oracle-19c/tasks/install_database.yml | 2 +- .../roles/oracle-19c/tasks/install_grid.yml | 2 +- ansible/roles/oracle-19c/tasks/main.yml | 5 +++++ .../oracle-19c/templates/db_install.sh.j2 | 2 +- .../oracle-19c/templates/grid_install.sh.j2 | 2 +- 11 files changed, 37 insertions(+), 11 deletions(-) diff --git a/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml b/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml index 1548adae2..e974350d2 100644 --- a/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml +++ b/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml @@ -12,6 +12,7 @@ oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle db_env: ORACLE_HOME: "{{ database_home }}" PATH: "{{ database_home }}/bin:{{ oracle_path }}" +oracle_ru_patch: APR2023 # OEM server OMS_SERVER: test-oem-a.hmpps-oem.hmpps-test.modernisation-platform.internal diff --git a/ansible/group_vars/environment_name_nomis_combined_reporting_test.yml b/ansible/group_vars/environment_name_nomis_combined_reporting_test.yml index 288b8ef55..39ba0e7a7 100644 --- a/ansible/group_vars/environment_name_nomis_combined_reporting_test.yml +++ b/ansible/group_vars/environment_name_nomis_combined_reporting_test.yml @@ -12,6 +12,7 @@ oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle db_env: ORACLE_HOME: "{{ database_home }}" PATH: "{{ database_home }}/bin:{{ oracle_path }}" +oracle_ru_patch: APR2023 # OEM server OMS_SERVER: test-oem-a.hmpps-oem.hmpps-test.modernisation-platform.internal diff --git a/ansible/group_vars/environment_name_oasys_test.yml b/ansible/group_vars/environment_name_oasys_test.yml index db36381b9..f84c845c6 100644 --- a/ansible/group_vars/environment_name_oasys_test.yml +++ b/ansible/group_vars/environment_name_oasys_test.yml @@ -11,6 +11,7 @@ oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle db_env: ORACLE_HOME: "{{ database_home }}" PATH: "{{ database_home }}/bin:{{ oracle_path }}" +oracle_ru_patch: APR2023 ords_trusted_origins: oasys-test: "https://t2.oasys.service.justice.gov.uk/eor,https://t2-int.oasys.service.justice.gov.uk/eor,http://localhost:8080/eor" diff --git a/ansible/roles/oracle-19c/defaults/main.yml b/ansible/roles/oracle-19c/defaults/main.yml index 1fe11bc2c..8f92b3dbc 100644 --- a/ansible/roles/oracle-19c/defaults/main.yml +++ b/ansible/roles/oracle-19c/defaults/main.yml @@ -8,17 +8,11 @@ oracle_install_group: oinstall oracle_asmlib_rpm: oracleasmlib-2.0.17-1.el8.x86_64.rpm oracle_prereq_rpm: oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm oracleasm_support_rpm: oracleasm-support-2.1.12-1.el8.x86_64.rpm -opatch_version: 12.2.0.1.37 -opatch: "p6880880_190000_Linux-x86-64-{{ opatch_version }}.zip" -oracle_combo_patch: 35058172 -oracle_release_update: 35037840 -oracle_ojvm_patch: 35050341 bkpdate: "{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}" stage: "{{ artefact_dir }}/stage" temp: "{{ artefact_dir }}/temp" patch: "{{ stage }}/patches" -psu_patch: p35058172_190000_Linux-x86-64.zip oracle_home: "{{ app_dir }}/oracle/product/19c" oracle_inventory: "{{ app_dir }}/oraInventory" oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin # this is to avoid having to source oracle environment variables @@ -64,3 +58,19 @@ oracle_asm_flash_disks: oracle_externaljob_rdbms_path: "{{ oracle_home }}/db_1/rdbms/admin" oracle_externaljob_file: externaljob.ora + + +oracle_patch_details: + APR2023: + opatch_version: 12.2.0.1.37 + oracle_combo_patch: 35058172 + oracle_release_update: 35037840 + oracle_ojvm_patch: 35050341 + psu_patch: p35058172_190000_Linux-x86-64.zip + + SEP2023: + opatch_version: 12.2.0.1.37 + oracle_combo_patch: 35742441 + oracle_release_update: 35642822 + oracle_ojvm_patch: 35648110 + psu_patch: p35058172_190000_Linux-x86-64.zip \ No newline at end of file diff --git a/ansible/roles/oracle-19c/tasks/download_software.yml b/ansible/roles/oracle-19c/tasks/download_software.yml index 31449f8b0..1311814e0 100644 --- a/ansible/roles/oracle-19c/tasks/download_software.yml +++ b/ansible/roles/oracle-19c/tasks/download_software.yml @@ -36,5 +36,5 @@ loop: - "{{ db_software }}" - "{{ grid_software }}" - - "{{ psu_patch }}" + - "{{ oracle_patch.psu_patch }}" - "{{ opatch }}" diff --git a/ansible/roles/oracle-19c/tasks/get_facts.yml b/ansible/roles/oracle-19c/tasks/get_facts.yml index dc1745f99..5196d6ef1 100644 --- a/ansible/roles/oracle-19c/tasks/get_facts.yml +++ b/ansible/roles/oracle-19c/tasks/get_facts.yml @@ -21,3 +21,11 @@ asmmonitorpassword: "{{ lookup('password','/dev/null chars=ascii_lowercase,ascii_uppercase,digits length=16')}}" when: oracle_19c_asm_passwords_delius_workaround + +- name: Oracle patch variable + set_fact: + oracle_patch: "{{ oracle_patch_details[ oracle_ru_patch ] }}" + +- name: Oracle patch variable + set_fact: + opatch: "p6880880_190000_Linux-x86-64-{{ oracle_patch.opatch_version }}.zip" diff --git a/ansible/roles/oracle-19c/tasks/install_database.yml b/ansible/roles/oracle-19c/tasks/install_database.yml index 37cd02cb7..234bdfc1a 100644 --- a/ansible/roles/oracle-19c/tasks/install_database.yml +++ b/ansible/roles/oracle-19c/tasks/install_database.yml @@ -38,7 +38,7 @@ - name: Unzip database psu patch software ansible.builtin.unarchive: - src: "{{ stage }}/{{ psu_patch }}" + src: "{{ stage }}/{{ oracle_patch.psu_patch }}" dest: "{{ stage }}/psu" owner: "{{ oracle_install_user }}" group: "{{ oracle_install_group }}" diff --git a/ansible/roles/oracle-19c/tasks/install_grid.yml b/ansible/roles/oracle-19c/tasks/install_grid.yml index 4b2bfa039..7b0c6bee6 100644 --- a/ansible/roles/oracle-19c/tasks/install_grid.yml +++ b/ansible/roles/oracle-19c/tasks/install_grid.yml @@ -38,7 +38,7 @@ - name: Unzip grid psu patch software ansible.builtin.unarchive: - src: "{{ stage }}/{{ psu_patch }}" + src: "{{ stage }}/{{ oracle_patch.psu_patch }}" dest: "{{ stage }}/psu" owner: "{{ oracle_install_user }}" group: "{{ oracle_install_group }}" diff --git a/ansible/roles/oracle-19c/tasks/main.yml b/ansible/roles/oracle-19c/tasks/main.yml index 9a21ecf7c..3ec540cf8 100644 --- a/ansible/roles/oracle-19c/tasks/main.yml +++ b/ansible/roles/oracle-19c/tasks/main.yml @@ -45,3 +45,8 @@ - ec2provision - oracle_19c_install - oracle_19c_post_install + +- import_tasks: post_install_tasks.yml + tags: + - oracle_19c_RU_upgrade + - never diff --git a/ansible/roles/oracle-19c/templates/db_install.sh.j2 b/ansible/roles/oracle-19c/templates/db_install.sh.j2 index 2a5664baf..ddeb1a147 100644 --- a/ansible/roles/oracle-19c/templates/db_install.sh.j2 +++ b/ansible/roles/oracle-19c/templates/db_install.sh.j2 @@ -4,5 +4,5 @@ export TMP={{ temp }} export TMPDIR={{ temp }} export CV_ASSUME_DISTID=OL7.6 echo "# Installing Oracle 19c database software" -"{{ database_home }}/runInstaller" -silent -waitforcompletion -ignorePrereqFailure -responseFile {{ stage }}/{{ database_response_file }} -applyRU "{{ stage }}/psu/{{ oracle_combo_patch }}/{{ oracle_release_update }}" -applyOneOffs "{{ stage }}/psu/{{ oracle_combo_patch }}/{{ oracle_ojvm_patch }}" || true +"{{ database_home }}/runInstaller" -silent -waitforcompletion -ignorePrereqFailure -responseFile {{ stage }}/{{ database_response_file }} -applyRU "{{ stage }}/psu/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_release_update }}" -applyOneOffs "{{ stage }}/psu/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_ojvm_patch }}" || true exit 0 diff --git a/ansible/roles/oracle-19c/templates/grid_install.sh.j2 b/ansible/roles/oracle-19c/templates/grid_install.sh.j2 index 881822ad1..b3cc694a8 100644 --- a/ansible/roles/oracle-19c/templates/grid_install.sh.j2 +++ b/ansible/roles/oracle-19c/templates/grid_install.sh.j2 @@ -4,5 +4,5 @@ export TMP={{ temp }} export TMPDIR={{ temp }} export CV_ASSUME_DISTID=OL7.6 echo "# Installing Oracle 19c grid Infrastructure" -"{{ grid_home }}/gridSetup.sh" -silent -waitforcompletion -ignorePrereqFailure -responseFile {{ stage }}/{{ grid_response_file }} -applyRU "{{ stage }}/psu/{{ oracle_combo_patch }}/{{ oracle_release_update }}" +"{{ grid_home }}/gridSetup.sh" -silent -waitforcompletion -ignorePrereqFailure -responseFile {{ stage }}/{{ grid_response_file }} -applyRU "{{ stage }}/psu/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_release_update }}" exit 0 \ No newline at end of file From 4ac710906451ffe71d755f64cdaef7a3daa94155 Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Wed, 29 Nov 2023 14:30:54 +0000 Subject: [PATCH 3/9] Added get-facts.yml before download of software --- ansible/roles/oracle-19c/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible/roles/oracle-19c/tasks/main.yml b/ansible/roles/oracle-19c/tasks/main.yml index 3ec540cf8..469109d7b 100644 --- a/ansible/roles/oracle-19c/tasks/main.yml +++ b/ansible/roles/oracle-19c/tasks/main.yml @@ -3,6 +3,12 @@ tags: - always +- import_tasks: get_facts.yml + tags: + - ec2provision + - oracle_db_get_facts + - oracle_19c_install_grid + - import_tasks: download_software.yml tags: - ec2provision @@ -10,12 +16,6 @@ - oracle_19c_download - oracle_19c_download_software -- import_tasks: get_facts.yml - tags: - - ec2provision - - oracle_db_get_facts - - oracle_19c_install_grid - - import_tasks: pre_install_tasks.yml tags: - ec2provision From f8eb4108c60fe61ff55c5f62b737ec0be70aea25 Mon Sep 17 00:00:00 2001 From: Dominic Robinson Date: Fri, 1 Dec 2023 16:09:48 +0000 Subject: [PATCH 4/9] Ensure patch stuff works across AMI and EC2s --- ansible/roles/oracle-19c/defaults/main.yml | 6 +++++- ansible/roles/oracle-19c/tasks/download_patch.yml | 10 ++++++++++ .../roles/oracle-19c/tasks/download_software.yml | 1 - ansible/roles/oracle-19c/tasks/get_facts.yml | 8 -------- ansible/roles/oracle-19c/tasks/main.yml | 15 +++++++++++---- 5 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 ansible/roles/oracle-19c/tasks/download_patch.yml diff --git a/ansible/roles/oracle-19c/defaults/main.yml b/ansible/roles/oracle-19c/defaults/main.yml index 8f92b3dbc..86253f997 100644 --- a/ansible/roles/oracle-19c/defaults/main.yml +++ b/ansible/roles/oracle-19c/defaults/main.yml @@ -59,6 +59,7 @@ oracle_asm_flash_disks: oracle_externaljob_rdbms_path: "{{ oracle_home }}/db_1/rdbms/admin" oracle_externaljob_file: externaljob.ora +oracle_ru_patch: SEP2023 # override this in group_vars oracle_patch_details: APR2023: @@ -73,4 +74,7 @@ oracle_patch_details: oracle_combo_patch: 35742441 oracle_release_update: 35642822 oracle_ojvm_patch: 35648110 - psu_patch: p35058172_190000_Linux-x86-64.zip \ No newline at end of file + psu_patch: p35058172_190000_Linux-x86-64.zip + +oracle_patch: "{{ oracle_patch_details[ oracle_ru_patch ] }}" +opatch: "p6880880_190000_Linux-x86-64-{{ oracle_patch.opatch_version }}.zip" diff --git a/ansible/roles/oracle-19c/tasks/download_patch.yml b/ansible/roles/oracle-19c/tasks/download_patch.yml new file mode 100644 index 000000000..b0f21958b --- /dev/null +++ b/ansible/roles/oracle-19c/tasks/download_patch.yml @@ -0,0 +1,10 @@ +--- +- name: Download Oracle 19c patches from S3 bucket + amazon.aws.aws_s3: + bucket: "{{ artefacts_s3_bucket_name }}" + object: "{{ artefacts_s3_bucket_path }}/{{ item }}" + dest: "{{ stage }}/{{ item }}" + mode: get + overwrite: latest + loop: + - "{{ oracle_patch.psu_patch }}" diff --git a/ansible/roles/oracle-19c/tasks/download_software.yml b/ansible/roles/oracle-19c/tasks/download_software.yml index 1311814e0..9d22abcd3 100644 --- a/ansible/roles/oracle-19c/tasks/download_software.yml +++ b/ansible/roles/oracle-19c/tasks/download_software.yml @@ -36,5 +36,4 @@ loop: - "{{ db_software }}" - "{{ grid_software }}" - - "{{ oracle_patch.psu_patch }}" - "{{ opatch }}" diff --git a/ansible/roles/oracle-19c/tasks/get_facts.yml b/ansible/roles/oracle-19c/tasks/get_facts.yml index 5196d6ef1..dc1745f99 100644 --- a/ansible/roles/oracle-19c/tasks/get_facts.yml +++ b/ansible/roles/oracle-19c/tasks/get_facts.yml @@ -21,11 +21,3 @@ asmmonitorpassword: "{{ lookup('password','/dev/null chars=ascii_lowercase,ascii_uppercase,digits length=16')}}" when: oracle_19c_asm_passwords_delius_workaround - -- name: Oracle patch variable - set_fact: - oracle_patch: "{{ oracle_patch_details[ oracle_ru_patch ] }}" - -- name: Oracle patch variable - set_fact: - opatch: "p6880880_190000_Linux-x86-64-{{ oracle_patch.opatch_version }}.zip" diff --git a/ansible/roles/oracle-19c/tasks/main.yml b/ansible/roles/oracle-19c/tasks/main.yml index 469109d7b..cbe05c0a4 100644 --- a/ansible/roles/oracle-19c/tasks/main.yml +++ b/ansible/roles/oracle-19c/tasks/main.yml @@ -3,18 +3,25 @@ tags: - always +- import_tasks: download_software.yml + tags: + - ec2provision + - amibuild + - oracle_19c_download + - oracle_19c_download_software + - import_tasks: get_facts.yml tags: - ec2provision - oracle_db_get_facts + - oracle_19c_download_patch - oracle_19c_install_grid -- import_tasks: download_software.yml +- import_tasks: download_patch.yml tags: - ec2provision - - amibuild - - oracle_19c_download - - oracle_19c_download_software + - ec2patch + - oracle_19c_download_patch - import_tasks: pre_install_tasks.yml tags: From 4fc8f4b047b61120b1282dc003efd65ecedff698 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 Dec 2023 12:56:57 +0000 Subject: [PATCH 5/9] Commit changes made by code formatters --- ansible/roles/oracle-19c/defaults/main.yml | 2 +- ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ansible/roles/oracle-19c/defaults/main.yml b/ansible/roles/oracle-19c/defaults/main.yml index 86253f997..6c6deefc5 100644 --- a/ansible/roles/oracle-19c/defaults/main.yml +++ b/ansible/roles/oracle-19c/defaults/main.yml @@ -68,7 +68,7 @@ oracle_patch_details: oracle_release_update: 35037840 oracle_ojvm_patch: 35050341 psu_patch: p35058172_190000_Linux-x86-64.zip - + SEP2023: opatch_version: 12.2.0.1.37 oracle_combo_patch: 35742441 diff --git a/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml b/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml index de28a74fe..c0af2c4f8 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml +++ b/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml @@ -1,4 +1,4 @@ ---- +--- - name: Get OPatch Version ansible.builtin.shell: | export ORACLE_HOME={{ grid_home }} @@ -7,9 +7,8 @@ - name: Upgrade OPatch block: - - - name: Backup previous OPatch folder - ansible.builtin.archive: + - name: Backup previous OPatch folder + ansible.builtin.archive: path: "{{ item }}/OPatch" dest: "{{ item }}/OPatch_{{ bkpdate }}.zip" format: zip @@ -50,4 +49,3 @@ environment: ORACLE_HOME: "{{ grid_home }}" PATH: "{{ grid_home }}/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin" - From 4e2431b7a293bcec36a60c6e3c3f822cbb1c29c8 Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Wed, 13 Dec 2023 10:30:21 +0000 Subject: [PATCH 6/9] Updated Oracle 19c role for oracle 19.21 RU patching --- ...orporate_staff_rostering_preproduction.yml | 1 + .../environment_name_oasys_test.yml | 3 +- ansible/roles/oracle-19c/defaults/main.yml | 8 ++- ansible/roles/oracle-19c/tasks/main.yml | 2 +- ...cle_ru_patching.yml => opatch_upgrade.yml} | 4 +- .../tasks/oracle_ojvm_patch_upgrade.yml | 62 +++++++++++++++++++ .../oracle-19c/tasks/oracle_patch_upgrade.yml | 55 ++++++++++++++++ .../oracle-19c/tasks/oracle_ru_upgrade.yml | 8 +++ .../oracle-19c/tasks/post_install_tasks.yml | 2 +- .../oracle-19c/templates/run_datapatch.sh.j2 | 21 +++++++ 10 files changed, 158 insertions(+), 8 deletions(-) rename ansible/roles/oracle-19c/tasks/{oracle_ru_patching.yml => opatch_upgrade.yml} (93%) create mode 100644 ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml create mode 100644 ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml create mode 100644 ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml create mode 100644 ansible/roles/oracle-19c/templates/run_datapatch.sh.j2 diff --git a/ansible/group_vars/environment_name_corporate_staff_rostering_preproduction.yml b/ansible/group_vars/environment_name_corporate_staff_rostering_preproduction.yml index 9b370b9ec..70dbc8bb3 100644 --- a/ansible/group_vars/environment_name_corporate_staff_rostering_preproduction.yml +++ b/ansible/group_vars/environment_name_corporate_staff_rostering_preproduction.yml @@ -12,6 +12,7 @@ oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle db_env: ORACLE_HOME: "{{ database_home }}" PATH: "{{ database_home }}/bin:{{ oracle_path }}" +oracle_ru_patch: SEP2023 osbws_additional_configs: - name: osbws_prod diff --git a/ansible/group_vars/environment_name_oasys_test.yml b/ansible/group_vars/environment_name_oasys_test.yml index f84c845c6..92cc52026 100644 --- a/ansible/group_vars/environment_name_oasys_test.yml +++ b/ansible/group_vars/environment_name_oasys_test.yml @@ -11,7 +11,7 @@ oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle db_env: ORACLE_HOME: "{{ database_home }}" PATH: "{{ database_home }}/bin:{{ oracle_path }}" -oracle_ru_patch: APR2023 +oracle_ru_patch: SEP2023 ords_trusted_origins: oasys-test: "https://t2.oasys.service.justice.gov.uk/eor,https://t2-int.oasys.service.justice.gov.uk/eor,http://localhost:8080/eor" @@ -22,6 +22,7 @@ ords_trusted_origins: OMS_SERVER: test-oem-a.hmpps-oem.hmpps-test.modernisation-platform.internal OEM_AGENT_VERSION: 13.5.0.0.0 + # rman details rman_backup_script: rman_backup.sh recovery_catalog: 1 diff --git a/ansible/roles/oracle-19c/defaults/main.yml b/ansible/roles/oracle-19c/defaults/main.yml index 6c6deefc5..1e3c0f3d2 100644 --- a/ansible/roles/oracle-19c/defaults/main.yml +++ b/ansible/roles/oracle-19c/defaults/main.yml @@ -59,8 +59,6 @@ oracle_asm_flash_disks: oracle_externaljob_rdbms_path: "{{ oracle_home }}/db_1/rdbms/admin" oracle_externaljob_file: externaljob.ora -oracle_ru_patch: SEP2023 # override this in group_vars - oracle_patch_details: APR2023: opatch_version: 12.2.0.1.37 @@ -68,13 +66,17 @@ oracle_patch_details: oracle_release_update: 35037840 oracle_ojvm_patch: 35050341 psu_patch: p35058172_190000_Linux-x86-64.zip + patch_string: 19.19.0.0 + ojvm_patch_string: "OJVM RELEASE UPDATE: 19.19.0.0" SEP2023: opatch_version: 12.2.0.1.37 oracle_combo_patch: 35742441 oracle_release_update: 35642822 oracle_ojvm_patch: 35648110 - psu_patch: p35058172_190000_Linux-x86-64.zip + psu_patch: p35742441_190000_Linux-x86-64.zip + patch_string: 19.21.0.0 + ojvm_patch_string: "OJVM RELEASE UPDATE: 19.21.0.0" oracle_patch: "{{ oracle_patch_details[ oracle_ru_patch ] }}" opatch: "p6880880_190000_Linux-x86-64-{{ oracle_patch.opatch_version }}.zip" diff --git a/ansible/roles/oracle-19c/tasks/main.yml b/ansible/roles/oracle-19c/tasks/main.yml index cbe05c0a4..f76564845 100644 --- a/ansible/roles/oracle-19c/tasks/main.yml +++ b/ansible/roles/oracle-19c/tasks/main.yml @@ -53,7 +53,7 @@ - oracle_19c_install - oracle_19c_post_install -- import_tasks: post_install_tasks.yml +- import_tasks: oracle_ru_upgrade.yml tags: - oracle_19c_RU_upgrade - never diff --git a/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml b/ansible/roles/oracle-19c/tasks/opatch_upgrade.yml similarity index 93% rename from ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml rename to ansible/roles/oracle-19c/tasks/opatch_upgrade.yml index c0af2c4f8..fb33b6d8c 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_ru_patching.yml +++ b/ansible/roles/oracle-19c/tasks/opatch_upgrade.yml @@ -2,7 +2,7 @@ - name: Get OPatch Version ansible.builtin.shell: | export ORACLE_HOME={{ grid_home }} - {{ grid_home }}/OPatch/opatch version | head -1 | cut -d' ' -f3 | grep {{ opatch_version }} | wc -l + {{ grid_home }}/OPatch/opatch version | head -1 | cut -d' ' -f3 | grep {{ oracle_patch.opatch_version }} | wc -l register: grid_required_version_check - name: Upgrade OPatch @@ -32,7 +32,7 @@ - name: Unarchive Opatch ansible.builtin.unarchive: - src: "{{ stage }}/{ opatch_zip }}" + src: "{{ stage }}/{{ opatch_zip }}" dest: "{{ item }}" owner: oracle group: oinstall diff --git a/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml new file mode 100644 index 000000000..1fa113163 --- /dev/null +++ b/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml @@ -0,0 +1,62 @@ +--- + +- name: Get OJVM patch details + ansible.builtin.shell: | + export ORACLE_HOME={{ database_home }} + {{ database_home }}/OPatch/opatch lspatches | grep {{ oracle_patch.ojvm_patch_string }} | wc -l + register: ojvm_patch_version_check + +- name: OJVM patch upgrade + block: + - name: Shutdown databases before applying OJVM patch + ansible.builtin.shell: | + export ORACLE_SID=+ASM + export ORAENV_ASK=NO + . oraenv + srvctl stop home -oraclehome {{ database_home }} -statefile /tmp/instances.txt + + - name: Deploy OJVM Patch + ansible.builtin.shell: | + cd "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_ojvm_patch }}" + export ORACLE_SID=`grep {{ database_home }} /etc/oratab | grep "^[^#;]" | awk -F: '{ print $1 }' | head -1` + . oraenv + $ORACLE_HOME/OPatch/opatch apply -silent + register: ojvm_patch_upgrade + async: 1800 + poll: 60 + + - name: Start databases before applying OJVM patch + ansible.builtin.shell: | + export ORACLE_SID=+ASM + export ORAENV_ASK=NO + . oraenv + srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances.txt + + - name: Copy datapatch upgrade script + template: + src: "{{ item }}.j2" + dest: "{{ stage }}/{{ item }}" + owner: "{{ oracle_install_user }}" + group: "{{ oracle_install_group }}" + mode: "0700" + loop: + - "run_datapatch.sh" + + - name: Run datapatch + ansible.builtin.shell: "{{ stage }}/run_datapatch.sh" + + - name: Restart databases + ansible.builtin.shell: | + export ORACLE_SID=+ASM + export ORAENV_ASK=NO + . oraenv + srvctl stophome -oraclehome {{ database_home }} -statefile /tmp/instances.txt + srvctl starthome -oraclehome {{ database_home }} -statefile /tmp/instances.txt + + #block + when: ojvm_patch_version_check.stdout == "0" + become: yes + become_user: "{{ oracle_install_user }}" + environment: + ORACLE_HOME: "{{ database_home }}" + PATH: "{{ database_home }}/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin" diff --git a/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml new file mode 100644 index 000000000..dc5cc4566 --- /dev/null +++ b/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml @@ -0,0 +1,55 @@ +--- +- name: Get RU patch details + ansible.builtin.shell: | + export ORACLE_HOME={{ grid_home }} + {{ grid_home }}/OPatch/opatch lspatches | grep {{ oracle_patch.patch_string }} | wc -l + register: grid_patch_version_check + +- name: RU patch upgrade + block: + - name: Kill sqlplus sessions if there are any + ansible.builtin.shell: | + if [ `ps -fu oracle | grep sqlplus | grep -v grep | wc -l` -gt 0 ] + then + ps -fu oracle | grep sqlplus | grep -v grep | gawk '{print $2}' | xargs kill -9 + fi + + - name: Download Oracle 19c PSU patch from S3 bucket + amazon.aws.aws_s3: + bucket: "{{ artefacts_s3_bucket_name }}" + object: "{{ artefacts_s3_bucket_path }}/{{ item }}" + dest: "{{ stage }}/{{ item }}" + mode: get + overwrite: latest + loop: + - "{{ oracle_patch.psu_patch }}" + + - name: Unarchive RU patch + ansible.builtin.unarchive: + src: "{{ stage }}/{{ oracle_patch.psu_patch }}" + dest: "{{ stage }}" + owner: oracle + group: oinstall + mode: u=rwx,g=rx,o=rx + remote_src: yes + + - name: Deploy OPatch + ansible.builtin.shell: | + $ORACLE_HOME/OPatch/opatchauto apply "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_release_update }}" + register: ru_patch_upgrade + async: 1800 + poll: 0 + + - name: Wait for RU patch upgrade to complete + ansible.builtin.async_status: + jid: "{{ ru_patch_upgrade.ansible_job_id }}" + register: ru_patch_upgrade + until: ru_patch_upgrade.finished + delay: 60 + retries: 60 + + #block + when: grid_patch_version_check.stdout == "0" + environment: + ORACLE_HOME: "{{ grid_home }}" + PATH: "{{ grid_home }}/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin" diff --git a/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml new file mode 100644 index 000000000..a947359f4 --- /dev/null +++ b/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml @@ -0,0 +1,8 @@ +--- +- import_tasks: opatch_upgrade.yml + +- import_tasks: oracle_patch_upgrade.yml + +- import_tasks: oracle_ojvm_patch_upgrade.yml + +# - import_tasks: oracle_bug_fixes.yml diff --git a/ansible/roles/oracle-19c/tasks/post_install_tasks.yml b/ansible/roles/oracle-19c/tasks/post_install_tasks.yml index b06911507..a1e4d0524 100644 --- a/ansible/roles/oracle-19c/tasks/post_install_tasks.yml +++ b/ansible/roles/oracle-19c/tasks/post_install_tasks.yml @@ -44,7 +44,7 @@ - "{{ grid_response_file }}" - "{{ grid_install_script }}" - "{{ grid_software }}" - - "{{ psu_patch }}" + - "{{ oracle_patch.psu_patch }}" - "{{ opatch }}" - "{{ stage }}/psu" - "{{ database_response_file }}" diff --git a/ansible/roles/oracle-19c/templates/run_datapatch.sh.j2 b/ansible/roles/oracle-19c/templates/run_datapatch.sh.j2 new file mode 100644 index 000000000..14c161326 --- /dev/null +++ b/ansible/roles/oracle-19c/templates/run_datapatch.sh.j2 @@ -0,0 +1,21 @@ +#!/bin/bash +export ORAENV_ASK=NO +echo -e "set head off \n select 'OPEN_MODE='||decode (open_mode,'READ WRITE',0,-1) from v\$database; \n select '=VERSION='|| version from v\$instance; \n exit" > {{ stage }}/db_check.sql +for i in `ps -fe| grep pmon| grep -v "+ASM"| grep -v grep | awk -F_ '{ print $3 }'` +do + export ORACLE_SID=$i + . oraenv >/dev/null + DB_STATUS=`sqlplus -s "/ as sysdba" @{{ stage }}/db_check.sql` + DB_OPEN=`echo $DB_STATUS| awk -F= '{ print $2 }'` + DB_VERSION=`echo $DB_STATUS| awk -F= '{ print $4 }'` + if [ ${DB_OPEN} == 0 ] + then + if [ ${DB_VERSION} == "19.0.0.0.0" ] + then + echo "Running datapatch for " $i + $ORACLE_HOME/OPatch/datapatch -verbose & + fi + fi +done +wait +echo "All databases successfully upgraded with latest patch" \ No newline at end of file From 6c4c4db2bb7d3fe906e13bf78683f061c3b1f10f Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Wed, 13 Dec 2023 15:21:40 +0000 Subject: [PATCH 7/9] Added delay to cover slow performance on few servers --- .../tasks/oracle_ojvm_patch_upgrade.yml | 33 ++++++++++++------- .../oracle-19c/tasks/oracle_patch_upgrade.yml | 4 +-- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml index 1fa113163..36b16753b 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml +++ b/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml @@ -32,26 +32,37 @@ . oraenv srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances.txt - - name: Copy datapatch upgrade script - template: - src: "{{ item }}.j2" - dest: "{{ stage }}/{{ item }}" - owner: "{{ oracle_install_user }}" - group: "{{ oracle_install_group }}" - mode: "0700" - loop: - - "run_datapatch.sh" + - name: Copy datapatch upgrade script + template: + src: "{{ item }}.j2" + dest: "{{ stage }}/{{ item }}" + owner: "{{ oracle_install_user }}" + group: "{{ oracle_install_group }}" + mode: "0700" + loop: + - "run_datapatch.sh" - name: Run datapatch ansible.builtin.shell: "{{ stage }}/run_datapatch.sh" + register: datapatch_upgrade + async: 9600 + poll: 0 + + - name: Wait for datapatch upgrade to complete + ansible.builtin.async_status: + jid: "{{ datapatch_upgrade.ansible_job_id }}" + register: datapatch_upgrade + until: datapatch_upgrade.finished + delay: 60 + retries: 180 - name: Restart databases ansible.builtin.shell: | export ORACLE_SID=+ASM export ORAENV_ASK=NO . oraenv - srvctl stophome -oraclehome {{ database_home }} -statefile /tmp/instances.txt - srvctl starthome -oraclehome {{ database_home }} -statefile /tmp/instances.txt + srvctl stop home -oraclehome {{ database_home }} -statefile /tmp/instances2.txt + srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances2.txt #block when: ojvm_patch_version_check.stdout == "0" diff --git a/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml index dc5cc4566..976fc5c9e 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml +++ b/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml @@ -37,7 +37,7 @@ ansible.builtin.shell: | $ORACLE_HOME/OPatch/opatchauto apply "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_release_update }}" register: ru_patch_upgrade - async: 1800 + async: 9600 poll: 0 - name: Wait for RU patch upgrade to complete @@ -46,7 +46,7 @@ register: ru_patch_upgrade until: ru_patch_upgrade.finished delay: 60 - retries: 60 + retries: 180 #block when: grid_patch_version_check.stdout == "0" From 96323d0f589ab65dd352af34b6d9abfb15a81d02 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 13 Dec 2023 15:22:37 +0000 Subject: [PATCH 8/9] Commit changes made by code formatters --- .../environment_name_oasys_test.yml | 1 - .../tasks/oracle_ojvm_patch_upgrade.yml | 99 +++++++++---------- .../oracle-19c/tasks/oracle_patch_upgrade.yml | 8 +- .../oracle-19c/tasks/oracle_ru_upgrade.yml | 1 - 4 files changed, 53 insertions(+), 56 deletions(-) diff --git a/ansible/group_vars/environment_name_oasys_test.yml b/ansible/group_vars/environment_name_oasys_test.yml index 92cc52026..cf2372bbf 100644 --- a/ansible/group_vars/environment_name_oasys_test.yml +++ b/ansible/group_vars/environment_name_oasys_test.yml @@ -22,7 +22,6 @@ ords_trusted_origins: OMS_SERVER: test-oem-a.hmpps-oem.hmpps-test.modernisation-platform.internal OEM_AGENT_VERSION: 13.5.0.0.0 - # rman details rman_backup_script: rman_backup.sh recovery_catalog: 1 diff --git a/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml index 36b16753b..26791a477 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml +++ b/ansible/roles/oracle-19c/tasks/oracle_ojvm_patch_upgrade.yml @@ -1,5 +1,4 @@ --- - - name: Get OJVM patch details ansible.builtin.shell: | export ORACLE_HOME={{ database_home }} @@ -8,61 +7,61 @@ - name: OJVM patch upgrade block: - - name: Shutdown databases before applying OJVM patch - ansible.builtin.shell: | - export ORACLE_SID=+ASM - export ORAENV_ASK=NO - . oraenv - srvctl stop home -oraclehome {{ database_home }} -statefile /tmp/instances.txt + - name: Shutdown databases before applying OJVM patch + ansible.builtin.shell: | + export ORACLE_SID=+ASM + export ORAENV_ASK=NO + . oraenv + srvctl stop home -oraclehome {{ database_home }} -statefile /tmp/instances.txt - - name: Deploy OJVM Patch - ansible.builtin.shell: | - cd "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_ojvm_patch }}" - export ORACLE_SID=`grep {{ database_home }} /etc/oratab | grep "^[^#;]" | awk -F: '{ print $1 }' | head -1` - . oraenv - $ORACLE_HOME/OPatch/opatch apply -silent - register: ojvm_patch_upgrade - async: 1800 - poll: 60 + - name: Deploy OJVM Patch + ansible.builtin.shell: | + cd "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_ojvm_patch }}" + export ORACLE_SID=`grep {{ database_home }} /etc/oratab | grep "^[^#;]" | awk -F: '{ print $1 }' | head -1` + . oraenv + $ORACLE_HOME/OPatch/opatch apply -silent + register: ojvm_patch_upgrade + async: 1800 + poll: 60 - - name: Start databases before applying OJVM patch - ansible.builtin.shell: | - export ORACLE_SID=+ASM - export ORAENV_ASK=NO - . oraenv - srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances.txt + - name: Start databases before applying OJVM patch + ansible.builtin.shell: | + export ORACLE_SID=+ASM + export ORAENV_ASK=NO + . oraenv + srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances.txt - - name: Copy datapatch upgrade script - template: - src: "{{ item }}.j2" - dest: "{{ stage }}/{{ item }}" - owner: "{{ oracle_install_user }}" - group: "{{ oracle_install_group }}" - mode: "0700" - loop: - - "run_datapatch.sh" + - name: Copy datapatch upgrade script + template: + src: "{{ item }}.j2" + dest: "{{ stage }}/{{ item }}" + owner: "{{ oracle_install_user }}" + group: "{{ oracle_install_group }}" + mode: "0700" + loop: + - "run_datapatch.sh" - - name: Run datapatch - ansible.builtin.shell: "{{ stage }}/run_datapatch.sh" - register: datapatch_upgrade - async: 9600 - poll: 0 + - name: Run datapatch + ansible.builtin.shell: "{{ stage }}/run_datapatch.sh" + register: datapatch_upgrade + async: 9600 + poll: 0 - - name: Wait for datapatch upgrade to complete - ansible.builtin.async_status: - jid: "{{ datapatch_upgrade.ansible_job_id }}" - register: datapatch_upgrade - until: datapatch_upgrade.finished - delay: 60 - retries: 180 + - name: Wait for datapatch upgrade to complete + ansible.builtin.async_status: + jid: "{{ datapatch_upgrade.ansible_job_id }}" + register: datapatch_upgrade + until: datapatch_upgrade.finished + delay: 60 + retries: 180 - - name: Restart databases - ansible.builtin.shell: | - export ORACLE_SID=+ASM - export ORAENV_ASK=NO - . oraenv - srvctl stop home -oraclehome {{ database_home }} -statefile /tmp/instances2.txt - srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances2.txt + - name: Restart databases + ansible.builtin.shell: | + export ORACLE_SID=+ASM + export ORAENV_ASK=NO + . oraenv + srvctl stop home -oraclehome {{ database_home }} -statefile /tmp/instances2.txt + srvctl start home -oraclehome {{ database_home }} -statefile /tmp/instances2.txt #block when: ojvm_patch_version_check.stdout == "0" diff --git a/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml index 976fc5c9e..c0d920cdd 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml +++ b/ansible/roles/oracle-19c/tasks/oracle_patch_upgrade.yml @@ -7,8 +7,8 @@ - name: RU patch upgrade block: - - name: Kill sqlplus sessions if there are any - ansible.builtin.shell: | + - name: Kill sqlplus sessions if there are any + ansible.builtin.shell: | if [ `ps -fu oracle | grep sqlplus | grep -v grep | wc -l` -gt 0 ] then ps -fu oracle | grep sqlplus | grep -v grep | gawk '{print $2}' | xargs kill -9 @@ -34,8 +34,8 @@ remote_src: yes - name: Deploy OPatch - ansible.builtin.shell: | - $ORACLE_HOME/OPatch/opatchauto apply "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_release_update }}" + ansible.builtin.shell: | + $ORACLE_HOME/OPatch/opatchauto apply "{{ stage }}/{{ oracle_patch.oracle_combo_patch }}/{{ oracle_patch.oracle_release_update }}" register: ru_patch_upgrade async: 9600 poll: 0 diff --git a/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml b/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml index a947359f4..39cd6ca68 100644 --- a/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml +++ b/ansible/roles/oracle-19c/tasks/oracle_ru_upgrade.yml @@ -4,5 +4,4 @@ - import_tasks: oracle_patch_upgrade.yml - import_tasks: oracle_ojvm_patch_upgrade.yml - # - import_tasks: oracle_bug_fixes.yml From 98c3e175a983c4e5e1e700036f49274645093385 Mon Sep 17 00:00:00 2001 From: Sandhya1874 <39799075+Sandhya1874@users.noreply.github.com> Date: Thu, 14 Dec 2023 09:18:43 +0000 Subject: [PATCH 9/9] Update environment_name_corporate_staff_rostering_test.yml --- .../environment_name_corporate_staff_rostering_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml b/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml index e974350d2..6ee8b69af 100644 --- a/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml +++ b/ansible/group_vars/environment_name_corporate_staff_rostering_test.yml @@ -12,7 +12,7 @@ oracle_path: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle db_env: ORACLE_HOME: "{{ database_home }}" PATH: "{{ database_home }}/bin:{{ oracle_path }}" -oracle_ru_patch: APR2023 +oracle_ru_patch: SEP2023 # OEM server OMS_SERVER: test-oem-a.hmpps-oem.hmpps-test.modernisation-platform.internal