From 8b2c72fe7d74676e6adb7de96660601d64a076ad Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Sun, 12 Nov 2023 04:25:38 +0100 Subject: [PATCH] Update 10_oracle_installation.sh --- sh/10_oracle_installation.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sh/10_oracle_installation.sh b/sh/10_oracle_installation.sh index bcc7f77..1515d60 100644 --- a/sh/10_oracle_installation.sh +++ b/sh/10_oracle_installation.sh @@ -13,5 +13,12 @@ for OH in ${ORA_HOME} do export ORACLE_HOME=${ORA_HOME}; ${ORA_HOME}/OPatch/opatch lspatches done +cat /etc/oratab | egrep -v "^$|^#" | cut -d: -f2 | sort -u | while read oh +do + echo "ORACLE=HOME="$oh + echo "" + export ORACLE_HOME=$oh + $oh/OPatch/opatch lspatches +done echo ""