-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OHS code to upgrade to 19c Client (#106)
* Update OHS code to upgrade to 19c Client Up to now we have been installing the 12c Client for the Oracle HTTP Server. This is already or about to go out of support. So we need to switch to the supported version i.e. 19C Client.. Initially a ticket was created for this work - https://github.com/spm-devops/transformers/issues/1327 But the code deliever in this PR should cover what is required. * Update README.md Update README --------- Co-authored-by: Martin Fanning <[email protected]>
- Loading branch information
1 parent
1ad9b0d
commit 7d2059e
Showing
9 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
|
||
- name: Create 19cUpgrade zip directory | ||
ansible.builtin.file: | ||
path: "{{ ohs_installer_loc }}/19cUpgrade/" | ||
state: directory | ||
owner: "{{ ohs_user }}" | ||
group: "{{ ohs_group }}" | ||
mode: 0755 | ||
|
||
- name: Check 19cUpgrade Installer File Exists | ||
stat: | ||
path: "{{ ohs_installer_loc }}/19cUpgrade/{{ upgrade19c_installer_zip }}" | ||
register: installer | ||
|
||
- name: Download 19cUpgrade installer | ||
get_url: | ||
url: "{{ download_url }}/{{ upgrade19c_installer_path }}/{{ upgrade19c_installer_zip }}" | ||
dest: "{{ ohs_installer_loc }}/19cUpgrade/" | ||
owner: "{{ ohs_user }}" | ||
group: "{{ ohs_group }}" | ||
mode: 0755 | ||
force: no | ||
headers: "{{ download_header }}" | ||
when: not installer.stat.exists and download_url is defined | ||
|
||
- name: Create 19cUpgrade unzipped directory | ||
ansible.builtin.file: | ||
path: "{{ ohs_installer_loc }}/upgrade19cInstaller/" | ||
state: directory | ||
owner: "{{ ohs_user }}" | ||
group: "{{ ohs_group }}" | ||
mode: 0755 | ||
|
||
- name: Unzip 19c Upgrade installer | ||
ansible.builtin.unarchive: | ||
src: "{{ ohs_installer_loc }}/19cUpgrade/{{ upgrade19c_installer_zip }}" | ||
dest: "{{ ohs_installer_loc }}/upgrade19cInstaller/" | ||
owner: "{{ ohs_user }}" | ||
group: "{{ ohs_group }}" | ||
mode: 0755 | ||
remote_src: yes | ||
when: not installer.stat.exists | ||
|
||
- name: Update permissions for a directory and its contents | ||
ansible.builtin.file: | ||
path: "{{ ohs_installer_loc }}/upgrade19cInstaller/{{ upgrade19c_installer_folder }}" | ||
mode: 0755 | ||
recurse: yes | ||
|
||
- name: Upgrade Prep Change Permissions | ||
become: yes | ||
become_user: "{{ ohs_user }}" | ||
command: "{{ ohs_installer_loc }}/upgrade19cInstaller/{{ upgrade19c_installer_folder }}/changePerm.sh {{ ohs_home }}" | ||
|
||
- name: Execute 19c Upgrade | ||
become: yes | ||
become_user: "{{ ohs_user }}" | ||
command: "{{ ohs_installer_loc }}/upgrade19cInstaller/{{ upgrade19c_installer_folder }}/{{ upgrade19c_installer }} -ignoreSysPrereqs -invPtrLoc {{ ohs_home }}/oraInst.loc -silent ORACLE_HOME={{ ohs_home }}" | ||
|
||
- name: Cleanup | ||
file: | ||
path: "{{ ohs_installer_loc }}/upgrade19cInstaller" | ||
state: absent | ||
|
||
- name: Cleanup | ||
file: | ||
path: "{{ ohs_installer_loc }}/19cUpgrade" | ||
state: absent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
# Base Information | ||
ohs_version_folder: 12.2.1 | ||
base_version: 12.2.1.4.0 | ||
base_installer: fmw_12.2.1.4.0_ohs_linux64.bin | ||
base_installer_path: "OHS/12.2.1/fmw_12.2.1.4.0_ohs_linux64.bin" | ||
|
||
# Upgrade Information | ||
upgrade19c_version: 12.2.1.19.0 | ||
upgrade19c_installer_path: "OHS/12.2.1/19cUpgrade" | ||
upgrade19c_installer_zip: "p34761383_122140_Linux-x86-64.zip" | ||
upgrade19c_installer: fmw_12.2.1.19.0_dbclient_linux64.bin | ||
upgrade19c_installer_folder: 34761383 | ||
|
||
# Patch information | ||
ohs_version: 12.2.1.4.240906 | ||
patches: | ||
- filename: "OHS/{{ ohs_version_folder }}/p37033394_122140_Linux-x86-64.zip" | ||
number: 37033394 | ||
|
||
# OPatch Information | ||
opatch_filename_path: "WLS/Patches/p28186730_1394217_Generic.zip" | ||
opatch_version: 13.9.4.2.17 | ||
opatch_folder: 6880880 | ||
|
||
# JDK Information | ||
java_zip_path: 'WLS/jdk-8u431-linux-x64.tar.gz' | ||
java_version_path: 'jdk1.8.0_431' | ||
jdk_folder: "{{ ohs_home }}/oracle_common/jdk" | ||
|
||
template_jar: "ohs_standalone_template.jar" |