<?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: cron problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937082#M762803</link>
    <description>Hi,&lt;BR /&gt;when you run a script from cron, a minimum environment is created. You have to specify things like $ORACLE_HOME etc, most of the things as in /etc/profile and ~/.profile.&lt;BR /&gt;&lt;BR /&gt;Most people create a shell script with all these definitions in, which also includes the sqlplus statement. &lt;BR /&gt;You already recognised this when you added the full path for your sqlplus stsement.&lt;BR /&gt;&lt;BR /&gt;Something like.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ORACLE_HOME=....&lt;BR /&gt;ORACLE_SID=...&lt;BR /&gt;PATH=...&lt;BR /&gt;sqlplus '/ as sysdba' @ww.sql&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Feb 2007 04:06:16 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2007-02-02T04:06:16Z</dc:date>
    <item>
      <title>cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937081#M762802</link>
      <description>I would like to run the cron job&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CMD: /oracle/product/bin/sqlplus '/ as sysdba' @vvvv.sql&lt;BR /&gt;&amp;gt;  oracle 26953 c ±Ý  2¿ù  2 17:45:00 2007&lt;BR /&gt;&amp;lt;  oracle 26953 c ±Ý  2¿ù  2 17:45:00 2007 rc=1&lt;BR /&gt;! could not obtain latest contract from popen(3C)&lt;BR /&gt;&lt;BR /&gt;and have mail about the error.&lt;BR /&gt;&lt;BR /&gt;you have mail in /var/mail/oracle&lt;BR /&gt;$ mail&lt;BR /&gt;From oracle@iaeisdb Fri Feb  2 17:46:00 2007&lt;BR /&gt;Date: Fri, 2 Feb 2007 17:46:00 +0900 (KST)&lt;BR /&gt;From: oracle@iaeisdb&lt;BR /&gt;Message-Id: &amp;lt;200702020846.l128k0ba026958@iaeisdb&amp;gt;&lt;BR /&gt;To: oracle@iaeisdb&lt;BR /&gt;Subject: Output from "cron" command&lt;BR /&gt;Content-Length: 256&lt;BR /&gt;&lt;BR /&gt;Your "cron" job on iaeisdb&lt;BR /&gt;/oracle/product/bin/sqlplus '/ as sysdba' @vvvv.sql&lt;BR /&gt;&lt;BR /&gt;produced the following output:&lt;BR /&gt;&lt;BR /&gt;Error 6 initializing SQL*Plus&lt;BR /&gt;Message file sp1&lt;LANG&gt;.msb not found&lt;BR /&gt;SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory&lt;BR /&gt;&lt;BR /&gt;how can I erase the error like that?&lt;/LANG&gt;</description>
      <pubDate>Fri, 02 Feb 2007 03:49:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937081#M762802</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-02-02T03:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937082#M762803</link>
      <description>Hi,&lt;BR /&gt;when you run a script from cron, a minimum environment is created. You have to specify things like $ORACLE_HOME etc, most of the things as in /etc/profile and ~/.profile.&lt;BR /&gt;&lt;BR /&gt;Most people create a shell script with all these definitions in, which also includes the sqlplus statement. &lt;BR /&gt;You already recognised this when you added the full path for your sqlplus stsement.&lt;BR /&gt;&lt;BR /&gt;Something like.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ORACLE_HOME=....&lt;BR /&gt;ORACLE_SID=...&lt;BR /&gt;PATH=...&lt;BR /&gt;sqlplus '/ as sysdba' @ww.sql&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2007 04:06:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937082#M762803</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-02-02T04:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937083#M762804</link>
      <description>Hy&lt;BR /&gt;&lt;BR /&gt;You can source the oracle profile as follows:&lt;BR /&gt;&lt;BR /&gt;$( . /home/oracle/.profile &amp;gt;/dev/null 2&amp;gt;&amp;amp;1; /scripts.sh) &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;or execute it as oracle&lt;BR /&gt;&lt;BR /&gt;su - oracle -c "/script.sh"&lt;BR /&gt;&lt;BR /&gt;Regard</description>
      <pubDate>Fri, 02 Feb 2007 04:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937083#M762804</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-02-02T04:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937084#M762805</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;assuming that you have scheduled the job as the root user, your crontab should look like this:&lt;BR /&gt;&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |script&lt;BR /&gt;#    |     |of mo|     |of wk|&lt;BR /&gt;#----|-----|-----|-----|-----|--------------------------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;45 17 *  *   * echo "/path/to/your/script/script.sh; exit"|su - oracle 1&amp;gt;/path/to/your/logfiles/output-script.crn 2&amp;gt;/path/to/your/logfiles/error-script.crn&lt;BR /&gt;&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;if otherwise, please define all the environment variables in the script itself.&lt;BR /&gt;e.g ORACLE_HOME, ORACLE_SID, PATH etc&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sat, 03 Feb 2007 00:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937084#M762805</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-02-03T00:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937085#M762806</link>
      <description>I have set the parameter ORACLE_HOME, &lt;BR /&gt;and I have been running oracle user, the user have already set the parameter .&lt;BR /&gt;when it run the scripts.&lt;BR /&gt;&lt;BR /&gt;[iaeisdb:/]&amp;gt;  CMD: /oracle/script.sh&lt;BR /&gt;&amp;gt;  oracle 25489 c Â¿Ã¹  2Â¿Ã¹  5 10:50:00 2007&lt;BR /&gt;&amp;lt;  oracle 25489 c Â¿Ã¹  2Â¿Ã¹  5 10:50:00 2007 rc=1&lt;BR /&gt;! could not obtain latest contract from popen(3C): no such process.&lt;BR /&gt;&lt;BR /&gt;such error are logged at /var/cron/log&lt;BR /&gt;.&lt;BR /&gt;when root user run the scrpits it runs well but have same log ! could not obtain latest contract from popen(3C): no such process.&lt;BR /&gt;&lt;BR /&gt;when oracle do the script &lt;BR /&gt;it dose not run and have erros like&lt;BR /&gt;CMD: /oracle/script.sh&lt;BR /&gt;&amp;gt;  oracle 25489 c Â¿Ã¹  2Â¿Ã¹  5 10:50:00 2007&lt;BR /&gt;&amp;lt;  oracle 25489 c Â¿Ã¹  2Â¿Ã¹  5 10:50:00 2007 rc=1&lt;BR /&gt;! could not obtain latest contract from popen(3C): no such process.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 04 Feb 2007 21:01:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937085#M762806</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-02-04T21:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937086#M762807</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;such error message comes from cron, it basicly says that it can't get the contract for what ever process (sometimes long running job which gave output for sendmail and lost contact with mailing daemon)&lt;BR /&gt;crontab manpages / contract(4) could say you more i think&lt;BR /&gt;anyway, i newer saw this error on hpux, only on solaris&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Feb 2007 02:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937086#M762807</guid>
      <dc:creator>patrik rybar_1</dc:creator>
      <dc:date>2007-02-05T02:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937087#M762808</link>
      <description>when it comes to the error.&lt;BR /&gt;i applied to bug patch relative the error.&lt;BR /&gt;when i run the script but the error was disappeared.&lt;BR /&gt;&lt;BR /&gt;thank you all.&lt;BR /&gt;but I think doubtly that when i run the script with oracle but root it has still error&lt;BR /&gt;Error 6 initializing SQL*Plus&lt;BR /&gt;Message file sp1&lt;LANG&gt;.msb not found&lt;BR /&gt;SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LANG&gt;</description>
      <pubDate>Mon, 05 Feb 2007 03:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937087#M762808</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-02-05T03:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937088#M762809</link>
      <description>if you dont running script as oracle user &lt;BR /&gt;you must have set same environments like ora user or owner of oracle software on your machine&lt;BR /&gt;oracle_sid, oracle-home, path to ora binaries etc...</description>
      <pubDate>Mon, 05 Feb 2007 03:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/3937088#M762809</guid>
      <dc:creator>patrik rybar_1</dc:creator>
      <dc:date>2007-02-05T03:55:06Z</dc:date>
    </item>
  </channel>
</rss>

