Update rapport_mensuel.sh

This commit is contained in:
Yacine31
2023-11-09 01:09:54 +01:00
parent 505671b368
commit 7f9dc2fedb

View File

@@ -7,19 +7,19 @@ do
export ORACLE_SID=$r
export HTML_FILE=Rapport_$HNAME_${ORACLE_SID}_${DATETIME}.html
. oraenv -s > /dev/null
echo "
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<meta name=viewport content=width=device-width, initial-scale=1>
<title>Rapport Oracle Database : ${ORACLE_SID} </title>
<link href=https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css rel=stylesheet integrity=sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD crossorigin=anonymous>
</head>
<body>
<div class=container>
" > ${HTML_FILE}
# echo "
# <!doctype html>
# <html lang=en>
# <head>
# <meta charset=utf-8>
# <meta name=viewport content=width=device-width, initial-scale=1>
# <title>Rapport Oracle Database : ${ORACLE_SID} </title>
# <link href=https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css rel=stylesheet integrity=sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD crossorigin=anonymous>
# </head>
# <body>
# <div class=container>
#
# " > ${HTML_FILE}
# sqlplus -s "/ as sysdba" @rapport_html.sql >> ${HTML_FILE}
for f in sql/*.sql