<?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: Oracle 10g automated startup/shutdown HP-UX 11.23 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162978#M614181</link>
    <description>Sorry, i found my mistake.&lt;BR /&gt;I had to run from root not from my oratst. Moreover i forget to change user oracle to my user oratst. Now database startup and shutdown but listener cant start and stop. I can connect to DB local but not remotely :(.&lt;BR /&gt;&lt;BR /&gt;I checked log file and found this:&lt;BR /&gt;/sbin/rc3.d/S990oracle: starting up&lt;BR /&gt;Fri May 28 14:33:41 WSTDST 2010&lt;BR /&gt;starting Oracle Net listener&lt;BR /&gt;starting Oracle databases&lt;BR /&gt;ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener&lt;BR /&gt;Usage: /u01/app/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME&lt;BR /&gt;Processing Database instance "prod": log file /u01/app/oracle/product/10.2.0/db_1/startup.log&lt;BR /&gt;&lt;BR /&gt;# su - oratst -c 'export'&lt;BR /&gt;doesnt show ORACLE_HOME environment. Should i add something in my script to set ORACLE_HOME for listener?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 28 May 2010 09:06:31 GMT</pubDate>
    <dc:creator>rustam_2</dc:creator>
    <dc:date>2010-05-28T09:06:31Z</dc:date>
    <item>
      <title>Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162964#M614167</link>
      <description>Hi everyone!&lt;BR /&gt;&lt;BR /&gt;I'm trying to make an automated procedure to startup/shutdown oracle at reboot time in a HP-UX 11.23 server. I've followed the steps explained in Oracle's Metalink "How to Start Database And Listener at System Reboot on Unix Systems" but its written for Oracle 9i server. And I have Oracle 10g. :p . I've done all the steps described there but as I hoped, it doesn't work. &lt;BR /&gt;&lt;BR /&gt;Does anybody have a script to make this work? &lt;BR /&gt;&lt;BR /&gt;10 Points will be given for the correct scripts =)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Miguel Rentes</description>
      <pubDate>Mon, 17 Mar 2008 15:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162964#M614167</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2008-03-17T15:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162965#M614168</link>
      <description>dbstart and dbshut should be included in the bin directory of oracle home.&lt;BR /&gt;&lt;BR /&gt;put them in your startup template file.&lt;BR /&gt;&lt;BR /&gt;1)cp /sbin/init.d/template /sbin/init.d/oracle&lt;BR /&gt;2)  edit /sbin/init.d/oracle startup and shutdown sections with su - oracle -c "$ORACLE_HOME/bin/dbstart or dbshut.  &lt;BR /&gt;3) modify CONTROL_VARIABLE to ORACLE.  &lt;BR /&gt;4)create /etc/rc.config.d/oracle and edit ORACLE=1&lt;BR /&gt;5) in /sbin/rc3.d. ln -s /sbin/init.d/oracle S900oracle&lt;BR /&gt;6) in /sbin/rc2.d. ln -s /sbin/init.d/oracle K900oracle&lt;BR /&gt;&lt;BR /&gt;Test it out.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Mar 2008 15:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162965#M614168</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-03-17T15:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162966#M614169</link>
      <description>hi Miguel,&lt;BR /&gt;&lt;BR /&gt;You can also follow the instructions in the document found in the URL below:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/934/startup.pdf" target="_blank"&gt;http://docs.hp.com/en/934/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;though generic, you can configure your oracle database to start using the same principles.&lt;BR /&gt;&lt;BR /&gt;if you need any further assistance, please let us know.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 17 Mar 2008 15:25:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162966#M614169</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-03-17T15:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162967#M614170</link>
      <description>here is my which i'm using long time &lt;BR /&gt;&lt;BR /&gt;(just uncomment and set your lines in the dbstart for listener starting and stopping)&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/sbin&lt;BR /&gt;export PATH&lt;BR /&gt;export oraowner=YOUR_ORA_OWNER&lt;BR /&gt;export ORACLE_HOME=YOUR_ORACLE_HOME&lt;BR /&gt;#&lt;BR /&gt;set -x&lt;BR /&gt;rval=0&lt;BR /&gt;case "$1" in&lt;BR /&gt;'start_msg')&lt;BR /&gt;     echo "Starting Oracle Databases"&lt;BR /&gt;     ;;&lt;BR /&gt;'stop_msg')&lt;BR /&gt;     echo "Stopping Oracle Databases"&lt;BR /&gt;     ;;&lt;BR /&gt;'start')&lt;BR /&gt;     su - $oraowner -c "$ORACLE_HOME/bin/dbstart"&lt;BR /&gt;     rval=0&lt;BR /&gt;     ;;&lt;BR /&gt;'stop')&lt;BR /&gt;     su - $oraowner -c "$ORACLE_HOME/bin/dbshut"&lt;BR /&gt;     rval=0&lt;BR /&gt;     ;;&lt;BR /&gt;*)&lt;BR /&gt;     echo "Usage \: dbora \&lt;START&gt;"&lt;BR /&gt;     rval=1&lt;BR /&gt;     ;;&lt;BR /&gt;esac;&lt;BR /&gt;exit $rval&lt;/START&gt;</description>
      <pubDate>Tue, 18 Mar 2008 06:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162967#M614170</guid>
      <dc:creator>patrik rybar_1</dc:creator>
      <dc:date>2008-03-18T06:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162968#M614171</link>
      <description>Hi Silva,&lt;BR /&gt;Please check the attached script. Its working on 10g. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;&lt;BR /&gt;Aashique</description>
      <pubDate>Tue, 18 Mar 2008 08:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162968#M614171</guid>
      <dc:creator>Aashique</dc:creator>
      <dc:date>2008-03-18T08:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162969#M614172</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just went through this problem and here is what I ended up with (attached).  It works very well and avoids the "issues" when trying to use "su" to the oracle account...&lt;BR /&gt;&lt;BR /&gt;The only pre-requisite for this version of the script is that root must be able to "ssh" to the oracle account without a password.  I'm not sure if you know how to generate the keys to achieve this - if not, let me know.  (The original script from Oracle used "remsh" instead of "ssh".)&lt;BR /&gt;&lt;BR /&gt;Hope it helps - I went through a lot to get this working, but it was worth it!&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Mar 2008 14:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162969#M614172</guid>
      <dc:creator>grahamswilson</dc:creator>
      <dc:date>2008-03-19T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162970#M614173</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;@Graham&lt;BR /&gt;&lt;BR /&gt;"The only pre-requisite for this version of the script is that root must be able to "ssh" to the oracle account without a password. I'm not sure if you know how to generate the keys to achieve this - if not, let me know. (The original script from Oracle used "remsh" instead of "ssh".)"&lt;BR /&gt;&lt;BR /&gt;Can you please provide the steps how to create these keys?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Rade&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Oct 2008 19:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162970#M614173</guid>
      <dc:creator>RadeS</dc:creator>
      <dc:date>2008-10-14T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162971#M614174</link>
      <description>Hi Rustam,&lt;BR /&gt;&lt;BR /&gt;Here's what I did to make this work.&lt;BR /&gt;&lt;BR /&gt;1) Log onto the system as root. Edit the file /etc/oratab. Add a line for any Oracle SID you want to start after a system reboot:&lt;BR /&gt;&lt;BR /&gt;&lt;ORACLE sid=""&gt;:/oracle/oraHome1:Y&lt;BR /&gt;&lt;BR /&gt;2) Create a script named oracle under /sbin/init.d and add the following contents:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;#installation&lt;BR /&gt;ORACLE_HOME=/oracle/oraHome1&lt;BR /&gt;PATH=${PATH}:$ORACLE_HOME/bin:/usr/bin&lt;BR /&gt;HOST=`hostname`&lt;BR /&gt;&lt;BR /&gt;#change the value of ORACLE to the login name of the oracle owner &lt;BR /&gt;ORACLE=oracle&lt;BR /&gt;&lt;BR /&gt;export ORACLE_HOME PATH&lt;BR /&gt;&lt;BR /&gt;LOG=$ORACLE_HOME/startup.log&lt;BR /&gt;rm -f $LOG&lt;BR /&gt;touch $LOG&lt;BR /&gt;chmod 666 $LOG&lt;BR /&gt;chown oracle:users $LOG&lt;BR /&gt;&lt;BR /&gt;# When HP-UX starts/stops&lt;BR /&gt;case $1 in&lt;BR /&gt;'start')&lt;BR /&gt;echo "$0: starting up" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;date &amp;gt;&amp;gt; $LOG&lt;BR /&gt;# Start Oracle Net&lt;BR /&gt;echo "starting Oracle Net listener" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;echo "starting Oracle databases" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;su - oracle -c â  $ORACLE_HOME/bin/dbstart &amp;gt;&amp;gt; $LOGâ  &lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/lsnrctl start &amp;gt;&amp;gt; $LOG"&lt;BR /&gt;;;&lt;BR /&gt;'stop')&lt;BR /&gt;echo "$0: shutting down" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;date &amp;gt;&amp;gt; $LOG&lt;BR /&gt;# Stop Oracle Net&lt;BR /&gt;echo "stopping Oracle Net listener" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;echo â  stopping Oracle databasesâ   &amp;gt;&amp;gt; $LOG&lt;BR /&gt;su â   oracle â  c â  $ORACLE_HOME/bin/dbshut &amp;gt;&amp;gt; $LOGâ  &lt;BR /&gt;su - oracle -c â  $ORACLE_HOME/bin/lsnrctl stop &amp;gt;&amp;gt; $LOGâ  &lt;BR /&gt;&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;echo " Starting Automated Oracle startup"&lt;BR /&gt;exit&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;#&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;3) Change this script's permissions and owner:&lt;BR /&gt;&lt;BR /&gt;chmod 750 /sbin/init.d/oracle&lt;BR /&gt;chown bin:bin /sbin/init.d/oracle&lt;BR /&gt;&lt;BR /&gt;4) Create the following links:&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/oracle /sbin/rc3.d/S99oracle&lt;BR /&gt;ln -s /sbin/init.d/oracle /sbin/rc0.d/K01oracle&lt;BR /&gt;&lt;BR /&gt;5) Logout as root. At the next system reboot you will have the instance specified above automatically started.&lt;BR /&gt;&lt;BR /&gt;Hope this procedure helps =)&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Miguel Rentes&lt;/ORACLE&gt;</description>
      <pubDate>Tue, 25 May 2010 09:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162971#M614174</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2010-05-25T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162972#M614175</link>
      <description>Hi Miguel,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10839/strt_stp.htm" target="_blank"&gt;http://download.oracle.com/docs/cd/E11882_01/server.112/e10839/strt_stp.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Tue, 25 May 2010 10:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162972#M614175</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-05-25T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162973#M614176</link>
      <description>Thanks a lot, Miguel Rentes that explained me every steps by detail. I just need to test them.&lt;BR /&gt;Listen, if you noticed script which you type has some strange symbols, i mean i dont know which letters are there. Would you attach script in text file?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;rustam&lt;BR /&gt;&lt;BR /&gt;P.S. I'm gonna do it tomorrow morning when i will be at work.</description>
      <pubDate>Wed, 26 May 2010 10:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162973#M614176</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-05-26T10:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162974#M614177</link>
      <description>Hi Rustam,&lt;BR /&gt;&lt;BR /&gt;Here's the script without those ugly characters (I did a copy-paste from a Word document and that's why it got like that... sorry!):&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;#installation&lt;BR /&gt;ORACLE_HOME=/oracle/oraHome1&lt;BR /&gt;PATH=${PATH}:$ORACLE_HOME/bin:/usr/bin&lt;BR /&gt;HOST=`hostname`&lt;BR /&gt;&lt;BR /&gt;#change the value of ORACLE to the login name of the oracle owner&lt;BR /&gt;ORACLE=oracle&lt;BR /&gt;&lt;BR /&gt;export ORACLE_HOME PATH&lt;BR /&gt;&lt;BR /&gt;LOG=$ORACLE_HOME/startup.log&lt;BR /&gt;rm -f $LOG&lt;BR /&gt;touch $LOG&lt;BR /&gt;chmod 666 $LOG&lt;BR /&gt;chown oracle:users $LOG&lt;BR /&gt;&lt;BR /&gt;# When HP-UX starts/stops&lt;BR /&gt;case $1 in&lt;BR /&gt;'start')&lt;BR /&gt;echo "$0: starting up" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;date &amp;gt;&amp;gt; $LOG&lt;BR /&gt;# Start Oracle Net&lt;BR /&gt;echo "starting Oracle Net listener" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;echo "starting Oracle databases" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/dbstart &amp;gt;&amp;gt; $LOG"&lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/lsnrctl start &amp;gt;&amp;gt; $LOG"&lt;BR /&gt;;;&lt;BR /&gt;'stop')&lt;BR /&gt;echo "$0: shutting down" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;date &amp;gt;&amp;gt; $LOG&lt;BR /&gt;# Stop Oracle Net&lt;BR /&gt;echo "stopping Oracle Net listener" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;echo "stopping Oracle databases" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/dbshut &amp;gt;&amp;gt; $LOG"&lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop &amp;gt;&amp;gt; $LOG"&lt;BR /&gt;&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;echo "Starting Automated Oracle startup"&lt;BR /&gt;exit&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;#&lt;BR /&gt;exit</description>
      <pubDate>Wed, 26 May 2010 12:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162974#M614177</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2010-05-26T12:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162975#M614178</link>
      <description>&lt;!--!*#--&gt;Shalom,&lt;BR /&gt;&lt;BR /&gt;There are a hundred different ways to get this done.&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;# Description: Start-up script for Oracle DB's and Apps&lt;BR /&gt;# Format:      oracle start_msg | stop_msg | start | stop&lt;BR /&gt;# Exit values: 0 = success; causes "OK" to show up in checklist.&lt;BR /&gt;#              1 = failure; causes "FAIL" to show up in checklist.&lt;BR /&gt;#              2 = skip; causes "N/A" to show up in checklist.&lt;BR /&gt;# Input and output:&lt;BR /&gt;#              stdin is redirected from /dev/null&lt;BR /&gt;#              stdout and stderr are redirected to the /etc/rc.log file&lt;BR /&gt;#                 during checklist mode, or to the console in raw mode.&lt;BR /&gt;&lt;BR /&gt;# -------------------------------------------------------------&lt;BR /&gt;# Initialize&lt;BR /&gt;# -------------------------------------------------------------&lt;BR /&gt;Arg=$1&lt;BR /&gt;Desc='Oracle Database and Apps '&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin&lt;BR /&gt;&lt;BR /&gt;# -------------------------------------------------------------&lt;BR /&gt;# Process argument&lt;BR /&gt;# -------------------------------------------------------------&lt;BR /&gt;case $Arg in&lt;BR /&gt;   'start_msg')&lt;BR /&gt;      echo "Starting the $Desc";;&lt;BR /&gt;   'stop_msg')&lt;BR /&gt;      echo "Stopping the $Desc";;&lt;BR /&gt;   'start')&lt;BR /&gt;      if [ -f /etc/rc.config.d/oracle ]&lt;BR /&gt;      then&lt;BR /&gt;         . /etc/rc.config.d/oracle&lt;BR /&gt;      else&lt;BR /&gt;         echo "ERROR: /etc/rc.config.d/oracle file MISSING"&lt;BR /&gt;      fi&lt;BR /&gt;&lt;BR /&gt;      if [ "$ORA_START" -eq 1 ]&lt;BR /&gt;      then&lt;BR /&gt;        /u01/app/oracle/local/scripts/start_ora_dana ALL&lt;BR /&gt;      else&lt;BR /&gt;         exit 2&lt;BR /&gt;      fi  # end if ORA_START=0 in /etc/rc.config.d/oracle&lt;BR /&gt;      ;;&lt;BR /&gt;   'stop')&lt;BR /&gt;      if [ -f /etc/rc.config.d/oracle ]&lt;BR /&gt;      then&lt;BR /&gt;         . /etc/rc.config.d/oracle&lt;BR /&gt;      else&lt;BR /&gt;         echo "ERROR: /etc/rc.config.d/oracle file MISSING"&lt;BR /&gt;      fi&lt;BR /&gt;&lt;BR /&gt;      if [ "$ORA_STOP" -eq 1 ]&lt;BR /&gt;      then&lt;BR /&gt;#       /u01/app/oracle/local/scripts/stop_ora_dana ALL&lt;BR /&gt;#     &lt;BR /&gt;        /u01/app/oracle/local/scripts/stop_ora_all.sh&lt;BR /&gt;      else&lt;BR /&gt;         exit 2&lt;BR /&gt;      fi  # end if ORA_STOP=0 in /etc/rc.config.d/oracle&lt;BR /&gt;      ;;&lt;BR /&gt;   *)&lt;BR /&gt;      echo "usage: $0 {start|stop|start_msg|stop_msg|signal}" 1&amp;gt;&amp;amp;2&lt;BR /&gt;      exit 1&lt;BR /&gt;      ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# This is classic HP-UX, using control files in /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;It works on all supported versions of Oracle Database server and apparently (I did not write this) Oracle apps.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 26 May 2010 17:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162975#M614178</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-05-26T17:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162976#M614179</link>
      <description>Once again - THANKS, Miguel Rentes.&lt;BR /&gt;&lt;BR /&gt;SEP, thanks.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;# This is classic HP-UX, using control files in /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;It works on all supported versions of Oracle Database server and apparently (I did not write this) Oracle apps.&lt;BR /&gt;&lt;BR /&gt;You suggest another script moreover to put this one in other catalog /etc/rc.config.d. Could\would you explain me different between action? Now i'm thinking which action to do.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rustam</description>
      <pubDate>Thu, 27 May 2010 03:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162976#M614179</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-05-27T03:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162977#M614180</link>
      <description>Hi Miguel,&lt;BR /&gt;I did all steps but it doesnt work. Oracles doesnt start.&lt;BR /&gt;I want to manually run the link S900oracle but get error:&lt;BR /&gt;$ ./S990oracle start&lt;BR /&gt;-bash: ./S990oracle: Permission denied&lt;BR /&gt;&lt;BR /&gt;though link permission has execute option&lt;BR /&gt;$ ls -al S990oracle&lt;BR /&gt;lrwxr-xr-x   1 root       sys             19 May 28 12:18 S990oracle -&amp;gt; /sbin/init.d/oracle&lt;BR /&gt;&lt;BR /&gt;what do you think but i did wrong? &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rustam</description>
      <pubDate>Fri, 28 May 2010 07:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162977#M614180</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-05-28T07:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162978#M614181</link>
      <description>Sorry, i found my mistake.&lt;BR /&gt;I had to run from root not from my oratst. Moreover i forget to change user oracle to my user oratst. Now database startup and shutdown but listener cant start and stop. I can connect to DB local but not remotely :(.&lt;BR /&gt;&lt;BR /&gt;I checked log file and found this:&lt;BR /&gt;/sbin/rc3.d/S990oracle: starting up&lt;BR /&gt;Fri May 28 14:33:41 WSTDST 2010&lt;BR /&gt;starting Oracle Net listener&lt;BR /&gt;starting Oracle databases&lt;BR /&gt;ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener&lt;BR /&gt;Usage: /u01/app/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME&lt;BR /&gt;Processing Database instance "prod": log file /u01/app/oracle/product/10.2.0/db_1/startup.log&lt;BR /&gt;&lt;BR /&gt;# su - oratst -c 'export'&lt;BR /&gt;doesnt show ORACLE_HOME environment. Should i add something in my script to set ORACLE_HOME for listener?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 May 2010 09:06:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162978#M614181</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-05-28T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162979#M614182</link>
      <description>Hi Rustam,&lt;BR /&gt;&lt;BR /&gt;I believe you user oratst should have environment variables ORACLE_HOME, ORACLE_BASE and ORACLE_SID set.&lt;BR /&gt;&lt;BR /&gt;Set these variables on user oratst's environment (through .login or .cshrc, see your environment please) and try again. &lt;BR /&gt;&lt;BR /&gt;Tell me if that worked.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Miguel Rentes</description>
      <pubDate>Fri, 28 May 2010 11:37:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162979#M614182</guid>
      <dc:creator>Miguel Silva Rentes</dc:creator>
      <dc:date>2010-05-28T11:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162980#M614183</link>
      <description>Hi Miguel Rentes,&lt;BR /&gt;definitly oratest has these environments, i checked again with $ evn and $export both showed list of environments where were these environments.&lt;BR /&gt;But when i type from root user:&lt;BR /&gt;# su - oratst -c 'export'&lt;BR /&gt;i didnt see ORACLE_HOME environments.&lt;BR /&gt;&lt;BR /&gt;Then i did like this:&lt;BR /&gt;# vi reboot_lsn&lt;BR /&gt;export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1&lt;BR /&gt;export PATH=${PATH}:${ORACLE_HOME}/bin&lt;BR /&gt;$ORACLE_HOME/bin/lsnrctl start &amp;gt;&amp;gt; LOG&lt;BR /&gt;&lt;BR /&gt;and saved this file in oratst's home&lt;BR /&gt;then run&lt;BR /&gt;#su - oratst ./reboot_lsn&lt;BR /&gt;it started my LISTENER after that i changed 3 values in this script to&lt;BR /&gt;export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1&lt;BR /&gt;export PATH=${PATH}:${ORACLE_HOME}/bin&lt;BR /&gt;$ORACLE_HOME/bin/lsnrctl start PROD&amp;gt;&amp;gt; LOG&lt;BR /&gt;&lt;BR /&gt;run once again and my listener PROD started.&lt;BR /&gt;&lt;BR /&gt;Now i'm thinking how to change your script. Your didnt statr even default LISTENER.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rustam</description>
      <pubDate>Fri, 28 May 2010 11:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162980#M614183</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-05-28T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162981#M614184</link>
      <description>I guess, the problem is to starting listener and not in the script's structure.&lt;BR /&gt;How can i start any software or service(in my situation lsnrctl) by root during starting up OS except this command:?&lt;BR /&gt;&lt;BR /&gt;su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctl start PROD &amp;gt;&amp;gt; LOG"&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/lsnrctl start PROD &amp;gt;&amp;gt; LOG"&lt;BR /&gt;&lt;BR /&gt;First i want to get this tip through the CLI if will be ok then will put in the script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rustam</description>
      <pubDate>Fri, 04 Jun 2010 08:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162981#M614184</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-06-04T08:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle 10g automated startup/shutdown HP-UX 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162982#M614185</link>
      <description>I found, i run this command&lt;BR /&gt;su - oracle -c "$ORACLE_HOME/bin/lsnrctl start PROD &amp;gt;&amp;gt; LOG"&lt;BR /&gt;withou '-' before user_name, like this&lt;BR /&gt;&lt;BR /&gt;su oracle -c "$ORACLE_HOME/bin/lsnrctl start PROD &amp;gt;&amp;gt; LOG"&lt;BR /&gt;&lt;BR /&gt;and listner PROD is started.&lt;BR /&gt;&lt;BR /&gt;But this script doest work on another server, on my standby server. OS, and softwares are the same. I checked environments in both servers. And determined that shell is different. Could it be thge reason? Where this script runs\works shell is bash (SHELL=/usr/local/bin/bash) and where doesnt work shell is bash also (SHELL=/bin/bash) but runs from other directory. Or cant be the reason of the problem?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rustam&lt;BR /&gt;)</description>
      <pubDate>Thu, 17 Jun 2010 05:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-10g-automated-startup-shutdown-hp-ux-11-23/m-p/4162982#M614185</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-06-17T05:04:53Z</dc:date>
    </item>
  </channel>
</rss>

