tdb.ksh 264 B

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