Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 899
  • Last Modified:

How to send email notification to user if sql loader fails or success ?

How to send email notification to user if sql loader fails or success ?
After running the control file through sqlldr if it fails then we have send email notification to user.
If it success then also send a email to user for succession.
For this need unix shell script

Please help .
0
digs developer
Asked:
digs developer
1 Solution
 
slightwv (䄆 Netminder) Commented:
Given your two open questions on how to decide if it fails, this one is just sending the email.

If you have your server set up correctly, should be a simple mailx.

Something like:
mailx -s "sql loader failed" someuser@mailserver.com << EOF
The message body goes where
EOF
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now