ajout de rep shell
This commit is contained in:
16
sh/10_oracle_installation.sh
Normal file
16
sh/10_oracle_installation.sh
Normal 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>"
|
||||
|
||||
Reference in New Issue
Block a user