Configure mail alert for expdp backup script

Configure mail alert for expdp backup Script.

In Linux platform, we can create the expdp command as bash shell script where we defined the expdp commands running for oracle database.

Expdp directory=dbbackup dumpfile=prod.dmp logfile=expdp_db_name.log

After using this command you can able to put the following line in the shell script use the logfile name in the below command it will send you the mail for last 4 line expdp backup which will give you the error status or successfully completed status without error. It will help you to not monitor your session again and again.

tail -4 /data02/bkp/script/expdp_dbname_*.log  | mail -s “Backup Status:dbname”  mail@gmail.com

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.