{"id":1395,"date":"2008-03-25T12:00:00","date_gmt":"2008-03-25T12:00:00","guid":{"rendered":"http:\/\/orcldoug.com\/blog\/?p=1395"},"modified":"2008-03-25T12:00:00","modified_gmt":"2008-03-25T12:00:00","slug":"ash-and-the-psychology-of-hidden-parameters","status":"publish","type":"post","link":"http:\/\/orcldoug.com\/blog\/2008\/03\/25\/ash-and-the-psychology-of-hidden-parameters\/","title":{"rendered":"ASH and the psychology of Hidden Parameters"},"content":{"rendered":"<p>Time for a quick break from the final push to complete the course slides. I&#8217;ve (probably foolishly) decided to apply the 10.2.0.4 patch to my test database.<\/p>\n<p>As I was confirming the details of when Oracle starts to flush information from the ASH Buffer to the workload repository, I thought I&#8217;d check the value as it&#8217;s defined in a hidden parameter, _ash_eflush_trigger. The default is 66, which means that the flush begins whenever the circular buffer is 66% used, to stop it from wrapping around on itself, or filling up, whichever description you prefer.<\/p>\n<p>It also set me thinking that I wonder whether Hidden Parameters will ever stop seeming &#8216;cool&#8217; or &#8216;sexy&#8217;. Despite the fact that there are very few occasions when they are used, the mere mention of them seems to elicit intense responses as though you&#8217;re letting people in on some big secret! It made me question what people might want from a course &#8211; internals for the sake of it, because they&#8217;re cool, or maybe just because everyone wants to learn something new &#8211; or hopefully they want information that might be useful in their day to day jobs. Frankly, if it&#8217;s deliberately clever stuff people are looking for, they&#8217;re going to be disappointed &#128521; It&#8217;s very tempting to write a course to prove how much you know, but I think that&#8217;s a mistake. <\/p>\n<p>Where I think Hidden Parameters are very useful is in understanding how something works and ASH is no exception. Here are a few examples, with their default values on 10.2.0.3<\/p>\n<p>_ash_enable=TRUE<\/p>\n<p>Self-explanatory, hopefully, but I wonder if anyone&#8217;s ever tried using this to switch ASH off, rather than statistics_level=BASIC?<\/p>\n<p>_ash_sampling_interval = 1000 (milliseconds)<\/p>\n<p>This is where the one second sampling is specified. I&#8217;m tempted to try to reduce this to a silly level and watch the server fall on it&#8217;s back-side. I vaguely recall Graham Wood saying during a presentation that it had been tested with double-digit values.<\/p>\n<p>_ash_sample_all = FALSE<\/p>\n<p>Oooh, this one would be fun! Why not sample all sessions include those that aren&#8217;t Active &#128521; (Hint, you would have an enormous growth in the volume of data generated so, again, I&#8217;m kidding)<\/p>\n<p>_ash_disk_write_enable = TRUE<\/p>\n<p>Whether samples are flushed to the workload repository or not. Might initially seem a good idea to save space or improve performance a little but (just a guess) I think it would confuse the hell out of ADDM when it couldn&#8217;t find any ASH samples to correlate with the AWR information.<\/p>\n<p>_ash_disk_filter_ratio = 10<\/p>\n<p>I&#8217;ve seen this question asked in a few Metalink forum postings &#8211; why is some of the information missing in DBA_HIST_ACTIVE_SESS_HISTORY? Because only one in 10 samples are written there. If you wanted one-second granularity in AWR as well as in memory, this would need to be set to 1. However, as well as 10 times the space used in AWR, that&#8217;s ten times as much data to write there, Direct Path Inserts or not!<\/p>\n<p>So the usual warning; The parameters are hidden for a reason and you shouldn&#8217;t tamper with them unless someone in Oracle Support has suggested it. This post is just a bit of interesting fun and anyone who breaks their instance because they tried any of this stuff deserves everything they get.<\/p>\n<p>Now my 10.2.0.4 upgrade has just finished, so back to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time for a quick break from the final push to complete the course slides. I&#8217;ve (probably foolishly) decided to apply the 10.2.0.4 patch to my test database. As I was confirming the details of when Oracle starts to flush information from the ASH Buffer to the workload repository, I thought I&#8217;d check the value as&hellip; <a class=\"more-link\" href=\"http:\/\/orcldoug.com\/blog\/2008\/03\/25\/ash-and-the-psychology-of-hidden-parameters\/\">Continue reading <span class=\"screen-reader-text\">ASH and the psychology of Hidden Parameters<\/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-1395","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1155,"url":"http:\/\/orcldoug.com\/blog\/2006\/12\/06\/a-more-complex-statspack-example-part-1\/","url_meta":{"origin":1395,"position":0},"title":"A More Complex Statspack Example &#8211; Part 1","date":"December 6, 2006","format":false,"excerpt":"Following on from the last Statspack example, up popped an example at work this week of another common reason I use Statspack - comparing the performance of different environments. It's also a nice illustration of some of Statspack's limitations.Because a Statspack report contains a lot of information and this particular\u2026","rel":"","context":"With 8 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1321,"url":"http:\/\/orcldoug.com\/blog\/2007\/09\/24\/11g-and-direct-path-reads\/","url_meta":{"origin":1395,"position":1},"title":"11g and direct path reads","date":"September 24, 2007","format":false,"excerpt":"Curioser and curioser ....I've been thinking about this on and off today and I really can't understand the behaviour I'm seeing. In fact, it's a good job it was a busy day or it might have sent me round the twist \ud83d\ude09 I've been playing around a little tonight, trying\u2026","rel":"","context":"With 27 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1026,"url":"http:\/\/orcldoug.com\/blog\/2006\/07\/16\/log-buffer\/","url_meta":{"origin":1395,"position":2},"title":"Log Buffer","date":"July 16, 2006","format":false,"excerpt":"This looks like an interesting concept - a weekly collection of interesting items for the DBA community. It's not unusual to see blogs like this from individual bloggers. I'm not averse to the odd one myself. What might make this a bit more interesting for me is that there'll be\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1459,"url":"http:\/\/orcldoug.com\/blog\/2008\/12\/05\/ukoug-day-2-2\/","url_meta":{"origin":1395,"position":3},"title":"UKOUG Day 2","date":"December 5, 2008","format":false,"excerpt":"\"I might attend a couple of presentations later, but I doubt it.\"In the end I decided I'd had enough of my own presentation and I really wanted to see James Morle and Eric Grancher talk about storage so I decided to just pop back to the conference quickly and keep\u2026","rel":"","context":"With 3 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1487,"url":"http:\/\/orcldoug.com\/blog\/2009\/04\/20\/diagnosing-locking-problems-using-ash-part-6\/","url_meta":{"origin":1395,"position":4},"title":"Diagnosing Locking Problems using ASH \u2013 Part 6","date":"April 20, 2009","format":false,"excerpt":"\"Toto, I've a feeling we're not in Kansas any more.\"What started as a simple write-up of a course demo gone wrong (or right, depending the way you look at these things) has grown arms and legs and staggered away from the original intention to talk about ASH. so I thought\u2026","rel":"","context":"With 1 comment","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1496,"url":"http:\/\/orcldoug.com\/blog\/2009\/05\/07\/adaptive-thresholds-in-10g-part-1-metric-baselines\/","url_meta":{"origin":1395,"position":5},"title":"Adaptive Thresholds in 10g &#8211; Part 1 (Metric Baselines)","date":"May 7, 2009","format":false,"excerpt":"Some features in this post require a Diagnostics Pack license.[I really didn't want to get into another multi-part blog post, but this has grown longer than I hoped, so I'll split it up ...]One of the more interesting components of the 10gR2 instrumentation improvements is the use of Metric Baselines\u2026","rel":"","context":"With 7 comments","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/18.133.199.212\/wp-content\/uploads\/recovered\/oem1.JPG?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1395","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=1395"}],"version-history":[{"count":0,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1395\/revisions"}],"wp:attachment":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/media?parent=1395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/categories?post=1395"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/tags?post=1395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}