{"id":1604,"date":"2010-05-17T12:00:00","date_gmt":"2010-05-17T12:00:00","guid":{"rendered":"http:\/\/orcldoug.com\/blog\/?p=1604"},"modified":"2010-05-17T12:00:00","modified_gmt":"2010-05-17T12:00:00","slug":"resource-manager-and-11g","status":"publish","type":"post","link":"http:\/\/orcldoug.com\/blog\/2010\/05\/17\/resource-manager-and-11g\/","title":{"rendered":"Resource Manager and 11g"},"content":{"rendered":"<p>I will get back to the stats stuff at some point, but I&#8217;m quite busy at the moment working on something that I can&#8217;t talk too much about, but which is throwing up enough generic issues to talk about. This is one that I meant to blog about ages ago when I first noticed it but when it caused us some problems last week, it was a useful reminder.<\/p>\n<p><strong>In summary you need to be careful when you upgrade to 11g because Resource Manager is enabled by default!<\/strong><\/p>\n<p>I don&#8217;t want to blog about the ins and outs of Resource Manager and whether it&#8217;s a good thing or not, but I do think this is a pretty extreme change to implement without a lot of surrounding publicity. It&#8217;s a bit like the auto stats gather job that appeared in 10g that caused so many problems for Oracle users. It <em>seems<\/em> like it might be a good idea, but would you really want to introduce it on to a stable system that you&#8217;re upgrading to 11g?<\/p>\n<p>But rather than just talk about the change, I wanted to highlight how I first realised it was going on &#8230;<\/p>\n<p><!-- s9ymdb:292 --><!-- s9ymdb:292 --><a class=\"serendipity_image_link\" href=\"\/serendipity\/uploads\/RM_11g.jpg\"><!-- s9ymdb:292 --><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"serendipity_image_center\" height=\"62\" src=\"\/serendipity\/uploads\/xRM_11g.serendipityThumb.jpg.pagespeed.ic.Mcs-Of_Mac.jpg\" width=\"110\"\/><\/a><\/p>\n<p>Yes, a pretty picture (albeit not too legible at that resolution, even when you click the thumbnail to see the bigger version). This is the sort of change that could have completely passed me by (and I am utterly convinced it has others) but, because I have a habit of looking at the Top Activity page for any system I&#8217;m working on, this activity leaps out at me as the new pale green wait class &#8211; Scheduler &#8211; which sits just above CPU + Wait for CPU (the addition of + Wait for CPU is one of the tiny details I really like in 11g). I should say that the specific event these sessions are waiting on is &#8220;resmgr:cpu quantum&#8221;.<\/p>\n<p>As soon as I upgraded my first laptop db to 11g (quite a while ago now) I noticed the additional activity and though, mmmm, that&#8217;s interesting and when I checked the resource_manager_plan parameter, it was set to DEFAULT_PLAN, to my surprise.<\/p>\n<p>Low and behold, whilst working on an 11gR2 system last week that we couldn&#8217;t get enough parallelism out of, I checked and the DEFAULT_PLAN was enabled. Once it was disabled, like so &#8230;.<\/p>\n<pre>alter system set resource_manager_plan=''; \n<\/pre>\n<p>Everything started running as expected.<\/p>\n<p>So I went home to do a little background research and the first obvious place to look was <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E11882_01\/server.112\/e10820\/initparams211.htm#CHDIGGIG\">the documentation<\/a>. But that&#8217;s pretty misleading because it says there is no default value for resource_manager_plan. I checked v$PARAMETER and, sure enough, the default is not DEFAULT_PLAN. So I started to doubt myself. Maybe it was just because I&#8217;d created Mickey Mouse databases on my laptop, using the GUI. However, that wouldn&#8217;t apply to the database I&#8217;m working on and, after some discussion with the DBA who completed the upgrade, it became clear that the Upgrade Assistant (dbua) sets this parameter.<\/p>\n<p>But that&#8217;s not all. In total, 11gR2 creates 10 plans as far as I can tell and DEFAULT_PLAN is not the only one used, but maintenance plans are also used during maintenance windows. Here is my laptop database right now, while it&#8217;s in a maintenance window.<\/p>\n<pre>SQL&gt; show parameter resource_manager_plan\n\nNAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VALUE\n------------------------------------ ----------- ------------------------------\nresource_manager_plan\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 string\u00a0\u00a0\u00a0\u00a0\u00a0 SCHEDULER[0x3003]:DEFAULT_MAIN\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TENANCE_PLAN\n<\/pre>\n<p>I can imagine this leading to a lot of confusion, so thanks again to Jari Kuhanen for pointing out <a href=\"https:\/\/support.oracle.com\/CSP\/main\/article?cmd=show&amp;type=NOT&amp;id=786346.1\">this Metalink Note<\/a> to me that covers it.<\/p>\n<p>Definitely something to look out for but, in fairness to Oracle, if I had re-read <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E11882_01\/server.112\/e10595\/tasks.htm\">the relevant documentation<\/a> it is all clear in there. I wonder how many people do that before every upgrade though?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I will get back to the stats stuff at some point, but I&#8217;m quite busy at the moment working on something that I can&#8217;t talk too much about, but which is throwing up enough generic issues to talk about. This is one that I meant to blog about ages ago when I first noticed it&hellip; <a class=\"more-link\" href=\"http:\/\/orcldoug.com\/blog\/2010\/05\/17\/resource-manager-and-11g\/\">Continue reading <span class=\"screen-reader-text\">Resource Manager and 11g<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1604","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1616,"url":"http:\/\/orcldoug.com\/blog\/2010\/11\/03\/poor-performance-when-gathering-partitions-stats-in-11g\/","url_meta":{"origin":1604,"position":0},"title":"Poor performance when gathering partitions stats in 11g","date":"November 3, 2010","format":false,"excerpt":"Being busy at work is both a blessing and a curse to blogging activity. On the one hand, the more that's going on, the more technical issues there are likely to be to blog about. On the other, when the pace is frantic and problems are coming thick and fast,\u2026","rel":"","context":"With 10 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1673,"url":"http:\/\/orcldoug.com\/blog\/2012\/01\/17\/randolf-geist-on-11g-incremental-statistics\/","url_meta":{"origin":1604,"position":1},"title":"Randolf Geist on 11g Incremental Statistics","date":"January 17, 2012","format":false,"excerpt":"Well it wasn't the post I planned to return to technical matters with. Lots of readers here have asked me when I'm going to get round to writing about 11g Incremental Statistics as part of the stats series. Although Incrementals are on my To Do list, I wanted to finish\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1308,"url":"http:\/\/orcldoug.com\/blog\/2007\/08\/11\/does-anyone-know-when-11g-will-be-released\/","url_meta":{"origin":1604,"position":2},"title":"Does Anyone Know When 11g Will Be Released?","date":"August 11, 2007","format":false,"excerpt":"Sorry, I shouldn't be so sarcastic, but try to show some sympathy for my schedule.Thursday 9th August 22:30 BST - Go to bed, unusually early.Friday 10th 06:00 BST - Wake up, check Netvibes and noticed several 11g release blogs, including Eddie's initial notification and Howard's installation!07:30 BST - Leave for\u2026","rel":"","context":"With 4 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1374,"url":"http:\/\/orcldoug.com\/blog\/2008\/01\/08\/book-review-oracle-11g-new-features\/","url_meta":{"origin":1604,"position":3},"title":"Book Review &#8211; Oracle 11g New Features","date":"January 8, 2008","format":false,"excerpt":"I remember I said I wouldn't do this any more, but last October, someone from Oracle Press contacted me by email because they'd noticed the following words on my website. \"However, those aspects are well dealt with in Oracle Wait Interface: A Practical Guide to Performance Diagnostics and Tuning by\u2026","rel":"","context":"With 2 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1658,"url":"http:\/\/orcldoug.com\/blog\/2011\/11\/07\/upcoming-ukoug-conference\/","url_meta":{"origin":1604,"position":4},"title":"Upcoming UKOUG Conference","date":"November 7, 2011","format":false,"excerpt":"I always look forward to this time of year as the annual UKOUG conference in Birmingham approaches but this year I think I'm looking forward to it more than ever.As I'll have delivered both of my own presentations at previous events my slides will be done before I arrive and\u2026","rel":"","context":"With 8 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1294,"url":"http:\/\/orcldoug.com\/blog\/2007\/07\/12\/oracle-11g-total-recall\/","url_meta":{"origin":1604,"position":5},"title":"Oracle 11g &#8211; Total Recall","date":"July 12, 2007","format":false,"excerpt":"I suppose most readers will be aware that Oracle held a big launch for 11g yesterday, including the release of various technical docs at OTN. I've only managed a quick scan because I'm up to my eyeballs in some internal ASH\/AWR training I'm giving later today, but what particularly interested\u2026","rel":"","context":"With 5 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/comments?post=1604"}],"version-history":[{"count":0,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1604\/revisions"}],"wp:attachment":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/media?parent=1604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/categories?post=1604"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/tags?post=1604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}