Create CheckList.sh
This commit is contained in:
10
Daily/CheckList.sh
Normal file
10
Daily/CheckList.sh
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user