- #!/bin/ksh
- ORACLE_SID=${1}
- if ! [ `/bin/ps -ef | /bin/grep -v grep | /bin/grep -w "ora_pmon_${ORACLE_SID}" | /usr/bin/wc -l 2> /dev/null` -eq 0 ]
- then
- echo -e "Database ${ORACLE_SID} is available."
- else
- echo -e "Database ${ORACLE_SID} is NOT available."
- fi
|