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 ""