From bce30fbdeae32f358626302b5e5fb884d480fcb8 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Thu, 23 Nov 2023 02:10:02 +0100 Subject: [PATCH] Update rapport_bdd.sh --- rapport_bdd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapport_bdd.sh b/rapport_bdd.sh index 72e2cdd..d18eaa4 100644 --- a/rapport_bdd.sh +++ b/rapport_bdd.sh @@ -26,8 +26,8 @@ do echo "

" >> ${HTML_FILE} # Si ASM, on exécute les scripts ASM - if [ $(echo ${ORACLE_SID} | grep ASM | wc -l) -gt 0 ]; then - echo "

Configuration de l'instance ${ORACLE_SID}

" >> ${HTML_FILE} + if [ $(ps -ef | grep pmon | grep ASM | wc -l) -gt 0 ]; then + echo "

Configuration de l'instance ASM

" >> ${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}