<?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 Crontab, Startup scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486573#M18917</link>
    <description>1. I face one problem nowadays that the cronjobs which are scheduled by root thru SAM are automatically removed from crontab. For eg. If I have scheduled to shutdown the server at certain time and if I see cronjobs thru crontab -l, it will show that job in the file but after sometime, if I give the same command, it does not show there that particular command.&lt;BR /&gt;&lt;BR /&gt;Why it happens so?&lt;BR /&gt;&lt;BR /&gt;2. I want my Oracle database to startup when the server starts. So, I prepared one "test" script and put in /sbin/init.d and then created start and kill links and put them in /sbin/rc3.d and /sbin/rc0.d respectively. I gave file name as S300test.rc and K500test. &lt;BR /&gt;But, it has no effect when the server starts.&lt;BR /&gt;&lt;BR /&gt;What should be the problem?&lt;BR /&gt;&lt;BR /&gt;Pl. help.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Samir Shah</description>
    <pubDate>Thu, 25 Jan 2001 04:23:44 GMT</pubDate>
    <dc:creator>SAMIR SHAH_1</dc:creator>
    <dc:date>2001-01-25T04:23:44Z</dc:date>
    <item>
      <title>Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486573#M18917</link>
      <description>1. I face one problem nowadays that the cronjobs which are scheduled by root thru SAM are automatically removed from crontab. For eg. If I have scheduled to shutdown the server at certain time and if I see cronjobs thru crontab -l, it will show that job in the file but after sometime, if I give the same command, it does not show there that particular command.&lt;BR /&gt;&lt;BR /&gt;Why it happens so?&lt;BR /&gt;&lt;BR /&gt;2. I want my Oracle database to startup when the server starts. So, I prepared one "test" script and put in /sbin/init.d and then created start and kill links and put them in /sbin/rc3.d and /sbin/rc0.d respectively. I gave file name as S300test.rc and K500test. &lt;BR /&gt;But, it has no effect when the server starts.&lt;BR /&gt;&lt;BR /&gt;What should be the problem?&lt;BR /&gt;&lt;BR /&gt;Pl. help.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Samir Shah</description>
      <pubDate>Thu, 25 Jan 2001 04:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486573#M18917</guid>
      <dc:creator>SAMIR SHAH_1</dc:creator>
      <dc:date>2001-01-25T04:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486574#M18918</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;On the crontab issue, please check if you have the latest cron patch.&lt;BR /&gt;&lt;BR /&gt;On the startup script, I noticed that you named the SXXX script differently as compared to the KXXX script. Aside from the prefix SXXX and KXXX, both should bear the same script name, e.g., S340test.bak and K400test.bak.</description>
      <pubDate>Thu, 25 Jan 2001 05:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486574#M18918</guid>
      <dc:creator>Isralyn Manalac</dc:creator>
      <dc:date>2001-01-25T05:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486575#M18919</link>
      <description>The first thing you must do is read /etc/rc.log to see if your startup script was called and errors returned. &lt;BR /&gt;&lt;BR /&gt;Its very usual that you need add PATH, ORACLE_SID and other variables to your script, that are set in your interactive session.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2001 08:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486575#M18919</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-01-25T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486576#M18920</link>
      <description>Regarding the startup script, they are usually designed so that the same script is referenced on starting and stopping. For example to stop and start sendmail we do:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail start&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail stop&lt;BR /&gt;&lt;BR /&gt;To get it to start automatically, you configure /etc/rc.config.d/mailservs. Could there be an equivalent file there for Oracle?&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2001 10:18:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486576#M18920</guid>
      <dc:creator>Douglas Cromby_1</dc:creator>
      <dc:date>2001-01-25T10:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486577#M18921</link>
      <description>Hi,&lt;BR /&gt;Here is an example of rc.oracle that you should put in /sbin/init.d:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;export ORACTI_EXPLOIT=/opt/oracle/admin/exploit&lt;BR /&gt;export PATH=$PATH:/usr/bin:$ORACTI_EXPLOIT/proc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;case "$1" in&lt;BR /&gt;  start_msg)&lt;BR /&gt;        echo "Start Oracle"&lt;BR /&gt;        ;;&lt;BR /&gt;  stop_msg)&lt;BR /&gt;        echo "Stop Oracle"&lt;BR /&gt;        ;;&lt;BR /&gt;  start)&lt;BR /&gt;        $ORACTI_EXPLOIT/proc/db_start&lt;BR /&gt;        su - oracle  -c $ORACTI_EXPLOIT/proc/net_start&lt;BR /&gt;        ;;&lt;BR /&gt;  stop)&lt;BR /&gt;        su - oracle -c $ORACTI_EXPLOIT/proc/net_stop&lt;BR /&gt;        $ORACTI_EXPLOIT/proc/db_shut&lt;BR /&gt;        ;;&lt;BR /&gt;  *)&lt;BR /&gt;        echo "usage: $0 {start|stop}"&lt;BR /&gt;        #rval=1&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;==================&lt;BR /&gt;Then you will have to make the links Sxxxoracle and Kxxxoracle in the runlevel you have chosen.&lt;BR /&gt;You have have to adapt it to your needs...&lt;BR /&gt;As already mentionned by Carlos, the env has to be defined (ORACLE_HOME if you use it , PATH...)&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Victor&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2001 10:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486577#M18921</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-01-25T10:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486578#M18922</link>
      <description>Hi!&lt;BR /&gt;You might also want to edit your oratab file to read:&lt;BR /&gt;&lt;ORACLE_SID&gt;:&lt;ORACLE_HOME&gt;:Y&lt;BR /&gt;if your scripts is utilizing the Oracle-supplied scripts dbstart / dbshut located in $ORACLE_HOME/bin&lt;BR /&gt;Y in the last column starts the corresponding db at system start(assuming the rest of the scripts are set up correct).&lt;BR /&gt;&lt;BR /&gt;Andreas&lt;/ORACLE_HOME&gt;&lt;/ORACLE_SID&gt;</description>
      <pubDate>Thu, 25 Jan 2001 13:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486578#M18922</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2001-01-25T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486579#M18923</link>
      <description>As far as the cron....As stated earlier, I would check for the latest patch.&lt;BR /&gt;&lt;BR /&gt;On the Oracle start/stop.  I have attached a copy of my /sbin/init.d/oracle file I use to start and stop.  This uses the oracle release dbshut and dbstart.&lt;BR /&gt;&lt;BR /&gt;You will need to put your links in your respective rc directory. Plus you will need the file /etc/rc.config.d/oracle stating ORACLE_START=1</description>
      <pubDate>Fri, 26 Jan 2001 17:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486579#M18923</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-01-26T17:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486580#M18924</link>
      <description>Oh...The script uses oracle7 as oracle.  You will need to modify it to oracle or (the oracle software owner)&lt;BR /&gt;&lt;BR /&gt;Also, you need to make sure the /etc/oratab file has a Y at the end of the instances you want started and stopped.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Fri, 26 Jan 2001 17:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486580#M18924</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-01-26T17:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab, Startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486581#M18925</link>
      <description>Tought it might help for your startup script.&lt;BR /&gt;&lt;BR /&gt;Try to check also the actual script file mode/permission if it's executable.</description>
      <pubDate>Fri, 26 Jan 2001 18:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-startup-scripts/m-p/2486581#M18925</guid>
      <dc:creator>Kurtkarl</dc:creator>
      <dc:date>2001-01-26T18:25:13Z</dc:date>
    </item>
  </channel>
</rss>

