<?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: update standard error message to oracle database in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724904#M253671</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;tail the logfile at the end and write that to the database&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
    <pubDate>Tue, 07 Feb 2006 10:24:04 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2006-02-07T10:24:04Z</dc:date>
    <item>
      <title>update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724896#M253663</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have a backup script that redirects all the standard input, errors to a logfile. We are trying to implement, to update the same information within oracle database.&lt;BR /&gt;&lt;BR /&gt;How can i get the errors to be updated as a record within my table.&lt;BR /&gt;&lt;BR /&gt;I tried &lt;BR /&gt;err=$?&lt;BR /&gt;&lt;BR /&gt;and update the value of $? to database, but this always returns 0&lt;BR /&gt;&lt;BR /&gt;but within my log i can view errors like EXIT STATUS 122 etc.&lt;BR /&gt;&lt;BR /&gt;I want to include this exact error message&lt;BR /&gt;&lt;BR /&gt;please advice,&lt;BR /&gt;AJi</description>
      <pubDate>Mon, 06 Feb 2006 03:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724896#M253663</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2006-02-06T03:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724897#M253664</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;*? is 0 because it changes every time&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You need to play with putting the output to a variable and writing that&lt;BR /&gt;&lt;BR /&gt;Something like&lt;BR /&gt;xx=$(/tmp/dol 2&amp;gt;&amp;amp;1;echo error $?)&lt;BR /&gt;echo $xx&lt;BR /&gt;/tmp/dol: fiel: not found. error 127&lt;BR /&gt;&lt;BR /&gt;Then you can put xx into the errorlog and the database&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;           Steve Steel&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Feb 2006 07:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724897#M253664</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2006-02-06T07:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724898#M253665</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Let me put a part of my backup script:&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;exec 1&amp;gt; $logfile&lt;BR /&gt;exec 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;/usr/openv/netbackup/bin/bpbackup -p policy_prod -h hp1 -s default -t 0 -w /appcon1_nfs/PRD/archive/*.arch&lt;BR /&gt;SeqID=15&lt;BR /&gt;exitcode=$?&lt;BR /&gt;$updateinfo/updatestats.sql $SeqID $exitcode&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;All errors is logged into logfile properly.&lt;BR /&gt;But not goes to the database, it returns 0&lt;BR /&gt;&lt;BR /&gt;Please advice how can i modify my script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Feb 2006 08:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724898#M253665</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2006-02-06T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724899#M253666</link>
      <description>You've got:&lt;BR /&gt;&lt;BR /&gt;SeqID=15&lt;BR /&gt;exitcode=$?&lt;BR /&gt;$updateinfo/updatestats.sql $SeqID $exitcode&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;The assignment of "SeqID" was successful, so the return code is 0.&lt;BR /&gt;&lt;BR /&gt;Swap the exitcode and SeqID assignments and it should work</description>
      <pubDate>Mon, 06 Feb 2006 11:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724899#M253666</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-02-06T11:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724900#M253667</link>
      <description>Yes i get the error number,&lt;BR /&gt;122 not EXIT STATUS 122,&lt;BR /&gt;&lt;BR /&gt;But in my logifile, i get the entire status - EXIT STATUS 122&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Aji</description>
      <pubDate>Tue, 07 Feb 2006 03:41:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724900#M253667</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2006-02-07T03:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724901#M253668</link>
      <description>That is all you are going to get.  The exitcode variable only knows the "status" returned by the prior process, in your case 122.&lt;BR /&gt;&lt;BR /&gt;You will either have to look-up the error message text in the oracle's message catalogs, or parse it out of the log file if you want the full text</description>
      <pubDate>Tue, 07 Feb 2006 09:31:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724901#M253668</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-02-07T09:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724902#M253669</link>
      <description>-- or --&lt;BR /&gt;&lt;BR /&gt;if the message is always "EXIT STATUS "&lt;SOME number=""&gt;&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;exitcode='EXIT STATUS '$?&lt;BR /&gt;&lt;/SOME&gt;</description>
      <pubDate>Tue, 07 Feb 2006 09:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724902#M253669</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-02-07T09:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724903#M253670</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the message is not always "EXIT STATUS "&lt;SOME number=""&gt;&lt;BR /&gt;&lt;BR /&gt;it contains the error description also.&lt;BR /&gt;&lt;BR /&gt;It is not oracle related, it is related to our backup software,&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;AJi&lt;/SOME&gt;</description>
      <pubDate>Tue, 07 Feb 2006 09:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724903#M253670</guid>
      <dc:creator>Aji Thomas</dc:creator>
      <dc:date>2006-02-07T09:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: update standard error message to oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724904#M253671</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;tail the logfile at the end and write that to the database&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
      <pubDate>Tue, 07 Feb 2006 10:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-standard-error-message-to-oracle-database/m-p/3724904#M253671</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2006-02-07T10:24:04Z</dc:date>
    </item>
  </channel>
</rss>

