<?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: Error in script when use cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416132#M203365</link>
    <description>The default .proto file from an 11.00 system is:&lt;BR /&gt;&lt;BR /&gt;     # cat /var/adm/cron/.proto&lt;BR /&gt;     # @(#) $Revision: 27.1 $&lt;BR /&gt;     cd $d&lt;BR /&gt;     ulimit $l&lt;BR /&gt;     umask $m&lt;BR /&gt;     $&amp;lt;&lt;BR /&gt;&lt;BR /&gt;look more in man pages of proto....&lt;BR /&gt;&lt;BR /&gt;man 4 proto&lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Nov 2004 11:17:54 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2004-11-05T11:17:54Z</dc:date>
    <item>
      <title>Error in script when use cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416131#M203364</link>
      <description>Hi&lt;BR /&gt;One of our developers that use oracle, try to run one script, and by session runs ok, but when he try to run by cron or at, it doesn’t run properly and this appear&lt;BR /&gt;&lt;BR /&gt;11:21:28 SQL&amp;gt; BEGIN&lt;BR /&gt;11:21:28   2    SYS.DBMS_STATS.GATHER_INDEX_STATS (&lt;BR /&gt;11:21:28   3        OwnName        =&amp;gt; 'CPTSWEB'&lt;BR /&gt;11:21:28   4       ,IndName        =&amp;gt; 'IDX_N_C_C_ARTICULO_CCDY_ID'&lt;BR /&gt;11:21:28   5      ,Degree          =&amp;gt; NULL&lt;BR /&gt;11:21:28   6      ,No_Invalidate   =&amp;gt; FALSE);&lt;BR /&gt;11:21:28   7  END;&lt;BR /&gt;11:21:28   8  /&lt;BR /&gt;BEGIN&lt;BR /&gt;*&lt;BR /&gt;ERROR at line 1:&lt;BR /&gt;ORA-01116: error in opening database file 7&lt;BR /&gt;ORA-01110: data file 7: '/cpt6/oradata/DPHCPTPD/idx/DPHCPTPD_idx0101.dbf'&lt;BR /&gt;ORA-27092: skgfofi: size of file exceeds file size limit of the process&lt;BR /&gt;Additional information: 262143&lt;BR /&gt;Additional information: 281601&lt;BR /&gt;ORA-06512: at "SYS.DBMS_STATS", line 7989&lt;BR /&gt;ORA-06512: at "SYS.DBMS_STATS", line 8009&lt;BR /&gt;ORA-06512: at line 2&lt;BR /&gt;&lt;BR /&gt;He did some research and find this &lt;BR /&gt;&lt;BR /&gt;“The batch is scheduled by crontab. Due to feature of 'at', the job is executed &lt;BR /&gt;in a separate invocation of the shell, i.e., '/usr/bin/sh'. By default, the &lt;BR /&gt;ulimit set by sh shell is 4194303, which means not unlimited (4194303 * 512 bytes &lt;BR /&gt;of block size = 2Gb). No matter what shell is being used, the 'at' always set &lt;BR /&gt;that limit to 2Gb. The error then occurs because some operation accessed the data &lt;BR /&gt;in the datafile beyond 2GB. &lt;BR /&gt;Fix &lt;BR /&gt;~~~~ &lt;BR /&gt;If you need to use the 'at', then it is recommended to edit file &lt;BR /&gt;'/var/adm/cron/.proto' and modify the string 'ulimit $l' for 'ulimit unlimited'. &lt;BR /&gt;This garantees that the value 4194303 will no longer be used by the 'at'. “&lt;BR /&gt;&lt;BR /&gt;I saw my file .proto  but  I had ulimit $l instead of 1.&lt;BR /&gt;&lt;BR /&gt;What does .proto do ? &lt;BR /&gt;&lt;BR /&gt;Th</description>
      <pubDate>Fri, 05 Nov 2004 11:09:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416131#M203364</guid>
      <dc:creator>Griselda Sanchez</dc:creator>
      <dc:date>2004-11-05T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script when use cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416132#M203365</link>
      <description>The default .proto file from an 11.00 system is:&lt;BR /&gt;&lt;BR /&gt;     # cat /var/adm/cron/.proto&lt;BR /&gt;     # @(#) $Revision: 27.1 $&lt;BR /&gt;     cd $d&lt;BR /&gt;     ulimit $l&lt;BR /&gt;     umask $m&lt;BR /&gt;     $&amp;lt;&lt;BR /&gt;&lt;BR /&gt;look more in man pages of proto....&lt;BR /&gt;&lt;BR /&gt;man 4 proto&lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 11:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416132#M203365</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2004-11-05T11:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script when use cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416133#M203366</link>
      <description>AT command, in order to simulate the current environment while executing the job, adds all the environment settings and copies the contents of the /var/adm/cron/.proto file to the job file, except by replacing special variables with values.&lt;BR /&gt;&lt;BR /&gt;From the man page of proto&lt;BR /&gt;&lt;BR /&gt;$l    Replaced by the current file size  &lt;BR /&gt;      limit (see ulimit(2))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 14:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-script-when-use-cron/m-p/3416133#M203366</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-11-05T14:44:18Z</dc:date>
    </item>
  </channel>
</rss>

