rman backup logs - find the lastes for all databases and check status

on one system I have 4 databases that are backed up by rman.

I need to tail the latest log for each of these to get the status and email the output
the rman logs have the date timestamp so the name changes every time it is run.

ie  databasename_bkupdd_FULL.20130908-18:00:00.log

I only want the FULL backups not the LONG or the LOG backup file

so I need help putting a unix script together for this
LVL 1
bkreynolds48Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DavidSenior Oracle Database AdministratorCommented:
Whether you're using cron, or the OEM jobs scheduler, you should be able to append the mail-tail statement when the rman step is complete.  Obviously the syntax varies by O/S and your method, but I'm thinking a bash script with:
...
<capture system timestamp to variable XX>
rman ..... log=...XX.log
mailx subject=rmanlog oper@somedomain < tail -100 ...XX.log
...

A side point, not what you asked -- but is that technique your best way to automate the logging -- as it implies someone is expected to manually read the results of each run.  I'd steer you toward logging the job completion to something like syslog, and using email only to flag exceptions / errors.  You'll find examples of both in the E-E search engine.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bkreynolds48Author Commented:
the automated logging of the job goes to the oncall person.
I have a requirement that says I have to check these daily on my assigned system
thus the request for a script
0
bkreynolds48Author Commented:
I've requested that this question be deleted for the following reason:

I figured out how to do this myself - since no one responded with a good answer
0
DavidSenior Oracle Database AdministratorCommented:
I believe I provided a sufficiently clear solution to the stated problem.  The asker implies that the only answer (mine) was no good, but did not provide any comment with which we could continue the exchange.  Secondly, the asker has not yet detailed his/her solution in the thread.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.