<?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 jobs - Shutdown of SAP &amp;amp; then Server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711702#M60732</link>
    <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply..!&lt;BR /&gt;Pls note to shutdown the SAP Database it is necessary to login as oracle user &amp;amp; also it is not thru /sbin/init.d/(script).&lt;BR /&gt;&lt;BR /&gt;Kindly suggest..!&lt;BR /&gt;&lt;BR /&gt;With Regds&lt;BR /&gt;Naveen Shetty.</description>
    <pubDate>Fri, 26 Apr 2002 08:00:01 GMT</pubDate>
    <dc:creator>Naveen Shetty</dc:creator>
    <dc:date>2002-04-26T08:00:01Z</dc:date>
    <item>
      <title>Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711700#M60730</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am having a HP 9000 L1000 Server with SAP R/3 Installed on HP-Unix 11i.&lt;BR /&gt;&lt;BR /&gt;Kindly if someone can guide me, if I need to shutdown SAP database &amp;amp; then Server at certian scheduled time, what is the way I can create CRON Jobs.&lt;BR /&gt;&lt;BR /&gt;Awaiting replies..!&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;Naveen Shetty.</description>
      <pubDate>Fri, 26 Apr 2002 07:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711700#M60730</guid>
      <dc:creator>Naveen Shetty</dc:creator>
      <dc:date>2002-04-26T07:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711701#M60731</link>
      <description>as root type in the following:&lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;This will bring you to the cron editor interface.&lt;BR /&gt;&lt;BR /&gt;It's vi based.&lt;BR /&gt;&lt;BR /&gt;you enter the command as follows:&lt;BR /&gt;&lt;BR /&gt;minute hour month day day_of_month weekday command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;to shut down sap I'd look for /sbin/init.d/&lt;SAP script=""&gt;&lt;/SAP&gt;&lt;BR /&gt;this would be assuming that SAP follows the HPUX standard of putting startup and shutdown scripts in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Scott.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2002 07:36:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711701#M60731</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-04-26T07:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711702#M60732</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply..!&lt;BR /&gt;Pls note to shutdown the SAP Database it is necessary to login as oracle user &amp;amp; also it is not thru /sbin/init.d/(script).&lt;BR /&gt;&lt;BR /&gt;Kindly suggest..!&lt;BR /&gt;&lt;BR /&gt;With Regds&lt;BR /&gt;Naveen Shetty.</description>
      <pubDate>Fri, 26 Apr 2002 08:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711702#M60732</guid>
      <dc:creator>Naveen Shetty</dc:creator>
      <dc:date>2002-04-26T08:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711703#M60733</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;as root-cron set&lt;BR /&gt;&lt;BR /&gt;22 00 5 5 * su - sidadm -c "stopsap"&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 26 Apr 2002 09:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711703#M60733</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-04-26T09:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711704#M60734</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;create a script and place it in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;command for stopping sap and oracle in this script like:&lt;BR /&gt;&lt;BR /&gt;su - sapadm -c stopsap&lt;BR /&gt;&lt;BR /&gt;hope that helps&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 26 Apr 2002 10:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711704#M60734</guid>
      <dc:creator>Michael Albrecht</dc:creator>
      <dc:date>2002-04-26T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711705#M60735</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can set up a cron job using the cron -e command, tha sap script to startup or shutdown would be something like the following:&lt;BR /&gt;&lt;BR /&gt;30 4 * * 1-6 /opt/omni/lbin/start_sap_production&lt;BR /&gt;&lt;BR /&gt;where in your case obviously specify the path where the script is, in our case it is in /opt/omni/lbin and owned by root and group is sys. In the start_sap_production script we have the Database server and the app servers, which should be like:&lt;BR /&gt;&lt;BR /&gt;remsh hp01base -n "su - c11adm  -c startsap "&lt;BR /&gt;remsh hp02base -n "su - c11adm  -c startsap   &amp;amp;"&lt;BR /&gt;remsh hp05base -n "su - c11adm  -c startsap   &amp;amp;"&lt;BR /&gt;remsh hp04base -n "su - c11adm  -c startsap   &amp;amp;"&lt;BR /&gt;&lt;BR /&gt;Just change the start with stop, and that should work to stop the DB and app servers. Hope this helps, thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Khurram</description>
      <pubDate>Fri, 26 Apr 2002 10:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711705#M60735</guid>
      <dc:creator>Khurram Khan_1</dc:creator>
      <dc:date>2002-04-26T10:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711706#M60736</link>
      <description>I have a script that performs a similar action. We run JDE OneWorld and shut it down along with the database every sunday to do a cold backup of the database with Omniback. Here's the script I wrote for it:&lt;BR /&gt;&lt;BR /&gt;# Script shuts down OW and Oracle, performs a cold backup, then restarts them&lt;BR /&gt;&lt;BR /&gt;# Su to jdeb7331 to shut down OneWorld&lt;BR /&gt;&lt;BR /&gt;date &amp;gt; /cron_out/jde.out&lt;BR /&gt;su - jdeb7331 -c /u02/oneworld/b7331/system/bin32/EndOneWorld.sh &amp;gt;&amp;gt; /cron_out/jde.out&lt;BR /&gt;&lt;BR /&gt;# Call script to shut down Oracle&lt;BR /&gt;&lt;BR /&gt;date &amp;gt; /cron_out/ora.out&lt;BR /&gt;su - oracle -c /app/oracle/cron/orashut.sh &amp;gt;&amp;gt; /cron_out/ora.out&lt;BR /&gt;&lt;BR /&gt;# Back up Oracle databse (/oradata01 and /oradata02)&lt;BR /&gt;&lt;BR /&gt;/opt/omni/bin/omnib 2&amp;gt;&amp;amp;1   -host         alphaerp   -compress             -exclude      /stand   -exclude      /usr   -exclude      /var   -exclude      /opt   -exclude      /tmp   -exclude      /app   -exclude      /home   -exclude      /u02   -exclude      /archive   -exclude      /sbin   -exclude      /dev   -exclude      /oraexport      -exclude      /arc_tmp   -exclude      /omnidb   -exclude      /u02/oneworld/b7331/packages   -device  L180_alphaerp_d1   -protect weeks 3   -keepcatalog weeks 3   -pool production_dlt &lt;BR /&gt;echo "The Oracle cold backup on Alphaerp finished on" `date "+%a %m-%d%n"` at `date "+%I:%M %p%n"` | mailx -s "Alphaerp &lt;BR /&gt;Cold Backup Complete" root&lt;BR /&gt;echo "The Oracle cold backup on Alphaerp finished on" `date "+%a %m-%d%n"` at `date "+%I:%M %p%n"` | mailx -s "Alphaerp &lt;BR /&gt;Cold Backup Complete" oracle&lt;BR /&gt;&lt;BR /&gt;# Call script to restart Oracle&lt;BR /&gt;&lt;BR /&gt;date &amp;gt;&amp;gt; /cron_out/ora.out&lt;BR /&gt;su - oracle -c /app/oracle/cron/orastart.sh &amp;gt;&amp;gt; /cron_out/ora.out&lt;BR /&gt;&lt;BR /&gt;# Su to jdeb7331 to restart OneWorld&lt;BR /&gt;&lt;BR /&gt;date &amp;gt;&amp;gt; /cron_out/jde.out&lt;BR /&gt;su - jdeb7331 -c /u02/oneworld/b7331/system/bin32/rmics.sh &amp;gt;&amp;gt; /cron_out/jde.out&lt;BR /&gt;su - jdeb7331 -c /u02/oneworld/b7331/system/bin32/RunOneWorld.sh &amp;gt;&amp;gt; /cron_out/jde.out&lt;BR /&gt;&lt;BR /&gt;Here is the Oracle shutdown script that is called:&lt;BR /&gt;&lt;BR /&gt;svrmgrl mode=line &amp;lt;&lt;EOFDBA&gt;&lt;/EOFDBA&gt;connect internal&lt;BR /&gt;shutdown immediate&lt;BR /&gt;exit&lt;BR /&gt;EOFDBA&lt;BR /&gt;lsnrctl stop&lt;BR /&gt;&lt;BR /&gt;And here is the Oracle startup script that is called:&lt;BR /&gt;&lt;BR /&gt;svrmgrl mode=line &amp;lt;&lt;EOFDBA&gt;&lt;/EOFDBA&gt;connect internal&lt;BR /&gt;startup open&lt;BR /&gt;exit&lt;BR /&gt;EOFDBA&lt;BR /&gt;&lt;BR /&gt;lsnrctl start&lt;BR /&gt;&lt;BR /&gt;I'm not sure how SAP is started and stopped, but I'd assume it's through a basic command(s) that could be replaced in the first script. Hope this helps.</description>
      <pubDate>Fri, 26 Apr 2002 12:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711706#M60736</guid>
      <dc:creator>Tim Woods_2</dc:creator>
      <dc:date>2002-04-26T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cron jobs - Shutdown of SAP &amp; then Server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711707#M60737</link>
      <description>Naveen bhai =))&lt;BR /&gt;&lt;BR /&gt;Kaise ho aap ?&lt;BR /&gt;&lt;BR /&gt;I think you should write a script for SAP startup and shutdown, test it with Oracle user id and place it in the cron file. Btw, why do you want to do this ? If this is part of the backup, then look for Backup's pre and post commands/scripts ( like in OB, Legato etc). By doing this, you don't need to setup the cron job; instead configure the start and stop scripts of backup.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Fri, 26 Apr 2002 12:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-jobs-shutdown-of-sap-amp-then-server/m-p/2711707#M60737</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-26T12:57:18Z</dc:date>
    </item>
  </channel>
</rss>

