{"id":1398,"date":"2008-04-05T12:00:00","date_gmt":"2008-04-05T12:00:00","guid":{"rendered":"http:\/\/orcldoug.com\/blog\/?p=1398"},"modified":"2008-04-05T12:00:00","modified_gmt":"2008-04-05T12:00:00","slug":"bstatestat-fun","status":"publish","type":"post","link":"http:\/\/orcldoug.com\/blog\/2008\/04\/05\/bstatestat-fun\/","title":{"rendered":"bstat\/estat Fun"},"content":{"rendered":"<p>I&#8217;ve been playing around with utlbstat.sql\/utlestat.sql, only briefly I should add, for a short section on the history of Oracle&#8217;s performance tuning utilities and I noticed a couple of things that tickled me enough to blog about them.<\/p>\n<p>First, as the scripts output the comments, I noticed that quite a few of the updates to these scripts have been made by familiar names. Here are a few examples I&#8217;ve snipped out.<\/p>\n<pre>SQL&gt; Rem        cdialeri        01\/02\/01  - 891059: SQL*Plus compat, 1566460: connect \/\nSQL&gt; Rem        khailey 03\/15\/99 -  594266: Correct per logon stats, add fstat fields\nSQL&gt; Rem        akolk   08\/09\/96 -  #387757: fix latch hitratios\nSQL&gt; Rem        drady   09\/09\/93 -  merge changes from branch 1.1.312.2<\/pre>\n<p>\nOak Table Network members, all. So, there you go, another possible path to membership is to have worked on bstat\/estat &#128521;<\/p>\n<p>Then I noticed a bug in the scripts as supplied with 10.2.0.4! (Not sure I have to be that specific about the version here) The fact that the 10g version of V$SESSION contains wait event information leads to the following bug.<\/p>\n<pre>SQL&gt; insert into stats$begin_bck_event\n  2    select event, sum(total_waits), sum(time_waited)\n  3      from v$session s, v$session_event e\n  4      where type = 'BACKGROUND' and s.sid = e.sid\n  5      group by event;\n    group by event\n             *\nERROR at line 5:\nORA-00918: column ambiguously defined<\/pre>\n<p>Do you think I should file a bug report? I wonder what priority 10g bstat\/estat bug-fixes have? &#128521;<\/p>\n<p>So, just to be clear, it&#8217;s a bit of fun. I think you probably have better tools available these days! It&#8217;s also very likely that I could lead a more varied and stimulating life if I put my mind to it &#128521;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing around with utlbstat.sql\/utlestat.sql, only briefly I should add, for a short section on the history of Oracle&#8217;s performance tuning utilities and I noticed a couple of things that tickled me enough to blog about them. First, as the scripts output the comments, I noticed that quite a few of the updates to&hellip; <a class=\"more-link\" href=\"http:\/\/orcldoug.com\/blog\/2008\/04\/05\/bstatestat-fun\/\">Continue reading <span class=\"screen-reader-text\">bstat\/estat Fun<\/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-1398","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":953,"url":"http:\/\/orcldoug.com\/blog\/2005\/08\/17\/more-on-and-catpatch-sql\/","url_meta":{"origin":1398,"position":0},"title":"More on ? and catpatch.sql","date":"August 17, 2005","format":false,"excerpt":"When I was writing about the ? shortcut in sqlplus, I half-remembered that I'd discovered this while some time ago while looking at Oracle-supplied scripts (always a useful learning experience). So I went to check that I was right that Oracle uses this and couldn't find an example. Annoying, because\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1319,"url":"http:\/\/orcldoug.com\/blog\/2007\/09\/23\/parallel-query-and-11g\/","url_meta":{"origin":1398,"position":1},"title":"Parallel Query and 11g","date":"September 23, 2007","format":false,"excerpt":"I've been playing around with 11g on and off this week, re-running some of the tests in this document (PDF file).The main edits required to the scripts were simple ones to correct the locations of trace files, for example (where $ORACLE_BASE is \/ora on the 10g system) rm \/ora\/admin\/TEST1020\/udump\/*.trc and\u2026","rel":"","context":"With 7 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1495,"url":"http:\/\/orcldoug.com\/blog\/2009\/05\/01\/diagnosing-locking-problems-using-ashlogminer-the-end\/","url_meta":{"origin":1398,"position":2},"title":"Diagnosing Locking Problems using ASH\/LogMiner \u2013 The End","date":"May 1, 2009","format":false,"excerpt":"Except\u00a0it's not the\u00a0end, of course. What I mean is\u00a0that I usually agree with\u00a0what Miladin Modrakovic said in one of his comments on his first deadlock blog post.\"There is always way around.\"As I keep saying, there are many different ways of diagnosing locking problems. Which one works best\u00a0depends on the situation\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":957,"url":"http:\/\/orcldoug.com\/blog\/2005\/08\/10\/a-shortcut-for-oracle_home\/","url_meta":{"origin":1398,"position":3},"title":"A shortcut for ORACLE_HOME","date":"August 10, 2005","format":false,"excerpt":"I've enjoyed quite a few of the tips in other people's Oracle-related blogs (see the links in the right hand pane) so thought I'd chuck in a few as well. This one's an old one, so many of you will know about it already, but for those that don't ...In\u2026","rel":"","context":"With 3 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1506,"url":"http:\/\/orcldoug.com\/blog\/2009\/07\/02\/real-time-sql-monitoring-in-sql-developer\/","url_meta":{"origin":1398,"position":4},"title":"Real-Time SQL Monitoring in SQL Developer","date":"July 2, 2009","format":false,"excerpt":"Features in this post require both Diagnostics and Tuning Pack licenses.If you haven't seen 11g's Real Time SQL Monitoring feature, you need to. It's one of the most useful Oracle performance troubleshooting tools I've seen since I started working with Oracle too long ago. I was first aware of it\u2026","rel":"","context":"With 10 comments","img":{"alt_text":"","src":"\/serendipity\/uploads\/xsqldev1.png.pagespeed.ic.lI55QN9Yna.png","width":350,"height":200},"classes":[]},{"id":884,"url":"http:\/\/orcldoug.com\/blog\/2006\/01\/12\/something-else-i-didnt-know\/","url_meta":{"origin":1398,"position":5},"title":"Something Else I Didn&#8217;t Know","date":"January 12, 2006","format":false,"excerpt":"This one is courtesy of Andrew Campbell at Sun Microsystems. He noticed in an Oracle Magazine article that you can use a URL as a script name in sqlplus.SQL> select * from v$version;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProdPL\/SQL Release 10.2.0.1.0 - ProductionCORE 10.2.0.1.0 ProductionTNS for 32-bit Windows:\u2026","rel":"","context":"With 4 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1398","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=1398"}],"version-history":[{"count":0,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1398\/revisions"}],"wp:attachment":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/media?parent=1398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/categories?post=1398"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/tags?post=1398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}