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
Solved

script to check alert log for errors

Posted on 2014-10-02
3
277 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
Oracle SQL 6 73
selective queries 7 37
Trying to get a Linked Server to Oracle DB working 21 67
Oracle Query - Convert letters to numbers and display the difference 3 30
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
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…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

791 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