If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Running unix script that checks the db status

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-09-09, 23:04
MIKELALA MIKELALA is offline
Registered User
 
Join Date: Nov 2009
Posts: 44
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.
Reply With Quote
  #2 (permalink)  
Old 12-10-09, 02:23
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,258
Code:
while [ 1 -eq 1 ] # infinite loop
do
  echo 'monitoring'
  sleep 100
done
Reply With Quote
  #3 (permalink)  
Old 12-10-09, 11:18
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,413
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On