Solved

need an email alert when a oracle rman backup / restore job completes or fails

Posted on 2014-02-06
2
1,797 Views
Last Modified: 2014-02-06
im using RMAN for backup / restore to a data domain box
i would like some sort of email alert that sends an email when the job completes or fails
oracle 11g
0
Comment
Question by:dougdog
2 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 250 total points
ID: 39838718
I wrote my own procedure that checks everything in my database I consider 'important'.

Once of these things is what datafiles RMAN last backed up (I figure if the datafiles were backed up, everything else in my RMAN script was).

It then uses UTL_MAIL to email me every morning.

You could add anything from any of the V$ views RMAN uses to get as detailed as you want.

You can also use UTL_SMTP instead of UTL_MAIL.  Some Experts here don't like UTL_MAIL.

RMAN views:
http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcviews001.htm#RCMRF1923

UTL_MAIL:
docs.oracle.com/cd/E11882_01/appdev.112/e40758/u_mail.htm
0
 
LVL 37

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 250 total points
ID: 39838723
this requires a little work:

install XDB package in the oracle database
set the necessary ACL priviliges to the smtp server for that user
add a trigger on V$RMAN_BACKUP_JOB_DETAILS column STATUS when it gets updated to FAILED or COMPLETED
and call a mail procedure with the info

sdstuber wrote articles covering all these topics except the trigger on V$RMAN_BACKUP_JOB_DETAILS

October 28, 2011: How to use Access Control Lists in Oracle (part 1)
http://www.experts-exchange.com/A_8429.html

September 18, 2011: How to send email attachments with Oracle
http://www.experts-exchange.com/A_7749.html
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question