Update rapport_bdd.sh

This commit is contained in:
Yacine31
2023-11-18 06:53:05 +01:00
parent 8a313a9d1d
commit a8f6adf88c

View File

@@ -24,6 +24,16 @@ do
done
echo "<br><br>" >> ${HTML_FILE}
# Si ASM, on exécute les scripts ASM
if [ $(echo ${ORACLE_SID} | grep ASM | wc -l) -gt 0 ]; then
echo "<h1>Configuration de l'instance ${ORACLE_SID}</h1>" >> ${HTML_FILE}
for f in asm/*.sql
do
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
fi
# execution des scripts sql
echo "<h1>Configuration de la base de données ${ORACLE_SID}</h1>" >> ${HTML_FILE}
for f in sql/*.sql
@@ -31,7 +41,6 @@ do
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
sed -i 's/<table.*>$/<table class="table table-striped">/g' ${HTML_FILE}
cat sql/99_html_footer.html >> ${HTML_FILE}