Files
db_report/sh/20_dbvisit_infos.sh
2023-11-14 15:15:13 +01:00

18 lines
522 B
Bash

# 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 | grep ${ORACLE_SID} | wc -l)
if [ $count -gt 0 ]; then
# dbvisit
echo "<h2>Process DBVisit</h2>"
echo "<pre>"
ps -ef | grep dbvctl | grep -v grep
echo "</pre>"
echo "<h2>dbvctl gap report</h2>"
export DBV_HOME=$(dirname $(ps -ef | grep dbvctl | grep -v grep | awk '{print $8}' | sort -u))
echo "<pre>"
${DBV_HOME}/dbvctl -d ${ORACLE_SID} -i
echo "</pre>"
fi