This commit is contained in:
Yacine31
2023-01-30 19:32:29 +01:00
parent 4d1590be9b
commit 2e04071609
2 changed files with 296 additions and 2 deletions

11
Daily/rapport_mensuel.sh Normal file
View File

@@ -0,0 +1,11 @@
DATETIME=`date +%Y%m%d%H%M`
HNAME=$(hostname)
for r in $(ps -eaf | grep pmon | egrep -v 'grep|ASM1|APX1' | cut -d '_' -f3)
do
export ORAENV_ASK=NO
export ORACLE_SID=$r
. oraenv -s > /dev/null
sqlplus -s "/ as sysdba" @rapport_html.sql > Rapport_${ORACLE_SID}_${DATETIME}.html
echo Rapport dans le fichier html : Rapport_$HNAME_${ORACLE_SID}_${DATETIME}.html
done