Solved

script to check alert log for errors

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

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL query of Oracle 10g database. 8 79
Encryption Decryption in Oracle 12 107
sql for Oracle views 8 49
query in Oracle forms Builder 2 41
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
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 setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
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

895 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

11 Experts available now in Live!

Get 1:1 Help Now