<?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: rc shut/start script problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580449#M832622</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;here is the script in /sbin/init.d. it calls another longer script.  i just made a link to this in /sbin/rc2.d:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Invoke the script to issue the commands as the&lt;BR /&gt;# Oracle user.&lt;BR /&gt;&lt;BR /&gt;loc="/ora2db01/app/oracle/admin/bin"&lt;BR /&gt;script="${loc}/ora2_startup_dbs_ipl.ksh"&lt;BR /&gt;/usr/bin/su - oracle -c ${script}&lt;BR /&gt;#</description>
    <pubDate>Tue, 12 Jul 2005 11:50:52 GMT</pubDate>
    <dc:creator>p7</dc:creator>
    <dc:date>2005-07-12T11:50:52Z</dc:date>
    <item>
      <title>rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580446#M832619</link>
      <description>hi all&lt;BR /&gt;&lt;BR /&gt;we recently rebooted our rp8400 and the system&lt;BR /&gt;got stuck on the oracle startup script.  right after the kernal was booting it started getting "stty ...." repeatedly.  i rebooted in single user mode removed the links in /sbin/rc2.d for oracle startup and the system came up find.  then i tested the oracle script in crontab and from a command line and it worked fine.  so it must have been the rc links somehow.  anybody have an easy way to to startup scripts for oracle on a standalone box&lt;BR /&gt;&lt;BR /&gt;thx in advance&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jul 2005 07:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580446#M832619</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2005-07-12T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580447#M832620</link>
      <description>If the oracle startup script in /sbin/init.d works from the command line (ie. /sbin/init.d/oracle start), then the issue may very well be when you start oracle during the boot process.  Make sure the link is one of the last, if not the last, command issued at run level two (i.e. S999ORACLE) By having a lower number, you may have tried to start oracle before all of the subsytems were up.</description>
      <pubDate>Tue, 12 Jul 2005 07:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580447#M832620</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-07-12T07:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580448#M832621</link>
      <description>Please post your startup script.</description>
      <pubDate>Tue, 12 Jul 2005 11:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580448#M832621</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2005-07-12T11:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580449#M832622</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;here is the script in /sbin/init.d. it calls another longer script.  i just made a link to this in /sbin/rc2.d:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Invoke the script to issue the commands as the&lt;BR /&gt;# Oracle user.&lt;BR /&gt;&lt;BR /&gt;loc="/ora2db01/app/oracle/admin/bin"&lt;BR /&gt;script="${loc}/ora2_startup_dbs_ipl.ksh"&lt;BR /&gt;/usr/bin/su - oracle -c ${script}&lt;BR /&gt;#</description>
      <pubDate>Tue, 12 Jul 2005 11:50:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580449#M832622</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2005-07-12T11:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580450#M832623</link>
      <description>There is a template script in /sbin/init.d that can used to generate a start/stop script for oracle.  copy /sbin/init.d/template to /sbin/init.d/oracle, and modify the appropriate portions for your app. You should always use a script based on the template whenever you want an app to start/stop wtih the system startup/shutdown</description>
      <pubDate>Tue, 12 Jul 2005 12:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580450#M832623</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-07-12T12:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580451#M832624</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Also keep the starting no. the last &amp;amp; stopping no. the first in its run level for proper functioning. This will start oracle in the end while machine boots &amp;amp; stop oracle first while shutting down.&lt;BR /&gt;&lt;BR /&gt;The problem here seems due to not using the template file as indicated above.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Tue, 12 Jul 2005 12:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580451#M832624</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-07-12T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580452#M832625</link>
      <description>Part of your problem is the "su - oracle" rather than "su oracle". I know you want to use oracle's .profile but that is almost certainly the problem. The .profile contains command like tput, sttty, tabs, etc. which expect stdin to be a terminal. The better way todeal with this is to create a file, e.g. /usr/local/bin/oraenv.sh and set and export the environment there. Now both your rc'ed script AND oracle'. .profile should source (using the dot "." operator) &lt;BR /&gt;.&lt;SPACE&gt;/usr/local/bin/oraenv.sh &lt;BR /&gt;this file to set and export these variables.&lt;BR /&gt;&lt;BR /&gt;This sourced file must not contain a return or exit statement.&lt;BR /&gt;&lt;BR /&gt;Plan B.&lt;BR /&gt;Surround those commands in oracle' .profile with&lt;BR /&gt;if [[ -t 0 ]] # is stdin a tty device?&lt;BR /&gt;  then&lt;BR /&gt;    tset ...&lt;BR /&gt;    stty ...&lt;BR /&gt;  fi&lt;BR /&gt;&lt;/SPACE&gt;</description>
      <pubDate>Tue, 12 Jul 2005 12:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580452#M832625</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-12T12:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580453#M832626</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;can you try this:&lt;BR /&gt;=============================================&lt;BR /&gt;echo "/u01/app/oracle/product/8.1.7/bin/sqlplus /nolog &amp;lt;</description>
      <pubDate>Tue, 12 Jul 2005 21:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580453#M832626</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-07-12T21:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: rc shut/start script problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580454#M832627</link>
      <description>hi Patti&lt;BR /&gt;&lt;BR /&gt;Do the following steps:&lt;BR /&gt;&lt;BR /&gt;step 1: edit /etc/oratab file&lt;BR /&gt;&lt;BR /&gt;ORACLE_SID:ORACLE_HOME: {Y|N}&lt;BR /&gt;y -&amp;gt; for dbstart and dbshut scripts to startup and shutdoen the database&lt;BR /&gt;&lt;BR /&gt;step 2: Create dbora script in the /etc/init.d&lt;BR /&gt;&lt;BR /&gt;see attachment for the script&lt;BR /&gt;&lt;BR /&gt;step 3: Create symbolic links to the dbora script in the appropriate run-level&lt;BR /&gt;script directories&lt;BR /&gt;&lt;BR /&gt;# ln -s /etc/init.d/dbora /sbin/rc2.d/K10dbora&lt;BR /&gt;# ln -s /etc/init.d/dbora /sbin/rc3.d/S99dbora&lt;BR /&gt;&lt;BR /&gt;step 4: avoidance of "stty is not a typewriter" error message&lt;BR /&gt;&lt;BR /&gt;The not-a-typewriter error is caused by running commands where there is no&lt;BR /&gt;controlling tty device; that is, no interactive terminal is present. This would&lt;BR /&gt;be true for a script that runs in cron or has su - to run a batch job.&lt;BR /&gt;&lt;BR /&gt;Uncomment all stty commands in /home/$ORA_OWNER/.profile as $ORA_OWNER&lt;BR /&gt;Example:&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;# if [ "$TERM" = "" ]&lt;BR /&gt;# then&lt;BR /&gt;# eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;# else&lt;BR /&gt;# eval ` tset -s -Q `&lt;BR /&gt;# fi&lt;BR /&gt;# stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;# stty hupcl ixon ixoff&lt;BR /&gt;# tabs&lt;BR /&gt;&lt;BR /&gt;Recheck the scripts before applying...&lt;BR /&gt;Any suggestions warmly welcomed...&lt;BR /&gt;&lt;BR /&gt;Good Luck !!&lt;BR /&gt;&lt;BR /&gt;Vinod K</description>
      <pubDate>Tue, 12 Jul 2005 22:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-shut-start-script-problems/m-p/3580454#M832627</guid>
      <dc:creator>vinod_25</dc:creator>
      <dc:date>2005-07-12T22:36:48Z</dc:date>
    </item>
  </channel>
</rss>

