02-20-2011 06:26 AM
I'm looking for any way netbackup send an email message only when a RMAN error occurs, like below:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03004: fatal error during execution of command
ORA-01089: immediate shutdown in progress - no operations are permitted
ORACLE error from target database:
ORA-03135: connection lost contact
02-20-2011 06:45 AM
Unix or Windows?
To send mail from the client, you need to ensure that mail can be sent at OS level.
If Unix, verify that sendmail is functional. Just add a 'mailx' line in the backup script on the client to send mail if script does not exit with exit code 0.