Skip to content

Commit bc8411a

Browse files
authored
Update README.md
1 parent 5878d9f commit bc8411a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,18 @@ Database Tables:
3131

3232
server_alert_logs:
3333
Records the alerts sent, with fields like alert_id, server_id, alert_message, alert_time.
34+
Scheduled Execution:
35+
36+
To run this process periodically, create a scheduled job using Oracle Scheduler:
37+
BEGIN
38+
DBMS_SCHEDULER.CREATE_JOB(
39+
job_name => 'SERVER_MONITOR_JOB',
40+
job_type => 'PLSQL_BLOCK',
41+
job_action => 'BEGIN sms_server_monitor.monitor_servers; END;',
42+
start_date => SYSTIMESTAMP,
43+
repeat_interval => 'FREQ=MINUTELY; INTERVAL=5', -- Run every 5 minutes
44+
enabled => TRUE
45+
);
46+
END;
47+
/
48+
This code is modular and can be extended to integrate with actual SMS gateways or more sophisticated monitoring mechanisms.

0 commit comments

Comments
 (0)