<?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: Database Start UP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449261#M10385</link>
    <description>Timothy:&lt;BR /&gt;&lt;BR /&gt;If you haven't read, read either of these documents: &lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/start_up.txt &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;The file /sbin/init.d/template is a good starting place for making your own start/stop scripts. &lt;BR /&gt;&lt;BR /&gt;The /sbin/init.d directory contains all scripts used to startup and shutdown various subsystems. &lt;BR /&gt;&lt;BR /&gt;Each script under /sbin/init.d should perform BOTH the startup and shutdown functions. In order to control the functionality within the script, each must also support standard arguments and exit codes. Scripts must be written for the POSIX shell. A template script may be found in /sbin/init.d/template. &lt;BR /&gt;&lt;BR /&gt;There is no reason why the startup and shutdown script cannot start/kill multiple, but related processes. Remember to choose the appropriate rc&lt;N&gt;.d directory -- one (1) is for core services; two (2) is for multiuser run-state; three (3) is for networked, multi-user; and four (4) is for graphical interfaces. Depending on the processes you are starting, or stopping, you want to make sure prerequisite services exist. &lt;BR /&gt;&lt;BR /&gt;Each script in /sbin/init.d performs BOTH the startup and shutdown functions, and each will have two links pointing towards the script from /sbin/rc*.d: one for the start action and one for the stop action. &lt;BR /&gt;&lt;BR /&gt;Start scripts begin with "S"; Kill (stop) scripts begin with "K". The order of execution for kill scripts is the reverse of the startup ones. &lt;BR /&gt;&lt;BR /&gt;Subsystems are killed in the opposite order they were started. This implies that kill scripts will generally not have the same numbers as their start script counterparts. For example, if two subsystems must be started in a given order due to dependencies (e.g., S111sys1 followed by S222uses_sys1), the counterparts to these scripts must be numbered so that the subsystems are stopped in the opposite order in which they were started (e.g., K555uses_sys1 followed by K777sys1). &lt;BR /&gt;&lt;BR /&gt;Also, kill scripts for start scripts in directory /sbin/rcN.d reside in /sbin/rc(N-1).d. For example /sbin/rc3.d/S123system2 and /sbin/rc2.d/K654system2 might be start/kill counterparts. &lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/N&gt;</description>
    <pubDate>Mon, 02 Oct 2000 01:11:05 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2000-10-02T01:11:05Z</dc:date>
    <item>
      <title>Database Start UP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449260#M10384</link>
      <description>AT present when the server is rebooted none of the oracle databases start up.&lt;BR /&gt;&lt;BR /&gt;I have several scripts which i run manuall to start the DB's.&lt;BR /&gt;&lt;BR /&gt;Am i able to just create the scripts in /sbin/init.d myself?&lt;BR /&gt;&lt;BR /&gt;I'd appreciate any information</description>
      <pubDate>Mon, 02 Oct 2000 00:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449260#M10384</guid>
      <dc:creator>Timothy Kaye</dc:creator>
      <dc:date>2000-10-02T00:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Database Start UP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449261#M10385</link>
      <description>Timothy:&lt;BR /&gt;&lt;BR /&gt;If you haven't read, read either of these documents: &lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/start_up.txt &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;The file /sbin/init.d/template is a good starting place for making your own start/stop scripts. &lt;BR /&gt;&lt;BR /&gt;The /sbin/init.d directory contains all scripts used to startup and shutdown various subsystems. &lt;BR /&gt;&lt;BR /&gt;Each script under /sbin/init.d should perform BOTH the startup and shutdown functions. In order to control the functionality within the script, each must also support standard arguments and exit codes. Scripts must be written for the POSIX shell. A template script may be found in /sbin/init.d/template. &lt;BR /&gt;&lt;BR /&gt;There is no reason why the startup and shutdown script cannot start/kill multiple, but related processes. Remember to choose the appropriate rc&lt;N&gt;.d directory -- one (1) is for core services; two (2) is for multiuser run-state; three (3) is for networked, multi-user; and four (4) is for graphical interfaces. Depending on the processes you are starting, or stopping, you want to make sure prerequisite services exist. &lt;BR /&gt;&lt;BR /&gt;Each script in /sbin/init.d performs BOTH the startup and shutdown functions, and each will have two links pointing towards the script from /sbin/rc*.d: one for the start action and one for the stop action. &lt;BR /&gt;&lt;BR /&gt;Start scripts begin with "S"; Kill (stop) scripts begin with "K". The order of execution for kill scripts is the reverse of the startup ones. &lt;BR /&gt;&lt;BR /&gt;Subsystems are killed in the opposite order they were started. This implies that kill scripts will generally not have the same numbers as their start script counterparts. For example, if two subsystems must be started in a given order due to dependencies (e.g., S111sys1 followed by S222uses_sys1), the counterparts to these scripts must be numbered so that the subsystems are stopped in the opposite order in which they were started (e.g., K555uses_sys1 followed by K777sys1). &lt;BR /&gt;&lt;BR /&gt;Also, kill scripts for start scripts in directory /sbin/rcN.d reside in /sbin/rc(N-1).d. For example /sbin/rc3.d/S123system2 and /sbin/rc2.d/K654system2 might be start/kill counterparts. &lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/N&gt;</description>
      <pubDate>Mon, 02 Oct 2000 01:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449261#M10385</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-02T01:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Database Start UP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449262#M10386</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can start and shutdown anything when system booting or shutdown.&lt;BR /&gt;Rename any script from /sbin/init.d and change according to your requirment and copy /etc/rc.config.d and also link the same script from /sbin/init.d to /sbin/rc1.d with K???scriptname and also link to /sbin/rc2.d with S???scriptname.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 02 Oct 2000 04:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449262#M10386</guid>
      <dc:creator>Mr Amir Mujtabain</dc:creator>
      <dc:date>2000-10-02T04:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Database Start UP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449263#M10387</link>
      <description>additionally don't forget to set in the /etc/oratab file the $ORACLE_SID:$ORACLE_HOME:[N/Y] to Y</description>
      <pubDate>Wed, 04 Oct 2000 12:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449263#M10387</guid>
      <dc:creator>Ron Gordon</dc:creator>
      <dc:date>2000-10-04T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Database Start UP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449264#M10388</link>
      <description>In the documentation there is a step by step guide to do this.  Here it is:&lt;BR /&gt;&lt;BR /&gt;1.  Edit the /etc/oratab file&lt;BR /&gt;DB entries must be as follows:&lt;BR /&gt;&lt;BR /&gt;ORACLE_SID:ORACLE_HOME:Y&lt;BR /&gt;&lt;BR /&gt;The last parameter (Y/N) determines whether you want it to start/stop the db automatically.&lt;BR /&gt;&lt;BR /&gt;2.  An entry for each DB you want to start/stop must have a Y at the end&lt;BR /&gt;&lt;BR /&gt;3.  Create a file named dbora in the /sbin/init.d directory if it does not exist yet&lt;BR /&gt;&lt;BR /&gt;4.  It should contain the following:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#Set ORA_HOME to be equivalent to the ORACLE_HOME&lt;BR /&gt;#from which you wish to execute dbstart and dbshut&lt;BR /&gt;#Set ORA_OWNER to the user id of the owner of the&lt;BR /&gt;#Oracle database in ORA_HOME&lt;BR /&gt;ORA_HOME=/oracle/app/product/815&lt;BR /&gt;ORA_OWNER=oracle&lt;BR /&gt;if [! -f $ORA_HOME/bin/dbstart]&lt;BR /&gt;then&lt;BR /&gt;echo "Oracle startup: cannot start"&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;case "$1" in&lt;BR /&gt;'start')&lt;BR /&gt;&lt;BR /&gt;#Start the Oracle databases:&lt;BR /&gt;#The following command assumes that the oracle login will not prompt the&lt;BR /&gt;#user for any values&lt;BR /&gt;&lt;BR /&gt;su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &amp;amp;&lt;BR /&gt;;;&lt;BR /&gt;'stop')&lt;BR /&gt;#Stop the Oracle databases:&lt;BR /&gt;#The following command assumes that the oracle login will not prompt the&lt;BR /&gt;#user for any values&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &amp;amp;&lt;BR /&gt;;;                                                                             &lt;BR /&gt;5.  Link dbora by entering &lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc0.d/K10dbora&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc0.d/S99dbora</description>
      <pubDate>Wed, 04 Oct 2000 12:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/database-start-up/m-p/2449264#M10388</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2000-10-04T12:42:36Z</dc:date>
    </item>
  </channel>
</rss>

