From 4d1590be9bf7ede80ea99661899a4a6498ad92e7 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Mon, 30 Jan 2023 14:34:30 +0100 Subject: [PATCH] Create CheckList.sh --- Daily/CheckList.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Daily/CheckList.sh diff --git a/Daily/CheckList.sh b/Daily/CheckList.sh new file mode 100644 index 0000000..e9e8a31 --- /dev/null +++ b/Daily/CheckList.sh @@ -0,0 +1,10 @@ +DATETIME=`date +%Y%m%d%H%M` + +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" @DailyCheck_html.sql > Rapport_${ORACLE_SID}_${DATETIME}.html + echo Rapport dans le fichier html : Rapport_${ORACLE_SID}_${DATETIME}.html +done