<?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 not shuting down as expected in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850534#M864675</link>
    <description>You are right, I am frightened to use shutdown abort all of the time. &lt;BR /&gt;&lt;BR /&gt;Possible modifying the pre-exec to shutdown abort after so much time on shutdown immediate.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?</description>
    <pubDate>Tue, 21 Oct 2003 09:06:58 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2003-10-21T09:06:58Z</dc:date>
    <item>
      <title>oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850529#M864670</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;Got Oracle 8.1.6 running on HPUX 11.00.&lt;BR /&gt;Have a DEV instance that is not in archive mode so the backups are done cold. Every so often during the pre-exec phase of shutting down the database it will hang, making the backup fail and the database to be in an unusable state. Need to shutdown abort to get it to startup again.&lt;BR /&gt;&lt;BR /&gt;For the pre-exec it is doing a shutdown immediate. Seems that a connection is still established and the database will not complete it shutdown.&lt;BR /&gt;&lt;BR /&gt;Any ideas on what may be the actual cause and possible solutions?&lt;BR /&gt;&lt;BR /&gt;Many thanks!&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 08:50:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850529#M864670</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-10-21T08:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850530#M864671</link>
      <description>check the alertlog of the instance and check what is it doing?&lt;BR /&gt;&lt;BR /&gt;Is the SMON cleaning up the temporary segments.&lt;BR /&gt;How much time does it take for the shutdown.&lt;BR /&gt;&lt;BR /&gt;What is the size of the database and log files.&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Tue, 21 Oct 2003 08:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850530#M864671</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-10-21T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850531#M864672</link>
      <description>Even on a shutdown immediate, oracle's dbshut command can sometimes hang because of commits and users.  ITs not really hanging, its jutt not working the way its supposed to.&lt;BR /&gt;&lt;BR /&gt;It go so annoying to me I developed a shutdown script that reads the /etc/oratab file and more efficiently shuts down the database. &lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;if [ "$LOGNAME" = "root" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "User root detected...shelling to oracle"&lt;BR /&gt;    /usr/bin/su - oracle -c "/usr/contrib/bin/shut.oracle"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ "$LOGNAME" = "oracle" ]&lt;BR /&gt;then&lt;BR /&gt;  oktorun="Y"&lt;BR /&gt;  echo "User oracle detected"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ "$LOGNAME" = "oraoper" ]&lt;BR /&gt;then&lt;BR /&gt;    oktorun="Y"&lt;BR /&gt;      echo "User oraoper detected"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ "$oktorun" = "Y" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "user is authorized...$LOGNAME"&lt;BR /&gt;else&lt;BR /&gt; echo "user must be oracle or oraoper: $LOGNAME"&lt;BR /&gt; exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;SetOptions=$-&lt;BR /&gt;set +u&lt;BR /&gt;&lt;BR /&gt;export ORATAB=/etc/oratab; [ -f $ORATAB ] ||&lt;BR /&gt;   export ORATAB=/var/opt/oracle/oratab&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sidfile=/utmp/sids.file&lt;BR /&gt;&lt;BR /&gt;# awk -F: '/^[^#*]+:/ {print $1 " " $3}' $ORATAB &amp;gt; $sidfile&lt;BR /&gt;# awk -F: '/^[^#*]+:/ {print $1}' $ORATAB &amp;gt; $sidfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat $ORATAB | while read LINE&lt;BR /&gt;do&lt;BR /&gt;    case $LINE in&lt;BR /&gt;     \#*) ;;#comment-line in oratab&lt;BR /&gt;     *)&lt;BR /&gt;&lt;BR /&gt;       if [ "`echo $LINE | awk -F: '/^[^#*]+:/ {print $3}' -`" = "Y" ] ; then&lt;BR /&gt;         ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`&lt;BR /&gt;         echo "checking oracle sid:  $ORACLE_SID "&lt;BR /&gt;         /usr/contrib/bin/shutsid.sh $ORACLE_SID&lt;BR /&gt;       fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   esac&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;shutsid.sh&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;ORACLE_SID=$1&lt;BR /&gt;. /usr/contrib/bin/setOraProfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sqlplus internal &amp;lt;&amp;lt; EOFTOP1&lt;BR /&gt;select * from v\$database;&lt;BR /&gt;shutdown immediate;&lt;BR /&gt;exit;&lt;BR /&gt;EOFTOP1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exit;&lt;BR /&gt;&lt;BR /&gt;Why does it work better? Because it doesn't use dbshut.  I've used it for years but Oracle has griped about it when told.&lt;BR /&gt;&lt;BR /&gt;Your choice.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 08:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850531#M864672</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-21T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850532#M864673</link>
      <description>It is standard practice here to do:&lt;BR /&gt;&lt;BR /&gt;shutdown abort&lt;BR /&gt;startup restrict&lt;BR /&gt;shutdown&lt;BR /&gt;&lt;BR /&gt;I was horrified when I first saw this but 3 years on I'm getting used to seeing it.&lt;BR /&gt;&lt;BR /&gt;Oracle are aware of what we do.&lt;BR /&gt;&lt;BR /&gt;Historically this was due to latch problems with OPS, but although OPS is long gone, we still use it.&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Tue, 21 Oct 2003 09:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850532#M864673</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-10-21T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850533#M864674</link>
      <description>Here is the snipet of the alert log as requested.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Shutting down instance (immediate)&lt;BR /&gt;License high water mark = 25&lt;BR /&gt;Tue Oct 21 02:07:51 2003&lt;BR /&gt;SHUTDOWN: waiting for active calls to complete.&lt;BR /&gt;Tue Oct 21 07:53:07 2003&lt;BR /&gt;Shutting down instance (abort)&lt;BR /&gt;License high water mark = 25&lt;BR /&gt;Instance terminated by USER, pid = 2598&lt;BR /&gt;Tue Oct 21 07:53:11 2003&lt;BR /&gt;Starting ORACLE instance (normal)&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 09:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850533#M864674</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-10-21T09:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850534#M864675</link>
      <description>You are right, I am frightened to use shutdown abort all of the time. &lt;BR /&gt;&lt;BR /&gt;Possible modifying the pre-exec to shutdown abort after so much time on shutdown immediate.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?</description>
      <pubDate>Tue, 21 Oct 2003 09:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850534#M864675</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-10-21T09:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850535#M864676</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;is the agent for Enterprise Manager running ?&lt;BR /&gt;If yes, stop it first.&lt;BR /&gt;&lt;BR /&gt;agtctl shutdown&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 21 Oct 2003 09:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850535#M864676</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-10-21T09:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850536#M864677</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Usually this happens if smon cleaning up temp segments or any active connections rolling back huge transactions.&lt;BR /&gt;&lt;BR /&gt;check used_ublk in v$transaction for any transaction being rollbacked. That gives you an approximate timing as to when it would finish rollback.&lt;BR /&gt;&lt;BR /&gt;possible solution would be, shutdown abort, followed by startup restrict then shutdown immediate. &lt;BR /&gt;&lt;BR /&gt;-&lt;BR /&gt;Stan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 12:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850536#M864677</guid>
      <dc:creator>Stan_17</dc:creator>
      <dc:date>2003-10-21T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850537#M864678</link>
      <description>Forgot to mention, if its smon cleaning up temp segments, use tempfiles (lmt) for the temporary tbs, to avoid ST enqueue contention on the dictionary tables.&lt;BR /&gt;&lt;BR /&gt;-&lt;BR /&gt;Stan</description>
      <pubDate>Tue, 21 Oct 2003 12:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850537#M864678</guid>
      <dc:creator>Stan_17</dc:creator>
      <dc:date>2003-10-21T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850538#M864679</link>
      <description>Right now I am going with a shutdown abort, startup restrict, shutdown.&lt;BR /&gt;&lt;BR /&gt;My goal is to modify the script so that it will time the amount of time it takes shutdown immediate. If too long the script will automatically revert to a shutdown abort.&lt;BR /&gt;&lt;BR /&gt;Many thanks for the help!</description>
      <pubDate>Tue, 21 Oct 2003 13:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850538#M864679</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-10-21T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850539#M864680</link>
      <description>The key is "SHUTDOWN: waiting for active calls to complete."  There should be a process id listed in the alert log just after this message.  That's the process that needs to be killed.  Here's one of mine:&lt;BR /&gt;&lt;BR /&gt;Fri Jul 23 00:10:14 2004&lt;BR /&gt;Active call for process 24050 user 'oraprd' program 'oracle@drerpdb01 (TNS V1-V3)'&lt;BR /&gt;SHUTDOWN: waiting for active calls to complete.&lt;BR /&gt;&lt;BR /&gt;In this case the process 24050 needs to be killed.  Once it's killed the database will shutdown normally.</description>
      <pubDate>Tue, 21 Sep 2004 16:39:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850539#M864680</guid>
      <dc:creator>Michael Fairclough</dc:creator>
      <dc:date>2004-09-21T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850540#M864681</link>
      <description>hi Rick,&lt;BR /&gt;&lt;BR /&gt;The database is waiting for pmon to clean up processes, but pmon is unable to clean them. The client connections to the server are causing the shutdown immediate or normal to hang. Killing them allows pmon to clean up and release the associated Oracle processes and resources. &lt;BR /&gt;&lt;BR /&gt;You can write a script to locate and kill any client connections to the database at the Unix level, as follows:&lt;BR /&gt;&lt;BR /&gt;a. Locate any client connections to the database using ps, and grep for any processes belonging to this &lt;SID&gt;.&lt;BR /&gt;&lt;BR /&gt;Example: ps -ef | grep YD&lt;BR /&gt;&lt;BR /&gt;b. Look for processes that include a 'LOCAL=NO' designation.&lt;BR /&gt;&lt;BR /&gt;Example: ora816 235 1 0 Sep 22 1:01 oracleYD (LOCAL=NO)&lt;BR /&gt;&lt;BR /&gt;c. Kill the Unix process(es) with the 'LOCAL=NO' designation.&lt;BR /&gt;&lt;BR /&gt;Example: kill -9 235&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;/SID&gt;</description>
      <pubDate>Wed, 22 Sep 2004 00:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850540#M864681</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-09-22T00:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850541#M864682</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;The normal procedure would be to shutdown or shutdown immeiate, but as mentioned it could hang if you have session still running (lon op ?) or a (very) long backout transaction in progress.&lt;BR /&gt;&lt;BR /&gt;shutdown abort will avoid that but the database would be in a status I don't think you can use for cloning.&lt;BR /&gt;shutdown abort + startup + shutdown&lt;BR /&gt;You may still have to replay (rollback) the aborted transaction and this too can take sometimes.&lt;BR /&gt;&lt;BR /&gt;The alternative is to use a watchdog for your shutdown immediate.&lt;BR /&gt;The watchdog process will check for the shutdown script still running after a while (!) , kill it and run a shutdown abort instead.&lt;BR /&gt;Not the nicest solution I agree. but the abort means you could start your backup.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc&lt;BR /&gt;&lt;BR /&gt;PS : if this is just a DEV database, you may just stick to shutdown abort + startup + shutdown as mentioned in an other post</description>
      <pubDate>Wed, 22 Sep 2004 04:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850541#M864682</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-09-22T04:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850542#M864683</link>
      <description>Many thanks for the extra info. &lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2004 08:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850542#M864683</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-09-22T08:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: oracle not shuting down as expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850543#M864684</link>
      <description>Close up</description>
      <pubDate>Wed, 22 Sep 2004 09:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-not-shuting-down-as-expected/m-p/4850543#M864684</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-09-22T09:00:13Z</dc:date>
    </item>
  </channel>
</rss>

