?
Solved

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

Posted on 2014-02-06
2
Medium Priority
?
1,975 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 1000 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 38

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

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