Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Can RDBMS interact with its OS environment?
Hi,
I was wondering if a database trigger can call some PL/SQL package that will allow it to issue a command to the operating system hosting the database.
For example, if I insert a row into a table, I want to use mailx or
sendmail,
whatever is available on the database server machine to send an email to
designated user(s).
Can one of the DBMS_ or UTL_ packages do it? I think something under UTL_ allows you to write to a file on the filesystem, but how would you invoke the mailx command? Is there something like a HOST(" ") command?
TIA