diff --git a/sh/10_oracle_installation.sh b/sh/10_oracle_installation.sh index 1515d60..9c6ace6 100644 --- a/sh/10_oracle_installation.sh +++ b/sh/10_oracle_installation.sh @@ -7,18 +7,13 @@ echo "" # opatch echo "
"
-ORA_HOME=$(cat /etc/oratab | egrep -v "^$|^#" | cut -d: -f2 | sort -u)
-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 ""
echo "ORACLE=HOME="$oh
echo ""
export ORACLE_HOME=$oh
$oh/OPatch/opatch lspatches
+ echo "
"
done
-echo ""