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

@@ -21,14 +21,20 @@ do
#
# " > ${HTML_FILE}
# sqlplus -s "/ as sysdba" @rapport_html.sql >> ${HTML_FILE}
cat sql/00_html_header.html >> ${HTML_FILE}
# execution des scripts sql
for f in sql/*.sql
do
# sqlplus -s "/ as sysdba" @$f >> ${HTML_FILE}
sed '1 s/^/SET PAGES 999 FEEDBACK OFF MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP OFF\n/' $f | sqlplus -s / as sysdba >> ${HTML_FILE}
done
# execution des scripts shell
for f in sh/*.sh
do
/bin/sh $f >> ${HTML_FILE}
done
sed -i 's/<table.*>$/<table class="table table-striped">/g' ${HTML_FILE}
cat sql/99_html_footer.html >> ${HTML_FILE}

View File

@@ -1,11 +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>"

View File

@@ -39,9 +39,4 @@ prompt <pre>
host ulimit -a | sort
prompt </pre>
prompt <h2>ulimit -a </h2>
prompt <pre>
host /bin/sh sql/10b_oracle_installation.sh
prompt </pre>
exit