Update rapport_bdd.sh

This commit is contained in:
Yacine31
2023-11-23 02:10:02 +01:00
parent 800caf036f
commit bce30fbdea

View File

@@ -26,8 +26,8 @@ do
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}
if [ $(ps -ef | grep pmon | grep ASM | wc -l) -gt 0 ]; then
echo "<h1>Configuration de l'instance ASM</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}