Solved

script to check alert log for errors

Posted on 2014-10-02
3
279 Views
Last Modified: 2014-10-07
I have several databases on one system.
I need a script to check each of these databases for oracle errors and then email me if errors are found
I have both 10g & 11g databases with different paths to where the alert log resides.

I need to run this script as myself not as the oracle owner

thanks
0
Comment
Question by:bkreynolds48
[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
3 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40357735
What OS?  Based on your previous questions, I'm assuming Unix.

>>I need to run this script as myself not as the oracle owner

Unless you are a privileged user, I doubt you have permission to see the alert logs.

>>I have both 10g & 11g databases with different paths to where the alert log resides.

If on Unix and everything is set up properly, /etc/oratab, should have the information you need to help set up the database and alert log locations.

>>I need a script to check each of these databases for oracle errors and then email me if errors are found

Don't you already have a script from your previous question:
http://www.experts-exchange.com/Database/Oracle/Q_28406794.html
0
 
LVL 1

Author Closing Comment

by:bkreynolds48
ID: 40366378
I could not get that script to run - this system was not set up by me and in non standard in every way
I have to define the paths to each of the alert logs
so slightwv I will keep trying with this script - it is a simple script - like I said just having issues
I may have to run one for each of the non standard databases
so thanks
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40366391
>>this system was not set up by me and in non standard in every way

If you are now the person responsible for the system, you should take the time to standardize things.

Oracle created the Optimal Flexible Architecture (OFA) for a reason:  Standardization.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to recover a database from a user managed backup

749 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