runInstaller + applyRU
installation et patch en même temps
This commit is contained in:
@@ -3,16 +3,17 @@
|
||||
|
||||
chkifinstalled=`grep "{{ oracle_home }}" "{{ oracle_inventory }}/ContentsXML/inventory.xml" |wc -l`
|
||||
if [[ $chkifinstalled == 1 ]]; then
|
||||
echo "Error: ORACLE_HOME: {{ oracle_home }} already present. Exiting"
|
||||
exit 0
|
||||
echo "Error: ORACLE_HOME: {{ oracle_home }} already present. Exiting"
|
||||
exit 0
|
||||
else
|
||||
linux_version=$(cat /etc/os-release | egrep "^VERSION=" | cut -d= -f2 | sed 's/"//g' | cut -d. -f1)
|
||||
if [ "${linux_verion}" -eq 9 ]
|
||||
then
|
||||
export CV_ASSUME_DISTID=OL8
|
||||
else
|
||||
export CV_ASSUME_DISTID=OEL7.6
|
||||
fi
|
||||
{{ oracle_home }}/runInstaller -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion
|
||||
linux_version=$(cat /etc/os-release | egrep "^VERSION=" | cut -d= -f2 | sed 's/"//g' | cut -d. -f1)
|
||||
if [ "${linux_verion}" -eq 9 ]
|
||||
then
|
||||
export CV_ASSUME_DISTID=OL8
|
||||
else
|
||||
export CV_ASSUME_DISTID=OEL7.6
|
||||
fi
|
||||
# Application du patch {{ patch_number }} et execution de runInstaller
|
||||
{{ oracle_home }}/runInstaller -applyRU /u01/sources/{{ patch_number }} -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user