{"id":642,"date":"2009-04-23T12:23:49","date_gmt":"2009-04-23T10:23:49","guid":{"rendered":"http:\/\/www.ora-solutions.net\/web\/?p=642"},"modified":"2009-04-23T12:23:49","modified_gmt":"2009-04-23T10:23:49","slug":"diagnosing-cursor-pin-s-wait-on-x","status":"publish","type":"post","link":"https:\/\/www.ora-solutions.net\/web\/2009\/04\/23\/diagnosing-cursor-pin-s-wait-on-x\/","title":{"rendered":"Diagnosing &#8220;cursor: pin S wait on X&#8221;"},"content":{"rendered":"<p>I came across a metalink note (Note 786507.1) which describes a very short way to identify the blocker of a session waiting on mutex &#8220;cursor: pin S wait on X&#8221;. Previously, I thought it could only be analyzed with system state dumps, but the note describes that parameter P2RAW of wait event &#8220;cursor: pin S wait on X&#8221; contains the blocking session id and the refcount. For 32bit environments the field contains 4 bytes (2 bytes for session id, 2 bytes for refcount). On 64 bit environments, the field contains 8 bytes (4 vs. 4).<\/p>\n<blockquote><p>select  p2raw from v$session where event = &#8216;cursor: pin S wait on X&#8217;<\/p><\/blockquote>\n<p>The first 2 or 4 bytes from p2raw have to be converted to dec and point to the blocking Session ID. (SID)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I came across a metalink note (Note 786507.1) which describes a very short way to identify the blocker of a session waiting on mutex &#8220;cursor: pin S wait on X&#8221;. Previously, I thought it could only be analyzed with system state dumps, but the note describes that parameter P2RAW of wait event &#8220;cursor: pin S [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,19,5],"tags":[],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-10g","category-metalink","category-oracle-database"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":3,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":650,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/642\/revisions\/650"}],"wp:attachment":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}