Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trigger - Execute Query and E-Mail Results???

Status
Not open for further replies.

smedvid

MIS
May 28, 1999
1,228
US
Just checking to see if Oracle 8.x has any ability to setup a Trigger within the INSERT to check for certain conditions via a query. If any results are returned from the query, then the query result can be e-mailed to the necessary parties.

I've actually developed a cheap/ad-hoc solution using MS Access and setting up an autoexec macro. Then having the NT Event Scheduler launch the MS Access database each hour. But, there has to be a better/cleaner way to do this task. ...

tia,
Steve Medvid
"IT Consultant & Web Master"
 
Sure you can do this. You use the UTL.SMTP supplied package to email. This is documented in the Supplied Packages manual. If you don't have manuals, you can view them online on the Oracle Technology Network site.
 
Thanks.. After I added the question ... I searched the forums and saw that solution... I usually search first! Looks like fun... Steve Medvid
"IT Consultant & Web Master"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top