Solved

script to check alert log for errors

Posted on 2014-10-02
3
287 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

Industry Leaders: 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

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…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

726 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