Update rapport_bdd.sh
This commit is contained in:
@@ -26,8 +26,8 @@ do
|
|||||||
echo "<br><br>" >> ${HTML_FILE}
|
echo "<br><br>" >> ${HTML_FILE}
|
||||||
|
|
||||||
# Si ASM, on exécute les scripts ASM
|
# Si ASM, on exécute les scripts ASM
|
||||||
if [ $(echo ${ORACLE_SID} | grep ASM | wc -l) -gt 0 ]; then
|
if [ $(ps -ef | grep pmon | grep ASM | wc -l) -gt 0 ]; then
|
||||||
echo "<h1>Configuration de l'instance ${ORACLE_SID}</h1>" >> ${HTML_FILE}
|
echo "<h1>Configuration de l'instance ASM</h1>" >> ${HTML_FILE}
|
||||||
for f in asm/*.sql
|
for f in asm/*.sql
|
||||||
do
|
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}
|
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}
|
||||||
|
|||||||
Reference in New Issue
Block a user