Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    56

    Unanswered: Running unix script that checks the db status

    how to write an infinite loop in unix script !!

    that keeps monitoring the oracle database.


    -thanks/
    Last edited by MIKELALA; 12-09-09 at 23:11.

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    Code:
    while [ 1 -eq 1 ] # infinite loop
    do
      echo 'monitoring'
      sleep 100
    done

  3. #3
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool Crontab? OEM?

    Quote Originally Posted by MIKELALA View Post
    how to write an infinite loop in unix script !!

    that keeps monitoring the oracle database.

    -thanks/
    Instead of an "infinite loop" script, you could configure monitoring in the EM db console
    -- Or --
    You can schedule the monitoring script in crontab to execute every 5 or 10 or 15 or x minutes
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •