<?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: Startup and Shutdown scripts - Please help ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463322#M14935</link>
    <description>Hi Shirley,&lt;BR /&gt;&lt;BR /&gt;Not sure the file attached properly&lt;BR /&gt;Here is it&lt;BR /&gt;&lt;BR /&gt;Dan</description>
    <pubDate>Thu, 09 Nov 2000 11:25:17 GMT</pubDate>
    <dc:creator>Dan Hetzel</dc:creator>
    <dc:date>2000-11-09T11:25:17Z</dc:date>
    <item>
      <title>Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463314#M14927</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I would like my server to automatically bring up and shutdown my databases when the server boots up and shutdown respectively.(in the event that should there be a power failure in the middle of night and the server was rebooted, at least my databases are shutdown properly and was UP when I come into the office the next day)&lt;BR /&gt;How do I do that? Which files should I edit? &lt;BR /&gt;Currently we are running a cron job to schedule it to shutdown at and reboot at a specific time in the middle of the night.&lt;BR /&gt;&lt;BR /&gt;Please help !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shirley</description>
      <pubDate>Thu, 09 Nov 2000 11:01:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463314#M14927</guid>
      <dc:creator>Tan Shirley</dc:creator>
      <dc:date>2000-11-09T11:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463315#M14928</link>
      <description>You will need to write your own startup and shutdown script as per the files in /sbin/init.d then link it into the perticular run level directory (/sbin/rc?.d) Their is a file called template in /sbin/init.d which you can copy to another name then use to manage your database.  e.g cp /sbin/init.d/template to /sbin/init.d/database.  Then within the /sbin/rc3.d directory create a link " ln -s /sbin/init.d/database /sbin/rc3.d/Snnndatabase" (where nnn is a number which controls the order jobs are started lowest first) also in /sbin/rc2.d diroctory you will need a Knnndatabase file to close down. (nnn again a number which controls the order jobs are stopped , highest first). You may need to be aware but depending on your system setup if you have a powercut your machine may just halt and not perform a clean shutdown.</description>
      <pubDate>Thu, 09 Nov 2000 11:13:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463315#M14928</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2000-11-09T11:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463316#M14929</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To fully understand how the startup/shutdown mechanism works at boot time, see this white paper:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/boot.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/boot.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 09 Nov 2000 11:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463316#M14929</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-09T11:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463317#M14930</link>
      <description>You have to makes in /etc/rc.config.d and /sbin/init.d. In $ORACLE_HOME/bin, there are dbstart and dbshut files that you need to update with the databases SID's. See the attached file for a sample.&lt;BR /&gt;(&lt;BR /&gt;# Set path if path not set (if called from /etc/rc)&lt;BR /&gt;case $PATH in&lt;BR /&gt;    "") PATH=/bin:/usr/bin:/etc&lt;BR /&gt; export PATH ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;ORACLE_HOME=/oracle/oracle export ORACLE_HOME&lt;BR /&gt;PATH=$ORACLE_HOME/bin:$PATH export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#  instance specific startup section&lt;BR /&gt;ORACLE_SID=databasename export ORACLE_SID&lt;BR /&gt;svrmgrl &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;startup&lt;BR /&gt;EOF&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" WARM started."&lt;BR /&gt;else&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" NOT started."&lt;BR /&gt;fi&lt;BR /&gt;)</description>
      <pubDate>Thu, 09 Nov 2000 11:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463317#M14930</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-11-09T11:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463318#M14931</link>
      <description>You have to makes in /etc/rc.config.d and /sbin/init.d. In $ORACLE_HOME/bin, there are dbstart and dbshut files that you need to update with the databases SID's. See the attached file for a sample.&lt;BR /&gt;(&lt;BR /&gt;# Set path if path not set (if called from /etc/rc)&lt;BR /&gt;case $PATH in&lt;BR /&gt;    "") PATH=/bin:/usr/bin:/etc&lt;BR /&gt; export PATH ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;ORACLE_HOME=/oracle/oracle export ORACLE_HOME&lt;BR /&gt;PATH=$ORACLE_HOME/bin:$PATH export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#  instance specific startup section&lt;BR /&gt;ORACLE_SID=databasename export ORACLE_SID&lt;BR /&gt;svrmgrl &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;startup&lt;BR /&gt;EOF&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" WARM started."&lt;BR /&gt;else&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" NOT started."&lt;BR /&gt;fi&lt;BR /&gt;)</description>
      <pubDate>Thu, 09 Nov 2000 11:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463318#M14931</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-11-09T11:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463319#M14932</link>
      <description>Hi Shirley,&lt;BR /&gt;&lt;BR /&gt;Here attached is the startup script we use.&lt;BR /&gt;It needs to be put in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;You'll also need:&lt;BR /&gt;2 symbolic links to that file&lt;BR /&gt;the first one in /sbin/rc3.d called i.e. S999oracle&lt;BR /&gt;the second one in /sbin/rc2.d called i.e. K999oracle&lt;BR /&gt;&lt;BR /&gt;a config file named /etc/rc.config.d/oracle containing the following (edit to your needs)&lt;BR /&gt;&lt;BR /&gt;--- cut here ---&lt;BR /&gt;# @(#) $Revision: 1.0 $&lt;BR /&gt;# File: /etc/rc.config.d/oracle&lt;BR /&gt;#&lt;BR /&gt;# The variable ORA_START controls whether the ORACLE will be &lt;BR /&gt;# started on entering multiuser mode. By default it is not started. &lt;BR /&gt;# If you want it to be, set the value to 1.&lt;BR /&gt;# (31.05.95, Foerster/HP)&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;ORA_START=1&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# ORA-administrator-user:&lt;BR /&gt;ORA_USER="oracle"&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Command to start up all databases :&lt;BR /&gt;ORA_START_COMMAND="/usr/local/bin/dbstartd"&lt;BR /&gt;#&lt;BR /&gt;# Command to shutdown all databases :&lt;BR /&gt;ORA_STOP_COMMAND="/usr/local/bin/dbshutd"&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Command to start LISTENER :&lt;BR /&gt;LSNR_START_COMMAND="/opt/oracle/734/bin/lsnrstart"&lt;BR /&gt;#&lt;BR /&gt;# Command to start AGENT :&lt;BR /&gt;AGENT_START_COMMAND="/usr/local/bin/dbsnmp_start"&lt;BR /&gt;#&lt;BR /&gt;# Command to stop LISTENER :&lt;BR /&gt;LSNR_STOP_COMMAND="/opt/oracle/734/bin/lsnrstop"&lt;BR /&gt;#&lt;BR /&gt;# Command to stop AGENT :&lt;BR /&gt;AGENT_STOP_COMMAND="/usr/local/bin/dbsnmp_stop"&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# (end)&lt;BR /&gt;&lt;BR /&gt;--- cut here&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The mechanism is the following:&lt;BR /&gt;When entering multi-user (level 3 = default), scripts in /sbin/rc3.d starting with letter S (for start) are run.&lt;BR /&gt;As well as scripts in rc1.d rc2.d before that&lt;BR /&gt;&lt;BR /&gt;When shutting down, coming from level 3, all scripts in rc2.d, rc1.d and rc0.d starting with letter K (for kill) are run&lt;BR /&gt;&lt;BR /&gt;This would start/stop oracle.&lt;BR /&gt;&lt;BR /&gt;Adjust all variables here above to suit your settings.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2000 11:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463319#M14932</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-09T11:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463320#M14933</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Here's a thread that will get you started:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x8afc6c96588ad4118fef0090279cd0f9,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x8afc6c96588ad4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 09 Nov 2000 11:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463320#M14933</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-09T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463321#M14934</link>
      <description>You have to makes in /etc/rc.config.d and /sbin/init.d. In $ORACLE_HOME/bin, there are dbstart and dbshut files that you need to update with the databases SID's. See the attached file for a sample.&lt;BR /&gt;(&lt;BR /&gt;# Set path if path not set (if called from /etc/rc)&lt;BR /&gt;case $PATH in&lt;BR /&gt;    "") PATH=/bin:/usr/bin:/etc&lt;BR /&gt; export PATH ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;ORACLE_HOME=/oracle/oracle export ORACLE_HOME&lt;BR /&gt;PATH=$ORACLE_HOME/bin:$PATH export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#  instance specific startup section&lt;BR /&gt;ORACLE_SID=databasename export ORACLE_SID&lt;BR /&gt;svrmgrl &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;startup&lt;BR /&gt;EOF&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" WARM started."&lt;BR /&gt;else&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" NOT started."&lt;BR /&gt;fi&lt;BR /&gt;)</description>
      <pubDate>Thu, 09 Nov 2000 11:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463321#M14934</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-11-09T11:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463322#M14935</link>
      <description>Hi Shirley,&lt;BR /&gt;&lt;BR /&gt;Not sure the file attached properly&lt;BR /&gt;Here is it&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Thu, 09 Nov 2000 11:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463322#M14935</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-09T11:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463323#M14936</link>
      <description>You have to makes in /etc/rc.config.d and /sbin/init.d. In $ORACLE_HOME/bin, there are dbstart and dbshut files that you need to update with the databases SID's. See the attached file for a sample.&lt;BR /&gt;(&lt;BR /&gt;# Set path if path not set (if called from /etc/rc)&lt;BR /&gt;case $PATH in&lt;BR /&gt;    "") PATH=/bin:/usr/bin:/etc&lt;BR /&gt; export PATH ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;ORACLE_HOME=/oracle/oracle export ORACLE_HOME&lt;BR /&gt;PATH=$ORACLE_HOME/bin:$PATH export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#  instance specific startup section&lt;BR /&gt;ORACLE_SID=databasename export ORACLE_SID&lt;BR /&gt;svrmgrl &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;startup&lt;BR /&gt;EOF&lt;BR /&gt;if [ $? -eq 0 ]; then&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" WARM started."&lt;BR /&gt;else&lt;BR /&gt;    echo ""&lt;BR /&gt;    echo "Database "${ORACLE_SID}" NOT started."&lt;BR /&gt;fi&lt;BR /&gt;)</description>
      <pubDate>Thu, 09 Nov 2000 11:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463323#M14936</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-11-09T11:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463324#M14937</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;In your question you mention "in the event of a power failure".&lt;BR /&gt;This brings up two points:-&lt;BR /&gt;&lt;BR /&gt;1. Are your servers not running off a UPS?&lt;BR /&gt;&lt;BR /&gt;2. If the server shuts down due to a power failure the chance of a Database corruption is high and automaticlly bringing up a database without control has potential problems.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2000 12:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463324#M14937</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2000-11-09T12:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463325#M14938</link>
      <description>In addition:&lt;BR /&gt;For a complete explanation of the scripts and how to customize your system, check out the startup/shutdown white paper:&lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/start_up.txt</description>
      <pubDate>Thu, 09 Nov 2000 13:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463325#M14938</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2000-11-09T13:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463326#M14939</link>
      <description>One more comment. If you are running oracle 8i , dbstart script does not do the job. You would not be able to start up the database unless the following are applied.&lt;BR /&gt;1) follow instruction of document 98418.1 from oracle&lt;BR /&gt;2) edit the dbstart file again. replace the awk line  /PLVSQL (Release|Version) with &lt;BR /&gt;/JServer (Release|Version) &lt;BR /&gt;&lt;BR /&gt;Just following the step one would not solve the problem if it is not enterprise version.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2000 18:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463326#M14939</guid>
      <dc:creator>Shumi Begum</dc:creator>
      <dc:date>2000-11-09T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Startup and Shutdown scripts - Please help !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463327#M14940</link>
      <description>Hi,&lt;BR /&gt;  Also you can descide in which init level the database should come up. If you want the database to come up at 4 level, then you have to link the the database startup script in /sbin/init.d/dbstart to /sbin/rc4.d, by executing &lt;BR /&gt;"ln -s /sbin/init.d/dbstart /sbin/rc4.d/S9500dbshut". Also you have to edit /etc/inittab and change the value after init to 4. When system comes up, init will execute scripts in /sbin/rc2.d then rc3.d and rc4.d.&lt;BR /&gt;&lt;BR /&gt;This way you can configure your software to start specfically after some app has started.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Cheers</description>
      <pubDate>Thu, 09 Nov 2000 19:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-and-shutdown-scripts-please-help/m-p/2463327#M14940</guid>
      <dc:creator>HPP</dc:creator>
      <dc:date>2000-11-09T19:48:40Z</dc:date>
    </item>
  </channel>
</rss>

