<?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 crontab problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772658#M942385</link>
    <description>It seems that the environment settings are different.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
    <pubDate>Thu, 25 Jul 2002 14:40:13 GMT</pubDate>
    <dc:creator>Hai Nguyen_1</dc:creator>
    <dc:date>2002-07-25T14:40:13Z</dc:date>
    <item>
      <title>Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772657#M942384</link>
      <description>Hi Dudes,&lt;BR /&gt;&lt;BR /&gt;I've got some problem with the scheduling of some simple oracle script on my system:&lt;BR /&gt;this script launched from the command line works correctly:&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;/opt/app/oracle/product/8.0.5/bin/sqlplus&amp;lt;&amp;lt; EOF&lt;BR /&gt;username/password&lt;BR /&gt;begin&lt;BR /&gt;......&lt;BR /&gt;end;&lt;BR /&gt;/&lt;BR /&gt;exit;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the problem is that this script seems not to be working put into the CRONTAB, the error returned is&lt;BR /&gt;&lt;BR /&gt;Message file sp1&lt;LANG&gt;.msb not found&lt;BR /&gt;Error 6 initializing SQL*Plus&lt;BR /&gt;&lt;BR /&gt;Do you have any idea about what could the problem is?&lt;BR /&gt;&lt;BR /&gt;Thanks already!&lt;/LANG&gt;</description>
      <pubDate>Thu, 25 Jul 2002 14:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772657#M942384</guid>
      <dc:creator>BGiulio</dc:creator>
      <dc:date>2002-07-25T14:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772658#M942385</link>
      <description>It seems that the environment settings are different.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Thu, 25 Jul 2002 14:40:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772658#M942385</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-07-25T14:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772659#M942386</link>
      <description>It may be that some of the oracle user variables are not exported.&lt;BR /&gt;&lt;BR /&gt;Do you have the output of the cron piped to a file? i.e.&lt;BR /&gt;&lt;BR /&gt;$ cat /var/spool/cron/crontabs/oracle&lt;BR /&gt;0 01 * * * /tmp/oracle_script.sh &amp;gt; /tmp/mylog.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;You might get more interesting info there...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;James</description>
      <pubDate>Thu, 25 Jul 2002 14:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772659#M942386</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2002-07-25T14:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772660#M942387</link>
      <description>Even though you are running as probably Oracle, you do not have the usual expected environment under cron. You need to set and export all the usual ORACLE env vars (ORACLE_HOME,ORACLE_SID,...) inside your script.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2002 14:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772660#M942387</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-25T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772661#M942388</link>
      <description>As the other replies suggest try setting env Vars in your script.&lt;BR /&gt;For security so you don't have to include user/pass in the script you might want to use an OPS$ account?</description>
      <pubDate>Fri, 26 Jul 2002 06:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772661#M942388</guid>
      <dc:creator>Pierce Byrne_1</dc:creator>
      <dc:date>2002-07-26T06:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772662#M942389</link>
      <description>This is the shutdown script that we refer to in our oracle cron, remember you must SU to oracle and then run crontab -e. &lt;BR /&gt;&lt;BR /&gt;It has all the variables we use and it works obviously well. &lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;Jerry &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 10:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772662#M942389</guid>
      <dc:creator>Jerry Jaynes</dc:creator>
      <dc:date>2002-07-26T10:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772663#M942390</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I found a simple "centralized" way to do it.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;------------------------------------------------------------&lt;BR /&gt;In the crontab for the root user:&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;05,10,15,20,25,30,35,40,45,50,55    08,09,10,11,12      *      *   *  echo "/prod/global/admin/dba/myscript.sh"|su - oracle8i 1&amp;gt;/prod/global/admin/dba/logfiles/output-myscript.crn 2&amp;gt;/prod/global/admin/dba/logfiles/error-myscript.crn&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;</description>
      <pubDate>Fri, 26 Jul 2002 11:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772663#M942390</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-07-26T11:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772664#M942391</link>
      <description>Set your environment via oraenv:&lt;BR /&gt;&lt;BR /&gt;For example: passing your ORACLE SID as a parameter:&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/ksh&lt;BR /&gt;export PATH=$PATH:/usr/bin/X11:/usr/local/bin&lt;BR /&gt;umask=022&lt;BR /&gt;export ORACLE_SID=${1}&lt;BR /&gt;export ORAENV_ASK=NO&lt;BR /&gt;. oraenv&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 12:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772664#M942391</guid>
      <dc:creator>Jon A. Miller</dc:creator>
      <dc:date>2002-07-26T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle crontab problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772665#M942392</link>
      <description>If you can run the script as user oracle, then simply source ~oracle/.profile in the script that cron schedules. This should set the proper oracle environment.</description>
      <pubDate>Fri, 26 Jul 2002 18:10:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-crontab-problem/m-p/2772665#M942392</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2002-07-26T18:10:40Z</dc:date>
    </item>
  </channel>
</rss>

