{"id":618,"date":"2010-01-04T14:25:45","date_gmt":"2010-01-04T19:25:45","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=618"},"modified":"2011-07-06T10:13:44","modified_gmt":"2011-07-06T15:13:44","slug":"fire-fire-fire","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2010\/01\/04\/fire-fire-fire\/","title":{"rendered":"Fire!  Fire!  Fire!"},"content":{"rendered":"<p>If you find yourself in the middle of a hung database, you can do what follows (see Metalink for additional information)<\/p>\n<p><b>Can login to the database<\/b><\/p>\n<pre lang=\"sql\" line=\"1\">\r\nalter session set events 'immediate trace name SYSTEMSTATE level 10'; --three time waiting five minutes between\r\n<\/pre>\n<p><b>Can\u2019t login to the database<\/b><\/p>\n<p>Either&#8230;<\/p>\n<pre lang=\"sql\" line=\"1\">\r\nsqlplus -prelim \/ as sysdba\r\noradebug setmypid\r\noradebug unlimit;\r\noradebug dump systemstate 10\r\n<\/pre>\n<p>&#8230;or from the command line in linux\u2026<\/p>\n<pre lang=\"text\" line=\"1\">\r\nps aux | awk '{ printf $3;$3 = \"\" ;printf \" \"$0\"\\n\" }' | sort -nr | head -10 | grep oracle | awk '{print $1,$3,$11}' \r\ngdb\r\nattach one_of_the_processes_listed_above\r\nprint ksudss(10)\r\nquit\r\n<\/pre>\n<p>Sample output from 2 is below\u2026<\/p>\n<pre lang=\"text\" line=\"1\">\r\n13:19:49 oracle@racperf01 \/u02\/admin\/perfrac\/udump >gdb\r\nGNU gdb 6.6\r\nCopyright (C) 2006 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and\/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-suse-linux\".\r\n(gdb) attach 23124\r\nAttaching to process 23124\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/bin\/oracle...done.\r\nUsing host libthread_db library \"\/lib64\/libthread_db.so.1\".\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libskgxp10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libskgxp10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libhasgen10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libhasgen10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libskgxn2.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libskgxn2.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libocr10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libocr10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libocrb10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libocrb10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libocrutl10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libocrutl10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libjox10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libjox10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libclsra10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libclsra10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libdbcfg10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libdbcfg10.so\r\nReading symbols from \/u01\/app\/oracle\/product\/10.2.0\/lib\/libnnz10.so...done.\r\nLoaded symbols for \/u01\/app\/oracle\/product\/10.2.0\/lib\/libnnz10.so\r\nReading symbols from \/usr\/lib64\/libaio.so.1...done.\r\nLoaded symbols for \/usr\/lib64\/libaio.so.1\r\nReading symbols from \/lib64\/libdl.so.2...done.\r\nLoaded symbols for \/lib64\/libdl.so.2\r\nReading symbols from \/lib64\/libm.so.6...done.\r\nLoaded symbols for \/lib64\/libm.so.6\r\nReading symbols from \/lib64\/libpthread.so.0...done.\r\n[Thread debugging using libthread_db enabled]\r\n[New Thread 47057305337440 (LWP 23124)]\r\nLoaded symbols for \/lib64\/libpthread.so.0\r\nReading symbols from \/lib64\/libnsl.so.1...done.\r\nLoaded symbols for \/lib64\/libnsl.so.1\r\nReading symbols from \/lib64\/libc.so.6...done.\r\nLoaded symbols for \/lib64\/libc.so.6\r\nReading symbols from \/lib64\/ld-linux-x86-64.so.2...done.\r\nLoaded symbols for \/lib64\/ld-linux-x86-64.so.2\r\n0x00002acc61b1b900 in __read_nocancel () from \/lib64\/libpthread.so.0\r\n(gdb) print ksudss(10)\r\n[Switching to Thread 47057305337440 (LWP 23124)]\r\n$1 = 1256237080\r\n(gdb)\r\n<\/pre>\n<p>The output will be under bdump or udump (or the correct diag directory in 11G and later).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you find yourself in the middle of a hung database, you can do what follows (see Metalink for additional information) Can login to the database alter session set events &#8216;immediate trace name SYSTEMSTATE level 10&#8217;; &#8211;three time waiting five&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2010\/01\/04\/fire-fire-fire\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[19,22],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/618"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":9,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":956,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/618\/revisions\/956"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}