Update show_alert.sh

This commit is contained in:
Yacine31
2022-03-20 22:39:48 +01:00
parent cf9b400f6e
commit 6021688124

View File

@@ -94,7 +94,7 @@ else
fi
# test_instance || { echo "Instance ${ORACLE_SID} non démarrée !!"; exit 1 ; }
if [ $(test_instance) ] ;
if [ $(ps -ef | grep pmon_${ORACLE_SID}\$ | grep -v grep | wc -l) -eq 1 ] ;
then
# instance démarrée, on lui demande le chemin vers l'alertlog
echo instance démarrée, on lui demande le chemin vers l alertlog