<?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 Oracle Startup / Shutdown Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976720#M922720</link>
    <description>Does anyone have a working startup and shutdown script for Oracle 8 on HP-UX 11.00&lt;BR /&gt;Basically what I need is a script that I can run prior to a backup kicking off, to bring all the databses down, and then after the backup job is completed to bring them back up. This isn' the normal startup/shutdown script that runs on boot in rc. &lt;BR /&gt;&lt;BR /&gt;ANy help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gus&lt;BR /&gt;</description>
    <pubDate>Mon, 19 May 2003 19:24:51 GMT</pubDate>
    <dc:creator>Gus Mestousis</dc:creator>
    <dc:date>2003-05-19T19:24:51Z</dc:date>
    <item>
      <title>Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976720#M922720</link>
      <description>Does anyone have a working startup and shutdown script for Oracle 8 on HP-UX 11.00&lt;BR /&gt;Basically what I need is a script that I can run prior to a backup kicking off, to bring all the databses down, and then after the backup job is completed to bring them back up. This isn' the normal startup/shutdown script that runs on boot in rc. &lt;BR /&gt;&lt;BR /&gt;ANy help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gus&lt;BR /&gt;</description>
      <pubDate>Mon, 19 May 2003 19:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976720#M922720</guid>
      <dc:creator>Gus Mestousis</dc:creator>
      <dc:date>2003-05-19T19:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976721#M922721</link>
      <description>Sorry it took me so long to get to you.&lt;BR /&gt;&lt;BR /&gt;Attached is a tar file.&lt;BR /&gt;&lt;BR /&gt;It contains these three files...&lt;BR /&gt;&lt;BR /&gt;rwxr-xr-x   0/3   1079 Dec 24 08:08 2002 /usr/contrib/bin/shut.oracle&lt;BR /&gt;rwxr-xr-x   0/3    159 Dec 24 08:08 2002 /usr/contrib/bin/shutsid.sh&lt;BR /&gt;rwxr-x---   0/3   1246 Nov  6 08:39 2002 /sbin/init.d/oracle&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These scripts are designed to read the /etc/oratab file and shut down any instances desginated as Y or active at machine startup.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 May 2003 20:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976721#M922721</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-19T20:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976722#M922722</link>
      <description>Hi Gus,&lt;BR /&gt;&lt;BR /&gt;$ORACLE_HOME/bin/dbshut&lt;BR /&gt;&lt;BR /&gt;it will shutdown instance base on information in /etc/oratab.</description>
      <pubDate>Tue, 20 May 2003 00:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976722#M922722</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2003-05-20T00:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976723#M922723</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you have all the working database defined in your /etc/oratab file the just call &lt;BR /&gt;the script $ORACLE_HOME/bin/dbshut  to shutdown all the databases before the backup and then after the backup call&lt;BR /&gt;the script &lt;BR /&gt;$ORACLE_HOME/bin/dbstart&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2003 02:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976723#M922723</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2003-05-20T02:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976724#M922724</link>
      <description>well&lt;BR /&gt;&lt;BR /&gt;we normally uses dbshut and dbstart scripts in bin directory inside $ORACLE_HOME&lt;BR /&gt;&lt;BR /&gt;radhakrishnan</description>
      <pubDate>Tue, 20 May 2003 02:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976724#M922724</guid>
      <dc:creator>Radhakrishnan Venkatara</dc:creator>
      <dc:date>2003-05-20T02:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976725#M922725</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Just want to add that it might be wise to edit the dbshut script to do a "shutdown immediate" instead of the "shutdown [normal]"&lt;BR /&gt;This prevents you from having user sessions blocking the shutdown of the database and thus making the backup invalid.&lt;BR /&gt;("Shutdown normal" awaits the end of transactions before shutting down the instance)&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Andreas</description>
      <pubDate>Tue, 20 May 2003 06:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976725#M922725</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2003-05-20T06:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976726#M922726</link>
      <description>hi Gus,&lt;BR /&gt;&lt;BR /&gt;We use startup and shutdown scripts found in the /etc/rc*.d directories to make things happen.  Many times, these just run a script "dbstart" and "dbshut".&lt;BR /&gt;&lt;BR /&gt;It is preferable to do it yourself though.&lt;BR /&gt;&lt;BR /&gt;Normally, you would setup (as root) the startup/shutdown script in /etc/rc3.d and /etc/rc0.d.  Mine are /etc/rc3.d/S100oracle" (startup)and "/etc/rc0.d/K100oracle" (kill).&lt;BR /&gt; &lt;BR /&gt;These scripts are actually a symbolic link to the single script /etc/init.d/oracle.  It contains only:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;# Start/stop processes required for oracle&lt;BR /&gt;&lt;BR /&gt;case "$1" in&lt;BR /&gt;'start')&lt;BR /&gt;    su - oracle8i -c orastart&lt;BR /&gt;    su - ias902   -c webstop&lt;BR /&gt;    ;;&lt;BR /&gt;'stop')&lt;BR /&gt;    su - ias902  -c webstop&lt;BR /&gt;    su - oracle8i -c orastop&lt;BR /&gt;    ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In my case, i have 2 Oracle accounts on my machine, one for the 9iAS and 1 for the database.  I run simply a script "orastart" to start stuff for them and "orastop" to stop them.  I write orastart and orastop.  The nice thing about this is that if oracle8i needs to add/remove something from its startup/shutdown -- he doesn't need to get root to update the script, he just modifies orastart/stop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The orastart script for Oracle8i is as follows:&lt;BR /&gt;&lt;BR /&gt;#!/bin/csh&lt;BR /&gt;&lt;BR /&gt;lsnrctl start&lt;BR /&gt;&lt;BR /&gt;svrmgrl &amp;lt;&amp;lt; EOF&lt;BR /&gt;connect internal&lt;BR /&gt;startup&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Put it in $ORACLE_HOME/bin for Oracle8i.  It starts the listener, starts the database.  &lt;BR /&gt;&lt;BR /&gt;The shutdown script is similar, it looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/csh&lt;BR /&gt;&lt;BR /&gt;lsnrctl stop&lt;BR /&gt;&lt;BR /&gt;svrmgrl &amp;lt;&amp;lt; EOF&lt;BR /&gt;connect internal&lt;BR /&gt;shutdown immediate&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I needed to start more then one listener, I would have the appropriate commands in there to do so.&lt;BR /&gt;&lt;BR /&gt;This shows how to automate the starting of virtually anything (not just Oracle stuff) on HP-UX....&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Tue, 20 May 2003 06:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976726#M922726</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-05-20T06:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976727#M922727</link>
      <description>I would note the reason I don't use dbshut is that it sometimes hangs, making my cold backup window a real problem.&lt;BR /&gt;&lt;BR /&gt;Same thing has happend during system shutdown.&lt;BR /&gt;&lt;BR /&gt;My scripts solve both problems.&lt;BR /&gt;&lt;BR /&gt;I hope that the earlier answers by myself or other help, if so, please throw the other guys some points.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 May 2003 18:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976727#M922727</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-20T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976728#M922728</link>
      <description>Actually, your best option is to issue a "shutdown abort", "startup restrict", and a "shutdown immediate".  This will disconnect all of the sessions (including hung ones not affected by a shutdown immediate) as well as clear up any lock issues that might occur and force all sessions into rollback.  The restricted startup will keep any users without restricted session from logging in (ie: automated applications, users connecting directly, etc), and the shutdown immediate will ensure that you have a clean shutdown.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Tue, 20 May 2003 22:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976728#M922728</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-05-20T22:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976729#M922729</link>
      <description>I strongly suggest that the listener not be shutdown, started up, or queried. &lt;BR /&gt;&lt;BR /&gt;I find that the commands that handle the listener require a terminal.   There is probably a way around, but since the dtaa base is closed even with an open listener, I just do not bother.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 05:44:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976729#M922729</guid>
      <dc:creator>Dan Zucker</dc:creator>
      <dc:date>2003-05-21T05:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976730#M922730</link>
      <description>RE: S. Protter statement that&lt;BR /&gt;his shutdowns sometimes  "hangs".  Shutting down Oracle using the oracle supplied dbshut normally should never hang if   You FIRST modify the scripts as noted in a previous  thread, by changing to "shutdown immediate" from just "shutdown".  Out of the box oracle supplied dbshut script only has "shutdown". A "shutdown" without the immediate or abort option gives the appearance of Oracle hanging, because it is waiting for everyone to logout.  I do not recommend "shutdown abort" as an accepted method for taking oracle down. If you have to do an abort, It would be wise to find out what is hanging your Oracle instance. The "hang" might be caused by a long transaction being rolled back or Archive log space is full.&lt;BR /&gt;&lt;BR /&gt;On my system I do not have the  luxury to have regular downtimes for backups. All our backup are hotbackups. .  We schedule the backups during non peak times. Recovery and full restoral has not been a problem.  You should automate Oracle shutdown/startup for OS System reboots.  Which is why dbshut/dbstart is associated with /sbin/init.d /etc/rc.d etc.. I also think normal backups should be done without shutting down oracle.  If the shuting down of oracle "cleans" things up, time would be better served finding out why unwanted processes/thread/client sessions "things" are hanging around. &lt;BR /&gt;&lt;BR /&gt;I will get off my soap box now.&lt;BR /&gt;Good Luck&lt;BR /&gt;Rory&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 14:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976730#M922730</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2003-05-21T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976731#M922731</link>
      <description>I have tried in the past to backup the databses while they are still up, and experience great difficulty on the restores. Due to the environment that I am in, I only have the luxury of shutting them down for a couple f hours during off-peak weekend use. The daily backups are done with the db up, and usually don't work when restoring. Have you had success restoring databses that you backed up while they were up? I am using Omniback, and am looking into adding the Online Extension to it for this reason, in the mean time I feel more comfortable knowing I have a good set every week with the db in a down state.&lt;BR /&gt;&lt;BR /&gt;Thanks everyone for the replies. I'll be sure to assign points to all.&lt;BR /&gt;&lt;BR /&gt;Gus</description>
      <pubDate>Wed, 21 May 2003 14:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976731#M922731</guid>
      <dc:creator>Gus Mestousis</dc:creator>
      <dc:date>2003-05-21T14:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976732#M922732</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;To your question about runnig online backups; use Oracle Recovery Manager (RMAN).&lt;BR /&gt;&lt;BR /&gt;It lets you do online backup (full or incremental) and all kinds of recovery scenarioes.&lt;BR /&gt;&lt;BR /&gt;Do not know if you have to use some software to connect to Omniback. We use Legato and this requires an rather expensive module for connectiong the RMAN to the Legato software (but it works well)&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Andreas</description>
      <pubDate>Mon, 26 May 2003 07:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976732#M922732</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2003-05-26T07:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976733#M922733</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As Andreas said above, RMAN is the way to go!&lt;BR /&gt;&lt;BR /&gt;BECAUSE&lt;BR /&gt;&lt;BR /&gt;RMAN decreases the chance of you making a mistake.  &lt;BR /&gt;&lt;BR /&gt;do you regularly test your backups?  &lt;BR /&gt;I was with a customer who wanted to know why their system was down for  days -- yes, days.  Why so long?  Well, they had a problem, had to restore from backup.  Never tested said backup.  Discovered all of a sudden their script kicked off the copies BEFORE the alter tablespace begin backup.  Whoops - System was fried.  Support helped them scavenge what they could but basically, it was a rebuild of the entire big database.  That would not happen with RMAN -- less for them to think about, less mistakes possible.&lt;BR /&gt;&lt;BR /&gt;Consider the following also:&lt;BR /&gt;You have a single bad block in a 16gig datafile, you are using RMAN in 9i.  What do you do?  You do an in place recovery of just the bad block, you do not offline the datafile, you do not offline the tablespace, you do not do 16gig of IO to restore the file, you do not roll 16gig of data forward.  You recover an individual 8k block.&lt;BR /&gt;&lt;BR /&gt;What would have happened if you didn't use RMAN?&lt;BR /&gt;take tablespace offline, restore 16gig, roll it forward then bring it online.  &lt;BR /&gt;&lt;BR /&gt;Which gives you less downtime?&lt;BR /&gt;Which fully recovers the fastest? &lt;BR /&gt;Which would you prefer to do?&lt;BR /&gt;&lt;BR /&gt;In the end -- if you know what you are doing fully, you TEST the backups on a recurring basis, you don't mind being down for a bad block -- the old fashioned way works but -- times are changing, there are more and more reasons to use it.&lt;BR /&gt;&lt;BR /&gt;I would also recommend that you do your backup to disk first then send them to tape (of course if you can afford it!)&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;If you want more about RMAN, please let us know...&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 26 May 2003 10:21:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976733#M922733</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-05-26T10:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Startup / Shutdown Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976734#M922734</link>
      <description>I restored live backups on several occasions. Without rman.  but we do have mirroring. &lt;BR /&gt;1. We put oracle in backup mode.&lt;BR /&gt;2. then broke the mirrors&lt;BR /&gt;3. took oracle out of backup&lt;BR /&gt;mode&lt;BR /&gt;4. fsck the the mirrors.&lt;BR /&gt;5. mount the mirrors in a&lt;BR /&gt;different sub directory.&lt;BR /&gt;6. backed them up.&lt;BR /&gt;&lt;BR /&gt;Having said the above. RMAN is better. especially if you do not have mirroring.&lt;BR /&gt;&lt;BR /&gt;Rory</description>
      <pubDate>Tue, 27 May 2003 19:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-startup-shutdown-script/m-p/2976734#M922734</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2003-05-27T19:21:41Z</dc:date>
    </item>
  </channel>
</rss>

