Update 10b_oracle_installation.sh

This commit is contained in:
Yacine31
2023-11-12 03:59:52 +01:00
parent e0b4531d85
commit 1058038876

View File

@@ -1,11 +1,11 @@
# inventory.xml # inventory.xml
ORA_INVENTORY=$(cat /etc/oraInst.loc | grep inventory_loc | cut -d= -f2) ORA_INVENTORY=$(cat /etc/oraInst.loc | grep inventory_loc | cut -d= -f2)
cat $ORA_INVENTORY/ContentsXML/inventory.xml >> ${HTML_FILE} cat $ORA_INVENTORY/ContentsXML/inventory.xml
# opatch # opatch
ORA_HOME=$(cat /etc/oratab | egrep -v "^$|^#" | cut -d: -f2 | sort -u) ORA_HOME=$(cat /etc/oratab | egrep -v "^$|^#" | cut -d: -f2 | sort -u)
for OH in ${ORA_HOME} for OH in ${ORA_HOME}
do do
export ORACLE_HOME=${ORA_HOME}; ${ORA_HOME}/OPatch/opatch lspatches >> ${HTML_FILE} export ORACLE_HOME=${ORA_HOME}; ${ORA_HOME}/OPatch/opatch lspatches
done done