473,385 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

sending emails from oracle upon monitoring the database

58
hi,
i have a database that contains data about all the servers conneced in a network... the database gets loaded with data about the severs every 3 mins.i need to monitor the servers' performance.if the memory usage of the server increases rapidly i need to send an email to the admin user of that server.is it possible by using triggers. i have a vbscript that when executed simply sends email. is there any mechanism to connect oracle and the vbscript file to send email? if not provide me a solution.
thanks in advance,
jith
Sep 12 '07 #1
3 1674
amitpatel66
2,367 Expert 2GB
hi,
i have a database that contains data about all the servers conneced in a network... the database gets loaded with data about the severs every 3 mins.i need to monitor the servers' performance.if the memory usage of the server increases rapidly i need to send an email to the admin user of that server.is it possible by using triggers. i have a vbscript that when executed simply sends email. is there any mechanism to connect oracle and the vbscript file to send email? if not provide me a solution.
thanks in advance,
jith
Check out the below trigger used to send mail:

Expand|Select|Wrap|Line Numbers
  1. CREATE or replace TRIGGER status_check 
  2. AFTER  update ON DM_JOB_S
  3. FOR EACH ROW
  4. declare
  5. mail_conn utl_smtp.connection;
  6. var number:=5;
  7. BEGIN
  8. IF :old.method_name='dm_honey_job' AND :old.is_inactive =0 AND :new.is_inactive =1 THEN
  9. mail_conn :=utl_smtp.open_connection('localhost',100);
  10. utl_smtp.helo(mail_conn,'localhost');
  11. utl_smtp.mail(mail_conn,'tmpdoc1@localhost');
  12. utl_smtp.rcpt(mail_conn,'a.b@yahoo.com');
  13. utl_smtp.data(mail_conn,'Database error!!!');
  14. utl_smtp.quit(mail_conn);
  15. ENd IF;
  16. DBMS_OUTPUT.PUT_LINE(var);
  17. END;
  18.  
Sep 12 '07 #2
jith87
58
you see i am just a beginner. so could you please give me some explanation or the utility that can be used.
Sep 12 '07 #3
amitpatel66
2,367 Expert 2GB
you see i am just a beginner. so could you please give me some explanation or the utility that can be used.
Check for explanation of UTL_SMTP here and here
Sep 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: expecthealth | last post by:
OPERATIONAL ORACLE DBA Position Description: This position will report to the Manager of Systems Services. The DBA will work in the Oracle environment and help manage a complex production...
10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
24
by: omlet | last post by:
omlet v4) wrote in message Dear DBA, You are cordially invited to test and review our windows native and 100% pure Java Oracle 9i/8i Monitoring Application (OMLET). OMLET is the Ultimate Visual...
1
by: Bill | last post by:
Is it possible to somehow alter a field in a mysql database by sending an email to the server? I have a script that sends out notification emails to an individual. He wants to receive them...
0
by: tim | last post by:
I hoping someone will be so kind as to help me with this little problem. I am currently building an emailing system into our asp management system. From this we will be able to setup mail...
8
by: windandwaves | last post by:
Hi Folk I want to send out a basic newsletter from my MySql database of contacts. Does anyone know a nice and simple bit of PHP that allows me to do this? TIA - Nicolas
5
by: Jai | last post by:
Hi, I am in a problem of sending mass emails(newsletter) to my website members. Actually my problem is this: I want to send newsletter to my website members. But I had given a facility for...
19
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I'm using DB2 database on one server and ORACLE database on the second one. I want to move some data from ORACLE database to DB2 database and update some columns on ORACLE database so I know...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.