diff --git a/sh/20_dbvisit_infos.sh b/sh/20_dbvisit_infos.sh index 33486d6..da50d39 100644 --- a/sh/20_dbvisit_infos.sh +++ b/sh/20_dbvisit_infos.sh @@ -1,6 +1,6 @@ -# run script only if dbvctl is running +# script à exécuter si seulement dbvctl existe et une instance avec le nom de service dbv existe aussi -count=$(ps -ef | grep dbvctl | grep -v grep | wc -l) +count=$(ps -ef | grep dbvctl | grep -v grep | ${ORACLE_SID} | wc -l) if [ $count -gt 0 ]; then # dbvisit @@ -10,20 +10,9 @@ if [ $count -gt 0 ]; then echo "" echo "
"
${DBV_HOME}/dbvctl -d ${ORACLE_SID} -i
echo ""
-
-
- # cd ${DBV_HOME}/conf
- # ls -1 dbv_*.env | sed 's/dbv_//g' | sed 's/.env//g' | while read db
- # do
- # echo ""
- # ${DBV_HOME}/dbvctl -d $db -i
- # echo ""
- # echo "