ajout de rep shell

This commit is contained in:
Yacine31
2023-11-12 04:06:36 +01:00
parent 1a4875348f
commit eb53a0f481
3 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
# inventory.xml
echo "<pre>"
ORA_INVENTORY=$(cat /etc/oraInst.loc | grep inventory_loc | cut -d= -f2)
cat $ORA_INVENTORY/ContentsXML/inventory.xml
echo "</pre>"
# opatch
echo "<h2>Opatch lspatches</h2>"
echo "<pre>"
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
echo "</pre>"