Solved

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

Posted on 2014-02-06
2
1,917 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

724 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