Solved

script to check alert log for errors

Posted on 2014-10-02
3
266 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
  • 2
3 Comments
 
LVL 76

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 76

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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.  …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to recover a database from a user managed backup

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now