mail from oracle user in linux
Hi,
I am asked to create a script.whenever ora(oracle errors) errors occurs in alert log file.That error automatically goes to particular mail with ip address of the machine. |
So which part are you stuck on? Have you any code already? Which shell are you in?
|
Quote:
|
Well I see you are currently in Windows, so what system is Oracle running on?
Are you also able to tell us which shell you will be using? |
Quote:
we using Red hat 4,5 and bash shell. |
What is there in the alert log file?
Are the error getting appended to it, every time an error occur? |
In that case I would point you towards the following:
man cron (to setup how often to check the log) man grep (to retrieve the appropriate line(s)) man sendmail (as the name suggests, to send the email) |
Quote:
And if you want a bash script, write it yourself. There are many tutorials on the internet, that can walk you through basic scripting. Many linux logfile watch utilities, too, that are easily found by a Google search, or a search on this very site. |
Quote:
Quote:
What books or tutorials on scripting do you have? |
Quote:
My guess is that he means RHEL 4.5. It could be 4 and/or 5 - however it is much more common to use a comma where English speakers (writers?) use a fullstop (I can't think of any languages/countries that use a comma where we would use a '/'). |
Quote:
|
Quote:
|
Quote:
Thanks for reply.I searched in google.but there is no use.if you know the answer,please tell and guide me.otherwise do n't say like this. If you know everything in red hat,you should answer for it. |
To be fair, no one is going to do the job for you as that would mean when something goes wrong with it you will come back to / blame us
that it wasn't any good, and seeing that you are being paid to get a solution and we are offering our services freely, you can see why comments like: Quote:
That being said, pixellany's suggestion was to point you toward literature that would help you understand scripting so that when someone does give you any help / suggestions that you have clue one about what is going on. To this end, I will also offer the following url (which if you searched must have been very well hidden): http://www.gnu.org/software/bash/manual/bashref.html |
Quote:
Once again: Who is asking you to write this script? Your employer? A Homework assignment? What books or tutorials are you using? |
All times are GMT -5. The time now is 03:25 PM. |