<?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: Auto Shutdown and Startup script for Oracle8.1.7 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909693#M831323</link>
    <description>Thanks everybody. I'm making the changes and will be testing them next Friday.</description>
    <pubDate>Thu, 30 Jun 2005 06:24:49 GMT</pubDate>
    <dc:creator>Jesse Delk</dc:creator>
    <dc:date>2005-06-30T06:24:49Z</dc:date>
    <item>
      <title>Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909680#M831310</link>
      <description>I'm running HP-UX 11.11 Version1 and Oracle 8.1.7.   Does anyone have any scripts I could have for:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/oracle&lt;BR /&gt;/etc/rc.config.d/oracle&lt;BR /&gt;&lt;BR /&gt;From what I've read the second one maybe only&lt;BR /&gt;&lt;BR /&gt;ORACLE_START=1&lt;BR /&gt;export ORACLE_START&lt;BR /&gt;&lt;BR /&gt;but I'm not sure.  I have oratab set up and able to create symbolic links that I need once the first script is created.</description>
      <pubDate>Wed, 29 Jun 2005 08:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909680#M831310</guid>
      <dc:creator>Jesse Delk</dc:creator>
      <dc:date>2005-06-29T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909681#M831311</link>
      <description>Here's a little note I wrote for myself on setting up Oracle to start when a server reboots.  It 'assumes' that the box does not run MC/SG.  Now remember, they are my old notes, and on these small old boxes we would do a nightly shutdown and run cold backups.  So you may want to exclude things like that.&lt;BR /&gt;&lt;BR /&gt;How to start Oracle D/B on UNIX system startup automatically&lt;BR /&gt;Three steps&lt;BR /&gt;&lt;BR /&gt;First:&lt;BR /&gt;    set up Oracle start up scripts ( see DBA for this ) and edit the cronfile to include these&lt;BR /&gt;  Cronfile for most systems is : /var/spool/cron/crontabs/root&lt;BR /&gt;        then remember to crontab the root cronfile and ensure that this 'took' by doing a crontab -l.&lt;BR /&gt;&lt;BR /&gt;Second:&lt;BR /&gt;   create a file for the system to trigger on and start the Oracle d/b by creating a file (ex:&lt;BR /&gt;   start_oracle.sh)  it should include the following line(s):&lt;BR /&gt;&lt;BR /&gt;        su - oracle -c /home/oracle/start_oracle_db.sh&lt;BR /&gt;&lt;BR /&gt;   Note:  spacing in above is exactly as it should be; the user is oracle; the -c forces it to run&lt;BR /&gt;          the script on the line; /home/...is the location of the oracle start script from first step (see DBA)&lt;BR /&gt;    save this file (start_oracle.sh) in /usr/local/bin&lt;BR /&gt;&lt;BR /&gt;Third:&lt;BR /&gt;   Go to /sbin/rc3.d    (this is the default sbin startup routines)&lt;BR /&gt;   create a symbolic link file to startup here by entering the following:&lt;BR /&gt;&lt;BR /&gt;       ln -s /usr/local/bin/start_oracle.sh S123start_oracle_db.sh&lt;BR /&gt;&lt;BR /&gt;                (where 123 equal the number for filing purposes of this routine, be careful&lt;BR /&gt;      to file it properly for processing purposes)&lt;BR /&gt;&lt;BR /&gt;OK...that's pretty much it.&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jun 2005 10:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909681#M831311</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-06-29T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909682#M831312</link>
      <description>You can copy lp script (/sbin/lp) or similar one and modify accrdingly.&lt;BR /&gt;source the variable file (. /etc/rc.config.d/oracle) and call Oracle utility to start or stop the DB.&lt;BR /&gt;Remember that sbin processes are started by root user. So you use su - &lt;USER&gt; -c &amp;lt;script&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;TT&lt;BR /&gt;It's not necessary to have /etc/rc.config.d/oracle unless you want to control time to time. Simply keeping the script in /sbin/init.d and linking t rc3.d &amp;amp; rc2.d would be sufficient.&lt;/USER&gt;</description>
      <pubDate>Wed, 29 Jun 2005 10:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909682#M831312</guid>
      <dc:creator>Thayanidhi</dc:creator>
      <dc:date>2005-06-29T10:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909683#M831313</link>
      <description>There is a template file in /sbin/init.d that you can use to construct the oracle start/stop script.  copy it to an new name (oracle) and place the appropriate start and stop commands in the start/stop areas.&lt;BR /&gt;&lt;BR /&gt;The /etc/rc.config.d/oracle file is a flag file to disable/enable the start and/or stopping of oracle at system startup/shutdown.  It is very benficial to use when you are doing multiple boots (patching, upgrading, etc) and do not want to wait for oracle to load each time - you just set the flag to 0.&lt;BR /&gt;&lt;BR /&gt;Remember that when you make the links to use the "rule of 1000" the numbers in the S and K links should add up to 1000.  i.e. S900oracle and K100oracle.  This means oracle will be one of the last started, and one of the first shutdown.</description>
      <pubDate>Wed, 29 Jun 2005 10:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909683#M831313</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-06-29T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909684#M831314</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use the attached script. The script looks for the file called /etc/rc.config.d/oraconf, which should contain the following: &lt;BR /&gt;ORACLE_START=1&lt;BR /&gt;&lt;BR /&gt;Please take into account that the script uses Oracle standard procedures dbstart and dbshut. The procedures require /etc/oratab file, which must contain all used SIDs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 29 Jun 2005 11:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909684#M831314</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-06-29T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909685#M831315</link>
      <description>Hi Jesse,&lt;BR /&gt;&lt;BR /&gt;Here are my scripts:&lt;BR /&gt;&lt;BR /&gt;dbora817 is the script you must put at /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;start_boot_db.sh and start_boot_db.sh are the scripts you must have at the $ORA_BASE/.../ in dbora817.&lt;BR /&gt;&lt;BR /&gt;Finally, you create links to dbora817 at the run level you want them to start and stop: rc2.d/S866dbora817 and rc3.d/K133dbora817 are respectively the links I use here at my servers. Note that 866+133=1000...&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Wed, 29 Jun 2005 11:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909685#M831315</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-29T11:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909686#M831316</link>
      <description>Better spelling:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;start_boot_db.sh and start_boot_db.sh are the scripts you must have at the $ORA_BASE/... (see dbora817).&lt;BR /&gt;&lt;BR /&gt;Finally, you create links to dbora817 at the run level you want them to start and stop: /sbin/rc2.d/S866dbora817 and /sbin/rc3.d/K133dbora817 are respectively the links I use here at my servers. Note that 866+133=1000...&lt;BR /&gt;&lt;BR /&gt;Eric Antunes&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jun 2005 11:27:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909686#M831316</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-06-29T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909687#M831317</link>
      <description>One more thing........&lt;BR /&gt;&lt;BR /&gt;about the  links..some document from Oracle Metalink suggested....create /K100oracle in /sbin/rc1.d      &lt;BR /&gt;&lt;BR /&gt;It looks as though most of you said create it in   /sbin/rc3.d&lt;BR /&gt;&lt;BR /&gt;Which should it be or does it matter?</description>
      <pubDate>Wed, 29 Jun 2005 14:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909687#M831317</guid>
      <dc:creator>Jesse Delk</dc:creator>
      <dc:date>2005-06-29T14:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909688#M831318</link>
      <description>Application scripts usualy are started at run level3, and brought down at run level 2&lt;BR /&gt;&lt;BR /&gt;You want to bring up the application after all the basic subsystems are started, and they are a started at run level 2, and you want your application down before basic services are terminated, again at run level 2  Which is why you want a a low K number on the link i.e. K100oracle, so that the app is brought down before, say, networking.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 29 Jun 2005 15:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909688#M831318</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-06-29T15:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909689#M831319</link>
      <description>Jesse,&lt;BR /&gt;&lt;BR /&gt;If you'ave a valid oratab file in the /var/opt/oracle directory and the ORACLE_HOME variable is defined and exported, use the attached script and follow the steps below:&lt;BR /&gt;&lt;BR /&gt;1. Install the script in the /sbin/init.d directory, name it oracle.&lt;BR /&gt;&lt;BR /&gt;2. make symbolic links to the 2 and 3 run-levels for stopping and starting oracle respectively like...&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle &lt;BR /&gt;ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle</description>
      <pubDate>Wed, 29 Jun 2005 15:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909689#M831319</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-06-29T15:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909690#M831320</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;in /sbin/init.d/&lt;BR /&gt;&lt;BR /&gt;i have the attached script.&lt;BR /&gt;(please modify accordingly)&lt;BR /&gt;&lt;BR /&gt;then, two symbolic links created using:&lt;BR /&gt;ln -s /sbin/init.d/oracle /sbin/rc3.d/S900oracle&lt;BR /&gt;ln -s /sbin/init.d/oracle /sbin/rc2.d/K100oracle&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 29 Jun 2005 23:40:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909690#M831320</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-06-29T23:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909691#M831321</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;also, the /etc/rc.config.d/oracle is indeed also important!&lt;BR /&gt;content of file should be:&lt;BR /&gt;# ORACLE DATABASE configuration&lt;BR /&gt;#&lt;BR /&gt;# ORACLE_START_STOP :           Set to 1 to start ORACLE DATABASE&lt;BR /&gt;#&lt;BR /&gt;ORACLE_START_STOP=1&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jun 2005 23:43:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909691#M831321</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-06-29T23:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909692#M831322</link>
      <description>hi jesse&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&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 00:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909692#M831322</guid>
      <dc:creator>vinod_25</dc:creator>
      <dc:date>2005-06-30T00:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Shutdown and Startup script for Oracle8.1.7</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909693#M831323</link>
      <description>Thanks everybody. I'm making the changes and will be testing them next Friday.</description>
      <pubDate>Thu, 30 Jun 2005 06:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-shutdown-and-startup-script-for-oracle8-1-7/m-p/4909693#M831323</guid>
      <dc:creator>Jesse Delk</dc:creator>
      <dc:date>2005-06-30T06:24:49Z</dc:date>
    </item>
  </channel>
</rss>

