<?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: monitoring script for oracle instance in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139459#M800461</link>
    <description>may i know exactly what problem (any error message) you are facing?</description>
    <pubDate>Tue, 09 Dec 2003 05:04:25 GMT</pubDate>
    <dc:creator>Joseph Loo</dc:creator>
    <dc:date>2003-12-09T05:04:25Z</dc:date>
    <item>
      <title>monitoring script for oracle instance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139457#M800459</link>
      <description>#!/usr/bin/ksh&lt;BR /&gt;OPER="user mail box"&lt;BR /&gt;LSNR=`su - oracle -c "lsnrctl status " |grep successfully|awk '{print $4}'`&lt;BR /&gt;if [[ "$LSNR" != "successfully" ]];then&lt;BR /&gt;  echo "Listener is not ok at `date`" |mailx -v -s "Listener Status" $OPER &lt;BR /&gt;else&lt;BR /&gt;    #TO define oracle sid&lt;BR /&gt;    ORATAB=/var/opt/oracle/oratab&lt;BR /&gt;    cat $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" ]] ; then&lt;BR /&gt;                   ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`&lt;BR /&gt;                     if [[ "$ORACLE_SID" == '*' ]] ; then&lt;BR /&gt;                        ORACLE_SID=""&lt;BR /&gt;                     fi&lt;BR /&gt;               ORACLE_HOME=`echo $LINE |awk -F: '{print $2}' -`&lt;BR /&gt;               export ORACLE_HOME&lt;BR /&gt;               PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin&lt;BR /&gt;               export PATH&lt;BR /&gt;          Stat=`echo "exit"|su oracle -c "sqlplus user/passwd@$ORACLE_SID"|grep Disconnected|awk '{print $2}'`&lt;BR /&gt;                     if [[ "$Stat" != "Disconnected" ]];then&lt;BR /&gt;     echo "Database $ORACLE_SID not on" |mailx -v -s "Database Status" $OPER&lt;BR /&gt;                     fi &lt;BR /&gt;                fi &lt;BR /&gt;                    ;;&lt;BR /&gt;            esac&lt;BR /&gt;      done&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Dec 2003 03:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139457#M800459</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2003-12-09T03:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring script for oracle instance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139458#M800460</link>
      <description>attach file</description>
      <pubDate>Tue, 09 Dec 2003 03:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139458#M800460</guid>
      <dc:creator>steven chang_1</dc:creator>
      <dc:date>2003-12-09T03:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring script for oracle instance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139459#M800461</link>
      <description>may i know exactly what problem (any error message) you are facing?</description>
      <pubDate>Tue, 09 Dec 2003 05:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139459#M800461</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2003-12-09T05:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring script for oracle instance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139460#M800462</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A forum is a place to exchange ideas. I can imagine that Steven is only giving us 2 scripts that he finds useful. Thanks to him. Some times ago there were posts collecting this kind of sysadmin scripts.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 09 Dec 2003 05:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-script-for-oracle-instance/m-p/3139460#M800462</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-09T05:08:38Z</dc:date>
    </item>
  </channel>
</rss>

