<?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: How to force oracle to hang in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950519#M927082</link>
    <description>Chris, Dietmar,&lt;BR /&gt;&lt;BR /&gt;I'll give these a try...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Mon, 14 Apr 2003 12:01:22 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2003-04-14T12:01:22Z</dc:date>
    <item>
      <title>How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950510#M927073</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm testing some MC/ServiceGuard monitoring scripts, and I'm looking for a reliable way to make Oracle 'hang' (as opposed to 'crash').&lt;BR /&gt;&lt;BR /&gt;I have a script that connects to oracle, and updates a row in a table with the current date. The script is timed, and if it doesn't respond after X seconds then the monitor can cause a failover/restart of oracle. Now I want to test this out, but to do this I need to force oracle to 'hang'. &lt;BR /&gt;&lt;BR /&gt;My first thought was that&lt;BR /&gt;&lt;BR /&gt;alter system archive log stop;&lt;BR /&gt;&lt;BR /&gt;followed by &lt;BR /&gt;&lt;BR /&gt;alter system switch logfile;&lt;BR /&gt;&lt;BR /&gt;several times until all redo log groups were used would work. This has indeed hung the session that issued the switch logfile command, but my monitor script is still happily chugging away updating the database every few seconds... I'm guessing that its still using the last redo log, and the whole database won't hang completely until this log is 'full' (which with the tiny updates I'm doing, and the size of the redo logs could take a while).&lt;BR /&gt;&lt;BR /&gt;Does anyone know a quicker/easier way of making the database 'hang' in this realistic manner ( I know I could send SIGSTOP to all the server processes, but thats not really a 'realistic' test)&lt;BR /&gt;&lt;BR /&gt;10 points for the perfect answer.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 11:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950510#M927073</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950511#M927074</link>
      <description>Kill the lmon daemon.&lt;BR /&gt;&lt;BR /&gt;The Advanced SG class taught by HP has an OPS lab which tests for oracle failovers.  I can provide you with what I have since it uses the oracle1.sh monitoring script.&lt;BR /&gt;&lt;BR /&gt;Verify cluster and both instances are running:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt;connect internal&lt;BR /&gt;SVRMGR&amp;gt;select * from s$active_instanaces&lt;BR /&gt;SVRMGR&amp;gt;shutdown&lt;BR /&gt;SVRMGR&amp;gt;exit&lt;BR /&gt;$exit&lt;BR /&gt;#vgchange -a n vg_ops  (* vg defined in oracle_package_cntl. *)&lt;BR /&gt;&lt;BR /&gt;Add the packages and check that they continue running:&lt;BR /&gt;&lt;BR /&gt;# cmrunpkg -n node1 ora_pkg&lt;BR /&gt;# cmviewcl&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;Test reformation:&lt;BR /&gt;&lt;BR /&gt;Power off node1.  Repeat for node2.&lt;BR /&gt;&lt;BR /&gt;Test reformation after internal failure:&lt;BR /&gt;&lt;BR /&gt;TOC on node1.  Repeat node2.&lt;BR /&gt;&lt;BR /&gt;Check instances:&lt;BR /&gt;&lt;BR /&gt;kill lmon on node1.  Repeat node2.&lt;BR /&gt;&lt;BR /&gt;Check instances:&lt;BR /&gt;&lt;BR /&gt;Run 'ins_rows_1' on node1 and kill lmon.  Repeat node 2.&lt;BR /&gt;&lt;BR /&gt;NOTE:  This last test will be a little different for non OPS servers.</description>
      <pubDate>Mon, 14 Apr 2003 11:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950511#M927074</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-14T11:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950512#M927075</link>
      <description>yeah, I know that will hang an OPS/RAC database, but single node Oracle databases don't have an lmon process, so that isn't going to work...&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 11:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950512#M927075</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T11:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950513#M927076</link>
      <description>If you have hot pluggable disk drives, unplug one that has the database on it.</description>
      <pubDate>Mon, 14 Apr 2003 11:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950513#M927076</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2003-04-14T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950514#M927077</link>
      <description>kill pmon.</description>
      <pubDate>Mon, 14 Apr 2003 11:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950514#M927077</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-14T11:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950515#M927078</link>
      <description>Good point John, but I'd expect my EMS HA Monitors to pick that up before my oracle monitor does... I'm really looking to test a software hang of the database rather than a hang caused by failing hardware... and besides on my test kit I'm using internal disks!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 11:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950515#M927078</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950516#M927079</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;to fill the redologs the best way is to inesrt and delete data.&lt;BR /&gt;&lt;BR /&gt;create table redofill_test (col1 char(2000)) tablespace &lt;WHATYOUWANT&gt; ;&lt;BR /&gt;&lt;BR /&gt;begin&lt;BR /&gt;  for i in 1 .. 10000&lt;BR /&gt;  loop&lt;BR /&gt;    insert into redofill_test values ('a');&lt;BR /&gt;    commit;&lt;BR /&gt;    delete from redofill_test;&lt;BR /&gt;    commit;&lt;BR /&gt;  end loop;&lt;BR /&gt;end;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;drop table redofill_test;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;char is a good choice for the datatype because oracle allocates 2000 bytes for each row.&lt;BR /&gt;&lt;BR /&gt;Chris&lt;/WHATYOUWANT&gt;</description>
      <pubDate>Mon, 14 Apr 2003 11:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950516#M927079</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-04-14T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950517#M927080</link>
      <description>Killing pmon doesn't cause a hang, it causes the database to crash.&lt;BR /&gt;&lt;BR /&gt;And I get this from my insert script:&lt;BR /&gt;&lt;BR /&gt;ERROR:&lt;BR /&gt;ORA-01034: ORACLE not available&lt;BR /&gt;ORA-27101: shared memory realm does not exist&lt;BR /&gt;&lt;BR /&gt;So not a hang, but a crash.&lt;BR /&gt;&lt;BR /&gt;Keep em coming!&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 11:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950517#M927080</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950518#M927081</link>
      <description>Maybe you should only suspend the pmon? Afterwards you could resume it again.&lt;BR /&gt;&lt;BR /&gt;# kill -STOP &lt;PID&gt;&lt;BR /&gt;...&lt;BR /&gt;# kill -CONT &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.&lt;/PID&gt;&lt;/PID&gt;</description>
      <pubDate>Mon, 14 Apr 2003 11:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950518#M927081</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-04-14T11:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950519#M927082</link>
      <description>Chris, Dietmar,&lt;BR /&gt;&lt;BR /&gt;I'll give these a try...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 12:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950519#M927082</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T12:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950520#M927083</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;how about locking a table in one session or keeping a session active.&lt;BR /&gt;&lt;BR /&gt;and issuing a "shutdown normal" (instead of shutdown immediate)&lt;BR /&gt;&lt;BR /&gt;haven't tried it though..&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Mon, 14 Apr 2003 12:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950520#M927083</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-14T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950521#M927084</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;That did the trick - when the redo log filled everything started to hang... and my script did detect the problem.&lt;BR /&gt;&lt;BR /&gt;Dietmar,&lt;BR /&gt;&lt;BR /&gt;Sending a SIGSTOP to pmon didn't seem to have any effect - perhaps I needed to leave it for longer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yogeeraj,&lt;BR /&gt;&lt;BR /&gt;I suspect that this will just produce a different error from my monitor script... it logs into the database as a seperate session every time it polls the database, so once a shutdown command has been issued, rather than a hang I'll just get a "ORA-01090: shutdown in progress - connection is not permitted" message from sqlplus.&lt;BR /&gt;&lt;BR /&gt;Any other ideas will also score points. The more different methods I have to test this the better.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2003 12:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950521#M927084</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950522#M927085</link>
      <description>hi Duncan,&lt;BR /&gt;&lt;BR /&gt;are you running 9i?&lt;BR /&gt;&lt;BR /&gt;If yes, here's the good news!&lt;BR /&gt;&lt;BR /&gt;In 9i, we have an alter database quiesce available with the resource manager. &lt;BR /&gt;This'll let you "pause" the system (put people on hold in effect).&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2003 12:32:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950522#M927085</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-14T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950523#M927086</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;Note that you can find more info in the Oracle9i Data Guard Concepts and Administration Release 2 Chapter 4. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You would do something like:&lt;BR /&gt;&lt;BR /&gt;Ensure that Resource Manager is configured.  (Resource Manager is a requirement when putting the database into a quiesced state.)&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;alter system quiesce restricted; &lt;BR /&gt;&lt;BR /&gt;then Unquiesce the system and and switch logfiles:  &lt;BR /&gt;alter system unquiesce; &lt;BR /&gt;       &lt;BR /&gt;alter system switch logfile; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2003 12:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950523#M927086</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-14T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950524#M927087</link>
      <description>Thanks Yogeeraj,&lt;BR /&gt;&lt;BR /&gt;unfortunately I'm on 8i...&lt;BR /&gt;&lt;BR /&gt;but i'll take note for when I have a 9i DB to cluster.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 13:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950524#M927087</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T13:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950525#M927088</link>
      <description>The way that I've had Oracle stop on me without crashing is to fill up the archive log destination. When log writer tries to write the archive log and there is no room, it does a "polite" wait. I've gotten caugth a full times with the destination full. It doesn't do any permanent damage and as soon as space becomes available it will start back without losing data.&lt;BR /&gt;&lt;BR /&gt;If you stop archiving as you said on your initial submittal, Oracle may not care if you do a switchlog unless it feels that it has to have dbwriter write the changes before it can re-use the log, it won't hang. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2003 11:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950525#M927088</guid>
      <dc:creator>R. Allan Hicks</dc:creator>
      <dc:date>2003-04-15T11:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to force oracle to hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950526#M927089</link>
      <description>Hi Duncan,&lt;BR /&gt;&lt;BR /&gt;Here is another test method to test your  MC/ServiceGuard monitoring scripts.&lt;BR /&gt;&lt;BR /&gt;I have picked this one form another client who accidently caused their database to hang, but seems to be a good test case.&lt;BR /&gt;&lt;BR /&gt;Database  will hang after a while (2 hours) if listener is started by root with "su -"&lt;BR /&gt;&lt;BR /&gt;Eg:- "su - oracle -c "lsnrtl start LISTENER_name.world"&lt;BR /&gt;&lt;BR /&gt;We know that the listener needs to be started by the oracle user, not root. It is started as root with the above command, so in fact it should be as if it was started by oracle. This will work fine at the command line. But if it is started in the serviceguard script, with the same command as above everything works fine for about 2 hours. Then every session will start to hang.&lt;BR /&gt;&lt;BR /&gt;Another way to cause your database to hang will be to issue the suspend command.&lt;BR /&gt;Database will be suspended  by an ALTER SYSTEM SUSPEND statement  &lt;BR /&gt;&lt;BR /&gt;The other ways is to fill your archivelog destination directory which others mentioned. &lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 03:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-force-oracle-to-hang/m-p/2950526#M927089</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2003-04-16T03:34:43Z</dc:date>
    </item>
  </channel>
</rss>

