<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Oracle Alert Log Monitoring in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503893#M846476</link>
    <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;To can monitor the alert logs by reading the alertlogs and serching for errors by a script and schedule this monitoring script for every xx minutes.&lt;BR /&gt;&lt;BR /&gt;You can have the script to check for a single database with a parameter as ORACLE_SID or do for all the database with the flag "Y" (active databases) on oratab file.&lt;BR /&gt;&lt;BR /&gt;Attached is a script that looks for any errors in the alert log and each time it scans form the next line of the previous reported error line. And the script uses mailx to mail to the DBA the error message and the database name. This script does it for a database by acepting a parameter, you can have the same thing in a loop for all the active databases in oratab file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
    <pubDate>Mon, 14 Mar 2005 20:06:48 GMT</pubDate>
    <dc:creator>Indira Aramandla</dc:creator>
    <dc:date>2005-03-14T20:06:48Z</dc:date>
    <item>
      <title>Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503890#M846473</link>
      <description>Hello Oracle enchanted|plagued,&lt;BR /&gt; &lt;BR /&gt;on one of our Oracle clusters I was asked to monitor alert.logs of the running instances thereon.&lt;BR /&gt;Sounds to me to be some buggy dbs there,&lt;BR /&gt;but I lack the DBA knowledge to judge on them. &lt;BR /&gt; &lt;BR /&gt;Being a bit of a Perl nerd I of course had to look for a Perl solution and stumbled over Swatch.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://swatch.sourceforge.net/" target="_blank"&gt;http://swatch.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;  &lt;BR /&gt;It only took a wee wrapper script to have all 14 alert logs of the cluster's instances being successfully monitored and let the DBAs be bombarded with notifications about their skeletons in their cupboards ;-)&lt;BR /&gt; &lt;BR /&gt;However, I wasn't savvy  enough to take care for the Swatch daemon procs being started and stopped by the MC/SG package control scripts.&lt;BR /&gt; &lt;BR /&gt;This neglegance haunted me back last Sunday when our network admins flashed their switches with new firmware.&lt;BR /&gt;They even warned us that the procedure required a full stack reboot, including the failover ports (that much for HA ;-)&lt;BR /&gt;  &lt;BR /&gt;Unfortunately thus my SMS alert notification thus also was broken %-{&lt;BR /&gt;So this morning I was given a nice reception of compiled user anger because the cluster couldn't failover or correctly reform after the incident yesterday owe to inability to unmount the packages' filesystems whereon my Swatch daemons were dutifully monitoring the alert logs.&lt;BR /&gt;Looks that even the "fuser -ku" in the unmount_fs() function from the control scripts couldn't shoot them.&lt;BR /&gt; &lt;BR /&gt;Of course I'm convinced that this won't happen again if I start and stop (or emrgency shoot) the daemons from within the control scripts.&lt;BR /&gt;Nevertheless, I also have a sneaking suspicion that the Oracle Data Directory already provides for dynamic views where all Oracle alert events that usually get logged to the alert.logs could as well be SQL queried.&lt;BR /&gt;If that's true which view(s) would I have to look up?&lt;BR /&gt;This would avoid the need to access the packages' filesystems altogether.&lt;BR /&gt; &lt;BR /&gt;While searching the web for such thing I also came accross this interesting link.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.oracleadvice.com/Tips/external.htm" target="_blank"&gt;http://www.oracleadvice.com/Tips/external.htm&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Do you think I can disregard the explicit warning there not to use the above hack in a productive environment?&lt;BR /&gt; &lt;BR /&gt;Regards&lt;BR /&gt;Ralph</description>
      <pubDate>Mon, 14 Mar 2005 08:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503890#M846473</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-03-14T08:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503891#M846474</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can find some of the information written to the alert-log in the data dictionary (like log-switches etc.), but no "ORA-" type errors will be written to the data dictionary. SO to catch them you need to read the alert-log.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;/M</description>
      <pubDate>Mon, 14 Mar 2005 09:18:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503891#M846474</guid>
      <dc:creator>Mikael Sandström_1</dc:creator>
      <dc:date>2005-03-14T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503892#M846475</link>
      <description>Hi Ralph.&lt;BR /&gt;If you need a checker for alertlogs,&lt;BR /&gt;pls have a look :&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# ==========================================================================&lt;BR /&gt;# check_alertlog EURCOD-A&lt;BR /&gt;#&lt;BR /&gt;# Description:&lt;BR /&gt;#       This script will check all alert log files of all databases&lt;BR /&gt;#       as specified in the /etc/oratab. For use primarily&lt;BR /&gt;#       when the computer has been booted.....&lt;BR /&gt;#&lt;BR /&gt;# Parameters:&lt;BR /&gt;#       1. Database name.&lt;BR /&gt;#&lt;BR /&gt;# History:&lt;BR /&gt;#&lt;BR /&gt;# ==========================================================================&lt;BR /&gt;#  Allow verification/trace to be turned on and off.&lt;BR /&gt;#&lt;BR /&gt;# set -E&lt;BR /&gt;#  set -x&lt;BR /&gt;#&lt;BR /&gt;case "$ORACLE_TRACE" in&lt;BR /&gt;#   T)  set -x ;;&lt;BR /&gt;esac&lt;BR /&gt;# setting the proper PATH.....&lt;BR /&gt;LBIN=/usr/local/bin; export LBIN&lt;BR /&gt;PATH=$PATH:$LBIN; export PATH&lt;BR /&gt;DB_ADMIN=/home/dba/oracle/admin; export DB_ADMIN&lt;BR /&gt;#&lt;BR /&gt;Db_Name=`echo ${1:-"none"}`; export Db_Name&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;echo "#\n\tDb_Name set to: $Db_Name\n#\n"&lt;BR /&gt;#&lt;BR /&gt;echo "Time is: `date`" &amp;gt; /var/tmp/check_alert_log.log&lt;BR /&gt;&lt;BR /&gt;cat /etc/oratab | while read LINE&lt;BR /&gt;do&lt;BR /&gt; case $LINE in&lt;BR /&gt;  \#*)          ;;      #comment-line in oratab&lt;BR /&gt;  *)&lt;BR /&gt;  # Proceed only if third field is 'Y'.&lt;BR /&gt;  if [ "`echo $LINE | awk -F: '{print $3}' -`" = "Y" ] &amp;amp;&amp;amp; [ "${Db_Name}" = "none" ]&lt;BR /&gt;   then&lt;BR /&gt;    ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`&lt;BR /&gt;    oracle_sid=`echo $ORACLE_SID|tr "[A-Z]" "[a-z]"`&lt;BR /&gt;    echo ${ORACLE_SID} &amp;gt;&amp;gt; /var/tmp/check_alert_log.log&lt;BR /&gt;    echo " " &amp;gt;&amp;gt; /var/tmp/check_alert_log.log&lt;BR /&gt;    cat ${DB_ADMIN}/${ORACLE_SID}/bdump/alert_${ORACLE_SID}.log | grep 'ORA-' &amp;gt;&amp;gt; /var/tmp/check_alert_log.log&lt;BR /&gt;    echo " " &amp;gt;&amp;gt; /var/tmp/check_alert_log.log&lt;BR /&gt;  fi&lt;BR /&gt; esac&lt;BR /&gt;done&lt;BR /&gt;    echo "Time is: `date`" &amp;gt;&amp;gt; /var/tmp/check_alert_log.log&lt;BR /&gt;########################################################&lt;BR /&gt;cat /var/tmp/alert_log.log | sendmail .......&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Repeated all 60 minutes by cron .&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 10:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503892#M846475</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2005-03-14T10:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503893#M846476</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;To can monitor the alert logs by reading the alertlogs and serching for errors by a script and schedule this monitoring script for every xx minutes.&lt;BR /&gt;&lt;BR /&gt;You can have the script to check for a single database with a parameter as ORACLE_SID or do for all the database with the flag "Y" (active databases) on oratab file.&lt;BR /&gt;&lt;BR /&gt;Attached is a script that looks for any errors in the alert log and each time it scans form the next line of the previous reported error line. And the script uses mailx to mail to the DBA the error message and the database name. This script does it for a database by acepting a parameter, you can have the same thing in a loop for all the active databases in oratab file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
      <pubDate>Mon, 14 Mar 2005 20:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503893#M846476</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-03-14T20:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503894#M846477</link>
      <description>hi Ralph,&lt;BR /&gt;&lt;BR /&gt;another script for monitoring my alert.log is attached.&lt;BR /&gt;&lt;BR /&gt;the information on the site that you have mentioned above is also a good one.&lt;BR /&gt;&lt;BR /&gt;Don't consider it as a negative "hack" because this allows you to query your alert.log from anywhere and also you can delegate this task to somebody else. More important you can use it to  analyze the types of errors that you get most frequently, etc.&lt;BR /&gt;&lt;BR /&gt;I think i will adopt this procedure in the near future...&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 23:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503894#M846477</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-03-14T23:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503895#M846478</link>
      <description>attachment</description>
      <pubDate>Mon, 14 Mar 2005 23:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503895#M846478</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-03-14T23:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503896#M846479</link>
      <description>You have one more option also, and that's using Oracle Enterprise Manager (comes with the server install). You would have to configure a Management server somewhere, and then you start one more processs (Intelligent Agent) on each node, and from within OEM you can set up events that will monitor the alertlog (and pretty much anything else you would like to know about). Should an event be triggered, for instance by a "ORA-something" error in the alertlog, you can have a mail/page/sms sent to your DBA's. &lt;BR /&gt;&lt;BR /&gt;/M</description>
      <pubDate>Tue, 15 Mar 2005 02:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503896#M846479</guid>
      <dc:creator>Mikael Sandström_1</dc:creator>
      <dc:date>2005-03-15T02:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Alert Log Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503897#M846480</link>
      <description>If you install OEM please install the repositry and management server on a different node, because if your production  envirmonment is down, OEM doesn't work as well. &lt;BR /&gt;OEM is also very handy for ad-hoc Oracle stuff.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Wed, 16 Mar 2005 10:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-alert-log-monitoring/m-p/3503897#M846480</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-03-16T10:08:46Z</dc:date>
    </item>
  </channel>
</rss>

