<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Oracle DBA - A lifelong learning experience</title>
	<atom:link href="http://jhdba.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jhdba.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 12:05:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jhdba.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/fb0fcfbfdcaa4da40a758d64a29e8a07?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Oracle DBA - A lifelong learning experience</title>
		<link>http://jhdba.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jhdba.wordpress.com/osd.xml" title="Oracle DBA - A lifelong learning experience" />
	<atom:link rel='hub' href='http://jhdba.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Speeding up the gathering of incremental stats on partitioned tables</title>
		<link>http://jhdba.wordpress.com/2012/01/04/speeding-up-the-gathering-of-incremental-stats-on-partitioned-tables/</link>
		<comments>http://jhdba.wordpress.com/2012/01/04/speeding-up-the-gathering-of-incremental-stats-on-partitioned-tables/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 09:25:53 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[11g new features]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[incremental global stats]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[synopsis]]></category>
		<category><![CDATA[WRI$_OPTSTAT_SYNOPSIS]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1043</guid>
		<description><![CDATA[11G introduced incremental  global stats and the table WRI$_OPTSTAT_SYNOPSIS$ contains synopsis data for use in maintaining the global statistics. This table can grow very large and Robin Moffat has produced a good blog  post about  the space issues  - note we both worked at the same site so it is the same DW being discussed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1043&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:small;"><span style="font-family:Calibri;">11G introduced incremental  global stats and the table WRI$_OPTSTAT_SYNOPSIS$ contains synopsis data for use in maintaining the global statistics. This table can grow very large and Robin Moffat has produced a good <a href="http://rnm1978.wordpress.com/2010/12/31/data-warehousing-and-statistics-in-oracle-11g-incremental-global-statistics/">blog  post about  the space issues  </a>- note we both worked at the same site so it is the same DW being discussed by both of us.</span></span></p>
<p><span style="font-size:small;font-family:Calibri;">Apart from the space usage that Robin refers to, another worrying aspect is the time taken when gathering stats on a partitioned table and most of that time is taken by running a delete statement </span></p>
<p><pre class="brush: sql; gutter: false; highlight: [10,11]; pad-line-numbers: false;">DELETE
FROM SYS.WRI$_OPTSTAT_SYNOPSIS$
WHERE SYNOPSIS# IN
(SELECT H.SYNOPSIS#
FROM SYS.WRI$_OPTSTAT_SYNOPSIS_HEAD$ H
WHERE H.BO# = :B1
AND H.GROUP# NOT IN
(SELECT T.OBJ# * 2
FROM SYS.TABPART$ T
WHERE T.BO# = :B1
UNION ALL
SELECT T.OBJ# * 2
FROM SYS.TABCOMPART$ T
WHERE T.BO# = :B1))</pre></p>
<p>I will demonstrate the problem and a simple solution and you will be able to see the significant performance improvements achieved.<span id="more-1043"></span></p>
<p>I first of all enable tracing against a gather statsjob using the standard database configuration.</p>
<p><pre class="brush: sql; gutter: false; highlight: [10,11]; pad-line-numbers: false;">SQL ID: 7q4x1r46xgq0a
Plan Hash: 0
BEGIN dbms_stats.gather_table_stats('BIA_RTL','DWB_RTL_SL_RETRN_LINE_ITEM',
  granularity=&gt;'AUTO',cascade=&gt;false,degree=&gt;dbms_stats.auto_degree); END;

VERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse      162      0.11       0.05          0         27         50           0
Execute   1054     27.84    1023.64     254884     553622       1562         512   ***************************
Fetch      868      3.81       4.18         28      97431          0         928
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total     2084     31.76    1027.88     254912     651080       1612        1440

Misses in library cache during parse: 84
Misses in library cache during execute: 58

Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  db file sequential read                    254912        1.01        995.82
  unspecified wait event                     254912        0.04          7.09
SQL ID: 1zdkwckmyutrd
Plan Hash: 413388401
DELETE FROM SYS.WRI$_OPTSTAT_SYNOPSIS$
WHERE
 SYNOPSIS# IN (SELECT H.SYNOPSIS# FROM SYS.WRI$_OPTSTAT_SYNOPSIS_HEAD$ H
  WHERE H.BO# = :B1 AND H.GROUP# NOT IN (SELECT T.OBJ# * 2 FROM SYS.TABPART$
  T WHERE T.BO# = :B1 UNION ALL SELECT T.OBJ# * 2 FROM SYS.TABCOMPART$ T
  WHERE T.BO# = :B1 ))
call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.01       0.00          0          0          0           0
Execute      1     26.50    1022.20     254877     462319          0           0
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        2     26.51    1022.20     254877     462319          0           0

Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS   (recursive depth: 1)

Rows     Row Source Operation
-------  ---------------------------------------------------
      0  DELETE  WRI$_OPTSTAT_SYNOPSIS$ (cr=462319 pr=254877 pw=0 time=0 us)
      0   FILTER  (cr=462319 pr=254877 pw=0 time=0 us)
      0    HASH JOIN  (cr=462319 pr=254877 pw=0 time=0 us cost=31972 size=519892260 card=17329742)
  49312     TABLE ACCESS FULL WRI$_OPTSTAT_SYNOPSIS_HEAD$ (cr=819 pr=0 pw=0 time=0 us cost=311 size=1180632 card=49193)
16953751     INDEX FULL SCAN I_WRI$_OPTSTAT_SYNOPSIS (cr=461500 pr=254877 pw=0 time=86847 us cost=31546 size=103979388 card=17329898)(object id 478)
      0    UNION-ALL  (cr=0 pr=0 pw=0 time=0 us)
      0     TABLE ACCESS BY INDEX ROWID TABPART$ (cr=0 pr=0 pw=0 time=0 us cost=3 size=12 card=1)
      0      INDEX RANGE SCAN I_TABPART_BOPART$ (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)(object id 566)
      0     TABLE ACCESS BY INDEX ROWID TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us cost=9 size=48 card=4)
      0      INDEX RANGE SCAN I_TABCOMPART_BOPART$ (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=368)(object id 588)
Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  db file sequential read                    254877        1.01        995.53
  unspecified wait event                     254877        0.01          7.05
********************************************************************************</pre></p>
<p>Th main highlights of  this trace are the 1022 seconds run the delete  in sql_id 1zdkwckmyutrd and the big wait event is on db file sequential read   -  995 seconds</p>
<p>We now alter the WRI$_OPTSTAT_SYNOPSIS$ table so that it uses parallelism and note the difference.</p>
<p><pre class="brush: sql; gutter: false;">
SQL ID: 7q4x1r46xgq0a
Plan Hash: 0
BEGIN dbms_stats.gather_table_stats('BIA_RTL','DWB_RTL_SL_RETRN_LINE_ITEM',
  granularity=&gt;'AUTO',cascade=&gt;false,degree=&gt;dbms_stats.auto_degree); END;
 
  OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute    368      9.32      38.21          1    1055398          0           0   ***************************&lt;/span&gt;
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total      369      9.32      38.21          1    1055398          0           0

Misses in library cache during parse: 0

Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  PX Deq: Msg Fragment                            1        0.00          0.00
  cursor: pin S wait on X                         5        0.01          0.07
  PX Deq: Execution Msg                        9272        0.03         20.49
  db file sequential read                         1        0.00          0.00
  unspecified wait event                          1        0.07          0.07
  resmgr:cpu quantum                             23        0.00          0.05
  PX qref latch                                   8        0.00          0.00
 
  SQL ID: 1zdkwckmyutrd
Plan Hash: 2668798483
DELETE FROM SYS.WRI$_OPTSTAT_SYNOPSIS$
WHERE
 SYNOPSIS# IN (SELECT H.SYNOPSIS# FROM SYS.WRI$_OPTSTAT_SYNOPSIS_HEAD$ H
  WHERE H.BO# = :B1 AND H.GROUP# NOT IN (SELECT T.OBJ# * 2 FROM SYS.TABPART$
  T WHERE T.BO# = :B1 UNION ALL SELECT T.OBJ# * 2 FROM SYS.TABCOMPART$ T
  WHERE T.BO# = :B1 ))
call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.13       8.63          0         11          0           0
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        2      0.13       8.63          0         11          0           0

Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS   (recursive depth: 1)

Rows     Row Source Operation
-------  ---------------------------------------------------
      0  DELETE  WRI$_OPTSTAT_SYNOPSIS$ (cr=11 pr=0 pw=0 time=0 us)
      0   FILTER  (cr=11 pr=0 pw=0 time=0 us)
      0    PX COORDINATOR  (cr=11 pr=0 pw=0 time=0 us)
      0     PX SEND QC (RANDOM) :TQ10001 (cr=0 pr=0 pw=0 time=0 us cost=4809 size=519892260 card=17329742)
      0      HASH JOIN  (cr=0 pr=0 pw=0 time=0 us cost=4809 size=519892260 card=17329742)
      0       PX RECEIVE  (cr=0 pr=0 pw=0 time=0 us cost=11 size=1180632 card=49193)
      0        PX SEND BROADCAST :TQ10000 (cr=0 pr=0 pw=0 time=0 us cost=11 size=1180632 card=49193)
      0         PX BLOCK ITERATOR (cr=0 pr=0 pw=0 time=0 us cost=11 size=1180632 card=49193)
      0          TABLE ACCESS FULL WRI$_OPTSTAT_SYNOPSIS_HEAD$ (cr=0 pr=0 pw=0 time=0 us cost=11 size=1180632 card=49193)
      0       PX BLOCK ITERATOR (cr=0 pr=0 pw=0 time=0 us cost=4795 size=103979388 card=17329898)
      0        TABLE ACCESS FULL WRI$_OPTSTAT_SYNOPSIS$ (cr=0 pr=0 pw=0 time=0 us cost=4795 size=103979388 card=17329898)
      0    UNION-ALL  (cr=0 pr=0 pw=0 time=0 us)
      0     TABLE ACCESS BY INDEX ROWID TABPART$ (cr=0 pr=0 pw=0 time=0 us cost=3 size=12 card=1)
      0      INDEX RANGE SCAN I_TABPART_BOPART$ (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)(object id 566)
      0     TABLE ACCESS BY INDEX ROWID TABCOMPART$ (cr=0 pr=0 pw=0 time=0 us cost=9 size=48 card=4)
      0      INDEX RANGE SCAN I_TABCOMPART_BOPART$ (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=368)(object id 588)
Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  reliable message                                2        0.00          0.00
  enq: KO - fast object checkpoint                1        0.00          0.00
  PX Deq Credit: send blkd                      239        0.00          0.04
  PX Deq: Join ACK                                8        0.00          0.00
  os thread startup                              32        0.06          1.87
  PX Deq: Parse Reply                            33        0.00          0.04
  PX qref latch                                   8        0.00          0.00
  PX Deq Credit: need buffer                      7        0.00          0.00
  PX Deq: Execute Reply                         696        0.19          6.40
  resmgr:cpu quantum                              1        0.05          0.05
  PX Deq: Table Q Normal                         11        0.00          0.00
  PX Deq: Signal ACK RSG                         40        0.00          0.00
  PX Deq: Signal ACK EXT                         21        0.00          0.00
  latch: session allocation                      12        0.00          0.00
********************************************************************************</pre></p>
<p><span style="color:#ff0000;">I think 1023 seconds down to 38 seconds is a benefit worth having for the overhead of running an alter table command</span>. In production where there is much more data the difference will be even more significant.</p>
<p>There is even more to come once this database can be upgraded to 11.2.0.2 (currently 11.1.0.7) because at  that release the table  WRI$_OPTSTAT_SYNOPSIS$ becomes partitioned. </p>
<p>The WRI$_OPTSTAT_SYNOPSIS$ table also contains two extra columns to enable the partitioning. Does this mean that an upgrade from 11.1.0.7 to 11.2.0.2+ would require all tables that have incremental stats to be subject to a full re-gathering of statistics, or is there some method to migrate/convert the statistics between versions? That is my next piece of research</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1043/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1043/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1043/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1043/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1043/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1043/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1043/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1043&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2012/01/04/speeding-up-the-gathering-of-incremental-stats-on-partitioned-tables/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>My blog analysis of 2011</title>
		<link>http://jhdba.wordpress.com/2012/01/01/my-blog-analysis-of-2011/</link>
		<comments>http://jhdba.wordpress.com/2012/01/01/my-blog-analysis-of-2011/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 11:07:21 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1040</guid>
		<description><![CDATA[WordPress send out a nice email with lots of details about your blog in the last year. Apart from visits growing month on month two  points interested me. My most popular posts were all written several years ago and the &#8216;purging stats from SYSAUX&#8217; is definitely my most widely read blog post. The reason for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1040&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WordPress send out a nice email with lots of details about your blog in the last year. Apart from visits growing month on month two  points interested me. My most popular posts were all written several years ago and the &#8216;purging stats from SYSAUX&#8217; is definitely my most widely read blog post. The reason for later posts not being as popular is that they are not as detailed. That is due to my change of role where I am managing a lot more and not having the time to devote a day or more to a problem and put  up a very detailed analysis. However in response to that I would suggest that I am putting a more eclectic set of posts up as I pick up on interesting problems we see on site and post about them, although not necessarily having done all the research myself. That helps me keep abreast of the technology and still be very closely linked in with what is happening, sufficiently well-informed as to be able to produce a post on the subject.</p>
<p>These are the posts that got the most views in 2011.</p>
<ul>
<li>1 <a href="../2009/05/19/purging-statistics-from-the-sysaux-tablespace/" target="_blank">Purging statistics from the SYSAUX tablespace</a> 15 comments May 2009</li>
<li>2 <a href="../2008/03/20/rman-backup-script-example/" target="_blank">RMAN backup script &#8211; example &#8211; logging output</a> 3 comments March 2008</li>
<li>3 <a href="../2008/07/16/25/" target="_blank">ORA-19809: limit exceeded for recovery files &#8211; db_recovery_file_dest_size and archiver error</a> 6 comments July 2008</li>
<li>4 <a href="../2008/03/31/11g-library-cache-mutex-x-known-bug/" target="_blank">11g &#8211; library cache mutex X &#8211; known bug</a> 14 comments March 2008</li>
<li>5 <a href="../2008/12/05/where-has-consistenty-gone-when-using-datapump-in-export-mode-expdp/" target="_blank">Where has consistent=y gone when using Datapump export</a> 3 comments December 2008</li>
</ul>
<p>The second surprise of the WordPress summary is that I only created 17 new posts. That has really caught me out as I thought I had been more prolific than that. I will certainly try harder in 2012.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1040/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1040&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2012/01/01/my-blog-analysis-of-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Nice notebook style blog site</title>
		<link>http://jhdba.wordpress.com/2011/12/29/nice-notebook-style-blog-site/</link>
		<comments>http://jhdba.wordpress.com/2011/12/29/nice-notebook-style-blog-site/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 11:53:40 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Karl Arao]]></category>
		<category><![CDATA[WRI$_OPTSTAT_SYNOPSIS]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1036</guid>
		<description><![CDATA[It is not often that I would post just to mention someone else&#8217;s blog but there is always a first time. In the idle time that generally happens between Xmas and New Year I was catching up with various mails that I  had marked as &#8216;follow-up &#8211; today&#8217;, which is quite a misnomer for me as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1036&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is not often that I would post just to mention someone else&#8217;s blog but there is always a first time.</p>
<p>In the idle time that generally happens between Xmas and New Year I was catching up with various mails that I  had marked as &#8216;follow-up &#8211; today&#8217;, which is quite a misnomer for me as I rarely follow-up and never on the same day. I came across a post from Karl Arao on Oracle-L in which he mentioned a  script stored on a <a href="http://karlarao.tiddlyspot.com/">site</a> he runs.</p>
<p>Karl describes it as &#8220;<em>Just another web notebook about Oracle,Linux,Troubleshooting,Performance,etc..etc</em>&#8221; and that is a good summary. It just contains excerpts of notes and lots of links to other web articles. It just seems a different format to most blogs and I found it interesting to browse down the r/h menu list and look at a few interesting notelets. I suspect mots of us have something similar, mine is a Word document called vodafone_notes.do although it is 5 years and 6 sites since I worked there. The difference is that this is an online shared utility and that is what attracted it to me.</p>
<p>Karl no doubt will be sending me as hamper as a thank you for directing thousands of hits to his site.</p>
<p>My next 2 posts will cover  :-</p>
<ul>
<li>altering WRI$_OPTSTAT_SYNOPSIS  tables to speed up the gathering of stats</li>
<li>adding a trigger to detect when a standby database is open, in which case it will  to turn off the dataguard broker.</li>
</ul>
<p>There I have committed myself  &#8211; but note that I am using the nowait option of commit so it might be a while</p>
<p>Best wishes to my readers in 2012.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1036/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1036&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/12/29/nice-notebook-style-blog-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>UKOUG 2011 &#8211; day 3</title>
		<link>http://jhdba.wordpress.com/2011/12/09/ukoug-2011-day-3/</link>
		<comments>http://jhdba.wordpress.com/2011/12/09/ukoug-2011-day-3/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 08:56:27 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[11g new features]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[UKOUG]]></category>
		<category><![CDATA[2011 UKOUG]]></category>
		<category><![CDATA[Connor McDonald]]></category>
		<category><![CDATA[Goldengate]]></category>
		<category><![CDATA[Joel Goodman]]></category>
		<category><![CDATA[Marc Fielding]]></category>
		<category><![CDATA[Mike Swing]]></category>
		<category><![CDATA[Parallel Bulk Update]]></category>
		<category><![CDATA[Pythian]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1034</guid>
		<description><![CDATA[The final day of the 2011 UKOUG conference and it was straight in at the deep end with Joel Goodman talking about automatic parallelism in 11GR2. The talk was full of information, as Joel’s talks normally are. He also had time to cover Parallel Bulk Update which groups sets of rows into chunks. Each chunk can have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1034&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:small;font-family:Calibri;">The final day of the 2011 UKOUG conference and it was straight in at the deep end with Joel Goodman talking about automatic parallelism in 11GR2. The talk was full of information, as Joel’s talks normally are. He also had time to cover Parallel Bulk Update which groups sets of rows into chunks. Each chunk can have a success or fail independently of other chunks which removes the ‘all or nothing’ approach normally seen with PDML. He has a good blog entry on this which is well worth perusing if you are interested. </span><a href="http://dbatrain.wordpress.com/2011/07/01/add-bulk-to-your-parallel-updates/"><span style="font-size:small;color:#800080;font-family:Calibri;">http://dbatrain.wordpress.com/2011/07/01/add-bulk-to-your-parallel-updates/</span></a></p>
<p><span style="font-size:small;font-family:Calibri;"> </span><span style="font-size:small;font-family:Calibri;">My site is just going down the road with Goldengate so the talk by Pythian&#8217;s Marc Fielding on a real life Goldengate migration was very useful. This was a large financial institution where the system was crucial to business continuity and GG was to be used to provide a rapid fallback facility if things went wrong. The main thing I took away from the talk was how small-minded they must be not to provide adequate testing facilities for such a large project. Not being able to use full data sets and similar sized hardware (OK it was a 14TB database) does add a lot of risk and no small matter of frustration to the technicians involved in the migration. Some of the diagnostics that Marc talked about will be very useful to use and I was interested in the alternatives to supplementary logging which may be required if there is no primary key and it is difficult to identify a row specifically.</span></p>
<p><span style="font-size:small;font-family:Calibri;">I did start to listen to another talk but after around 10 people had left I plucked up courage and made a hasty exit myself. It was just not for me.</span></p>
<p><span style="font-size:small;font-family:Calibri;">The best presentation I saw at the conference was Connor Macdonald on a fresh approach to the optimizer statistics. Connor is a real showman and his easy on-stage manner belies the degree of effort he must spending preparing his numerous slides. The set of slides associated with the ITIL process deserved a round of applause by itself and indeed it received one.  This was the second session I went  to that mentioned the value of index key compression and the way it can be calculated by using ‘analyze index validate structure’. A very good presentation that provided food for thought.</span></p>
<p><span style="font-size:small;font-family:Calibri;">My final session was Mike Swing talking about database tuning for packaged apps. He had way too much content and rushed through it much too fast. As several people said to me afterwards, all he really recommended was getting faster disk and more memory.  I liked his presentation style and easy manner but it was a bit light on useful content.</span></p>
<p><span style="font-size:small;font-family:Calibri;">So here endeth day 3. I think this was the conference I have enjoyed the most and got the most from. The presentations were of a top standard and even though I was only interested in the RDBMS stream I had plenty of choice for most time slots. I know that cancellations and changes are hard to avoid but there did seem to be a lot and that made planning harder than it should have been. I think my only constructive critique would be that there were a number of presentations repeated from last year (and some from other SIGs almost 2 years ago). I fully understand that a good presentation is  still a good presentation a year later and not everyone has the chance to have seen it but personally  I am not in favour of too much repeated material.</span></p>
<p><span style="font-size:small;font-family:Calibri;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1034/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1034/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1034/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1034/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1034/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1034/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1034/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1034/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1034&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/12/09/ukoug-2011-day-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>UKOUG 2011 Part Deux</title>
		<link>http://jhdba.wordpress.com/2011/12/07/ukoug-2011-part-deux/</link>
		<comments>http://jhdba.wordpress.com/2011/12/07/ukoug-2011-part-deux/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 11:35:52 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[11g new features]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[UKOUG]]></category>
		<category><![CDATA[EBR]]></category>
		<category><![CDATA[Edition Based Redefinition]]></category>
		<category><![CDATA[John Beresniewicz]]></category>
		<category><![CDATA[John King]]></category>
		<category><![CDATA[Julian Dyke]]></category>
		<category><![CDATA[kitrace]]></category>
		<category><![CDATA[Michael Salt]]></category>
		<category><![CDATA[Tanel Poder]]></category>
		<category><![CDATA[Tony Hasler]]></category>
		<category><![CDATA[tusc]]></category>
		<category><![CDATA[UKOUG 2011]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1030</guid>
		<description><![CDATA[Day 2 of the UKOUG conference at the ICC in Birmingham and back into the fray. First up was Thomas Presslie talking about Dataguard fast start failover. How he managed to demonstrate transactions and network connectivity using whisky and toilet paper could not be done full justice in a blog – it had to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1030&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Day 2 of the UKOUG conference at the ICC in Birmingham and back into the fray.</p>
<p>First up was Thomas Presslie talking about Dataguard fast start failover. How he managed to demonstrate transactions and network connectivity using whisky and toilet paper could not be done full justice in a blog – it had to be seen to be believed.</p>
<p>It did make me want to do more with FSFO, especially noting how easy the setup was using OEM. However my belief that the database is only part of the end solution and failing that over to a second datacentre after a network flicker may leave the application stack in a mess does still concern me. Co-incidentally I have a requirement to set up a second standby configuration cascaded from a physical standby but keeping the 3<sup>rd</sup> database perhaps one hour behind whilst the standby is in real time apply mode with no lag. That might give us a chance to determine the status of the data before a logical corruption (user error) had occurred. Much more likely to be of value is flashback query but we are going to look at both avenues. It is highly unlikely we would ever be in a position to flashback the database.</p>
<p>Julian Dyke then talked for an hour about RAC trouble-shooting (mostly 11.2.0.2) and the time flew past. I made quite a few notes of things to think about. The pros and cons of putting the scan addresses in /etc/hosts (HPUX) to be used in the event of a DNS failure was one thought. Looking at the exectask function and the scripts used to call various function was another action I took for myself. Another was a big list of asmcmd commands, some of which I did not recognise. I think they must have come in with 11GR2 which I have not really used myself although we are using it on site.</p>
<p>Tanel Poder’s biggest ever problem was next up. I had seen this presentation last year and knew the answer but how he got there was still interesting. The use of the HPUX command kitrace (similar to dtrace on Solaris &#8211; see reply below for more details) reminded me that I was going to look at that in some detail but have never got around to it. As my site is likely to be moving away from HPUX sooner rather than later perhaps there is not much point now.</p>
<p>After lunch John Beresniewicz was talking about ASH outliers. Quite mathematically based, which is always a challenge for me but he will be posting a script (possibly via Doug Burn’s blog) which he has developed as another means of dissecting and analysing ASH data.</p>
<p>Michael Salt’s talk on indexes was full of real world examples and there were lots of nice little hints and tips, none of which were earth-shattering but all of which were good practise and I found it a useful reminder of what I should be doing when looking at code. On the same theme two slots later Tony Hasler was presenting a beginners guide to SQL tuning.   I have never seen Tony present before but I really liked both his style and the content. A lot of information thrown in and good explanations of various autotrace outputs. I will definitely be downloading his presentation to run through it and see what I can put to further use. Whilst I do not think I am expert in the field of SQL tuning, indeed far from it, I do like to think I know what to look for. Sometimes listening to others you realise in the same lecture both how much you already know and how little you actually follow best practises. There is no real substitute from looking at code and trying to improve performance. For a lot of us who have a very wide-ranging DBA role then that opportunity to practise odes not appear often enough which is why it is good to review and refresh your approach now and then.</p>
<p>At every conference I like to try and hear something new or touch on an area that is outside my day job. John King’s talk on Edition Based Redefinition was just that. I am not really in a position to take advantage of the ability to let users run differing sets of code and then migrate them across to a new release in a seamless manner, all without any outages or interruption to service. However I could see how useful it could be, especially in the world of the Apps DBA, say for EBS. Apparently no less a person than Tom Kyte referred to EBR as the ‘killer feature’ within 11GR2.  John had an easy, comfortable manner  and the time flew past, so much so that he had to be dragged kicking and screaming from the stage by the next presenter.</p>
<p>All in all another good day, rounded off with a couple of beers with work colleagues and a few presenters, all with plenty of Oracle chat included.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1030/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1030/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1030/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1030/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1030/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1030/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1030/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1030/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1030&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/12/07/ukoug-2011-part-deux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>UKOUG 2011  &#8211; Day 1</title>
		<link>http://jhdba.wordpress.com/2011/12/06/ukoug-2011-day-1/</link>
		<comments>http://jhdba.wordpress.com/2011/12/06/ukoug-2011-day-1/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 09:50:54 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[11g new features]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[UKOUG]]></category>
		<category><![CDATA[Alex Gorbachev]]></category>
		<category><![CDATA[Doug Burns]]></category>
		<category><![CDATA[Greg Rahn]]></category>
		<category><![CDATA[Kyle Hailey]]></category>
		<category><![CDATA[Mariusz Piorkowski]]></category>
		<category><![CDATA[UKOUG conference 2011]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1027</guid>
		<description><![CDATA[The first day of UKOUG conference at the ICC in Birmingham and there were a lot of familiar faces are around. Due to a lot of traffic I missed the first presentation I wanted to see which was from Kyle Hailey on SQL tuning. I will have to download the presentation later. I did make [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1027&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The first day of UKOUG conference at the ICC in Birmingham and there were a lot of familiar faces are around. Due to a lot of traffic I missed the first presentation I wanted to see which was from Kyle Hailey on SQL tuning. I will have to download the presentation later. I did make it to Greg Rahn on the SQL Monitoring report and that was well worth the time spent. Whilst I am familiar with the functionality, he opened my eyes by providing  a number of examples of what he would look at first to try and determine a better resolution. His presentation style was comfortable and he had a small number of examples which covered quite a lot of scenarios. He did point out it was only to be used if you had paid for the Tuning and Diagnostic pack but as it is turned on by default I did wonder how many use it without any further consideration.<span id="more-1027"></span></p>
<p>&nbsp;</p>
<p>Mariusz Piorkowsk talked about Real Application Testing and in particular using it for upgrades from 10.2 to 11.2. I don’t want to be too critical of the presentation but having tested RAT for a similar purpose (11GR1) I thought it was a bit light on facts and figures. How many plans changed, how many had to be tuned, what were the big gotchas in his upgrades etc. However if I knew nothing of RAT beforehand I would have been eager to test it out after listening to Mariusz.</p>
<p>&nbsp;</p>
<p>Onto my presentation which was straight after lunch. I was <span style="text-decoration:underline;">slightly</span> stressed beforehand as my eldest daughter had gone into labour overnight with our first grandchild and I was on tenterhooks waiting for news. Having to turn my phone off did not help!!. The presentation was well-attended and I got through my material without any major hitches, albeit rather quickly. I had given the presentation twice before. Once at work and once at a SIG and it had taken an hour each time. Having fifteen minutes less this time I removed a couple of slides and moved through in a speedy manner. It was good to see many of the audience scribbling notes, unless they were all busy marking me down on the feedback form. I answered plenty of questions afterwards and the feeling I got was that the content was new to many.</p>
<p>&nbsp;</p>
<p>I came out the presentation to see that I had three missed calls. After ringing home I was ecstatic to discover I now have a granddaughter, 8lb 14 ounces who was born just before I started talking.  Needless to say that I was that drained that I missed the next lecture on my agenda.</p>
<p>&nbsp;</p>
<p>I did make it to Alex Gorbachev talking about measuring I/O. I am sure the first half was a fantastic talk but I am ashamed to say I had a bit of the nodding dog syndrome, (OK, I fell asleep). Nothing to do with Alex  but I had been awake most of the night followed by a long drive and then the pressure of doing a presentation. The second half was quite interesting. The output (graphs) were very good but I would like to have seen more on how to get the data into them. The key takeaway for me was that visualisation is everything and that there is no point in posting reams of data when a single well presented chart can explain so much more in an easy to assimilate manner.</p>
<p>&nbsp;</p>
<p>The final talk of the day for me was Doug Burns on SQL plan management. Having never met Doug but having been in an email conversation with him recently it was good to put a face to the name. It was an interesting talk put across in a lively manner. The main  aspect for me was to use plan management to capture the hints from an existing database (maybe 10g) and then copy them across to the new database (11g) and retain the current plan without making wholesale database changes. Then you can fix the code to be more efficient in the 11G database in your own timescales.</p>
<p>&nbsp;</p>
<p>The UKOUG conference produces a real wealth of talent and just within the RDBMS stream, which is all I really look at, there are several alternatives for every time slot, most of which I could attend and be interested in. Having been involved in the background with some of the work in both selecting speakers and the putting them into a schedule to suit everyone I am aware of how much effort goes in, both by the UKOUG staff and volunteers. If you add the additional complexity of late changes due to speaker unavailability it is a massive piece of organisation which appears to be so seamless to the majority of attendees.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1027/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1027&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/12/06/ukoug-2011-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Crash caused by AMM resize operations and high &#8216;direct file read’</title>
		<link>http://jhdba.wordpress.com/2011/11/16/crash-caused-by-amm-resize-operations-and-high-direct-file-read%e2%80%99/</link>
		<comments>http://jhdba.wordpress.com/2011/11/16/crash-caused-by-amm-resize-operations-and-high-direct-file-read%e2%80%99/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 09:18:24 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[automatic memory management]]></category>
		<category><![CDATA[direct file read]]></category>
		<category><![CDATA[ksfd: async disk IO]]></category>
		<category><![CDATA[smallness logic]]></category>
		<category><![CDATA[_small_table_threshold]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1013</guid>
		<description><![CDATA[ Much off the following diagnosis  was performed by a colleague Scott Chisholm. The outcome is a lot of new information (to me at least) about  the parameter _small_table_threshold but I have also developed thoughts around which set of checks we should put in place after restarts of major systems. We start of with the executive [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1013&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Much off the following diagnosis  was performed by a colleague Scott Chisholm. The outcome is a lot of new information (to me at least) about  the parameter <em>_small_table_threshold </em>but I have also developed thoughts around which set of checks we should put in place after restarts of major systems.</p>
<p>We start of with the executive summary for those that like to cut to the chase.</p>
<p>Instance 1 of a 2 node RAC cluster (11GR1 HPUX) crashed and the evidence indicates this was related to excessive AMM resize operations. The resize operations left the instance with an undersized buffer cache at instance start-up and this has steadily grown since. However, the <em>_small_table_threshold </em>value appears to have been set too low and does not appear to have been dynamically sized. As such the method for buffer cache or direct file read has changed and was the cause for a change in disk read activity on instance 1.  This would be exacerbated by multiple high disk IO operations such as RMAN running.<span id="more-1013"></span></p>
<p>End of summary – however I will point out that this is not the first time we have been bitten by the automatic memory management killing an instance because it decides that it will consume excessive CPU by constantly resizing the SGA. In fact it is my view that AMM is an unnecessary overhead on any systems which are have been in production for a while and realistic SGA values are known. AMM can be very flakey/buggy and can sporadically lead to a high number of resize operations (if Oracle can’t get it right). In fact, the high number of operations actually occurred in the final 3 minutes of the final snap period before the crash indicating 1324 resize operations in a 3 minute period </p>
<p> So we had an instance crash and restart on a Sunday. The next day, when main usage was starting up, very poor performance of sql_id  ‘2cahqnpt4cq23’ was noticed on instance 1. The sql was generating intensive ‘direct file read’, later it reverted to ‘ksfd: async disk IO’ However, on instance 2 the same query continued to use buffer gets rather than direct disk reads and was proving to be far more efficient. It was noted that from about 08:10 (after the RMAN backup was complete) the response time for the problem SQL was much improved and observations were that it had reverted to buffer gets rather than ‘direct file read’. </p>
<p>Scott  performed research to understand why Oracle would select to use a direct file read rather than read records into or from the buffer cache.  This led to the parameter <em>_small_table_threshold </em>which is used to determine whether a buffer cache or disk read will be more efficient (MOS Note 787373.1 gives a full description and introduced me to the term smallness logic). This value was set to 418 on Instance 1 and 57802 on instance 2.  We noted that this value (if not set) takes it’s value from the size of the buffer cache at instance start-up.  <strong>When using AMM the buffer cache at instance start-up is initiated from the setting at instance shutdown</strong>.  This was be the  key to why we were seeing high disk reads on Instance 1 and not on instance 2. The last entries we can see in the DBA_HIST_MEMORY_RESIZE_OPS view indicates that db_cache_size had gone from 8.5Gb to 180M after the database restart</p>
<p>One side aspect was that <em>db_file_multiblock_read_count</em> was noticed (after the event) as having changed from 128 to 10 after the instance crash and reported as changing from 10 to 128 when the database was restarted with new AMM settings This is left to be determined automatically by Oracle in our database so I’m guessing the small value was chosen due to the undersized buffer cache and will have contributed significantly to worsened I/O experienced on that instance</p>
<p>So we now have an explanation as to what caused the difference in performance between the nodes.</p>
<p>My focus is really about what processes we can put in place to stop a re-occurrence. My thoughts are :-</p>
<ul>
<li>Why use AMM when we know we have had problems before. What value does it really provide on a stable system.</li>
<li>If using AMM then why not fix key values such as buffer cache so they have no opportunity to fluctuate. One aspect I see regularly with AMM resize operations  is that it makes minute changes such as amending a 15Gb buffer cache to a 14.9Gb buffer cache and then reverts that change a few minutes (even seconds) later. I appreciate that the shared pool is the likely beneficiary of this change but when that is 4Gb for example then 0.1Gb is not going to make a significant difference anyway.</li>
<li>We already have  a daily ‘morning check’ that reports difference in spfile parameter changes  and that did pick up the <em>db_file_multiblock_read_count </em>change but missed the <em>_small_table_threshold </em>change, probably because it was an underscore parameter. The script is shown below.</li>
</ul>
<p>Implement processes on major systems that report differences between parameters on startup. That should be relatively easy to do as we just need to create a pfile from spfile before a shutdown and repeat after startup and do a diff command  on the two files. If we have a crash the pfile from the previous startup should be in place so we have a constant comparison available. The more I think about the more I think we should have done that a long-time ago and indeed we have already implemented the reporting capability later on but not the discipline of checking after a restart.</p>
<p>So I have offered a problem we had, shown how the solution was identified, no doubt generated some thoughts on researching <em>_small_table_threshold </em> and consequently developed some ideas, if only for myself for ways we can improve management of critical systems.</p>
<p> PS ‘ksfd: async disk IO’ deservers a blog entry of it’s own – currently hoping PSU 7 will fix it. But not tested as yet</p>
<p><pre class="brush: sql; gutter: false; highlight: [10,11]; pad-line-numbers: false;">deltatime &quot;Date&quot;,
target_name &quot;Database&quot;,
hostname &quot;Host&quot;,
operation &quot;Operation&quot;,
key1 &quot;Parameter&quot;,
attribute &quot;Attribute&quot;,
oldvalue &quot;Old Vlue&quot;,
newvalue &quot;New Value&quot;
from MGMT$ECM_CONFIG_HISTORY_KEY1
where target_name like '%PRD%'
and deltatime &gt;= sysdate -1
and collectiontype='MGMT_DB_INIT_PARAMS_ECM' and key1 !='resource_manager_plan </pre></p>
<p>&nbsp;</p>
<p><span style="font-family:Calibri;"> </span></p>
<p><span style="font-family:Calibri;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1013/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1013&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/11/16/crash-caused-by-amm-resize-operations-and-high-direct-file-read%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Standby databases  &#8211; a few of gotchas</title>
		<link>http://jhdba.wordpress.com/2011/10/27/standby-databases-a-few-of-gotchas/</link>
		<comments>http://jhdba.wordpress.com/2011/10/27/standby-databases-a-few-of-gotchas/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 06:53:30 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[active dataguard license]]></category>
		<category><![CDATA[alerting]]></category>
		<category><![CDATA[dataguard]]></category>
		<category><![CDATA[lag apply]]></category>
		<category><![CDATA[LGWR: Insufficient standby redo]]></category>
		<category><![CDATA[OEM alert]]></category>
		<category><![CDATA[primary]]></category>
		<category><![CDATA[standby]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=1007</guid>
		<description><![CDATA[All of these items refer to Dataguard standby databases on 11GR1 and the  active dataguard license comment is applicable in 11GR2 as well. LGWR: Insufficient standby redo logfiles to archive The first is an error I see on a few databases and had assumed that it was to do with insufficient standby log files. The recommendation is that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1007&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>All of these items refer to Dataguard standby databases on 11GR1 and the  active dataguard license comment is applicable in 11GR2 as well.</p>
<p><strong>LGWR: Insufficient standby redo logfiles to archive</strong></p>
<p>The first is an error I see on a few databases and had assumed that it was to do with insufficient standby log files. The recommendation is that there should be at least one more than the normal redo log files so that applying the redo will not be delayed on standby, which would be critical in maximum protection mode when the primary would wait until log was applied remotely.</p>
<p style="padding-left:30px;">Wed Oct 19 11:58:13 2011<br />
LGWR: Insufficient standby redo logfiles to archive thread 1 sequence 47505<br />
LGWR: Standby redo logfile selected for thread 1 sequence 47505 for destination LOG_ARCHIVE_DEST_2<br />
Thread 1 advanced to log sequence 47505 (LGWR switch)<br />
Current log# 20 seq# 47505 mem# 0: +DATA/SID/onlinelog/group_20.2083.735986363<br />
Current log# 20 seq# 47505 mem# 1: +FRA/SID/onlinelog/group_20.1668.735986365</p>
<p>MyOracleSupport document  798361.1 &#8220;LGWR: Insufficient standby redo logfiles to archive&#8221; Messages in Primary Database</p>
<p>This states:- Bug 8358103 &#8211; will be fixed in 10.2.0.5 and 11.1.0.8. &#8220;Insufficient standby redo logfiles&#8221; message is misleading as it is followed by &#8220;Standby redo logfile selected&#8221;, which indicates the standby redo logs is selected and being used. You can safely ignore these messages.  Note that 11.1.0.8 is unlikely to happen as 11.1.0.7 is the terminal release</p>
<p><strong>Lag apply alert on standby database</strong></p>
<p>The second is something I came across yesterday after we had performed a switchover from primary to standby. Normally we set the lag apply metric in OEM to alert us if standby gets more than 900 seconds behind). This is set in OEM for each database (unless you want to issue a modified template)</p>
<p>Database &gt; Metric and Policy Settings &gt; then first metric is Apply Lag (seconds) In order to see graph, you can go to all metrics &gt; Data Guard Performance &gt; Apply Lag (Seconds).</p>
<p>The alert is set on standby and yet when a switchover is invoked (I am assuming either by DG broker or manually as we did it, then we would expect that alert to be still in place. However it is removed and has to be re-applied.</p>
<p><strong>Block change tracking on a standby requires active dataguard license</strong></p>
<p>From 11GR1 onwards running a standby database with the block change tracking file enabled (which helps make incremental backups much faster) <a href="http://download.oracle.com/docs/cd/E18283_01/backup.112/e10642/rcmbckba.htm">requires an active dataguard license to be in place</a>. Whilst I think this policy is very mean spirited, especially when a license was not required in a similar situation on 10G it is a requirement and should not be ignored.</p>
<p>Hope these heads-up are useful</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/1007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/1007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/1007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/1007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/1007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/1007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/1007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/1007/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=1007&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/10/27/standby-databases-a-few-of-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
		<item>
		<title>Resource Manager plans during the automatic maintenance window</title>
		<link>http://jhdba.wordpress.com/2011/10/19/resource-manager-plans-during-the-automatic-maintenance-window/</link>
		<comments>http://jhdba.wordpress.com/2011/10/19/resource-manager-plans-during-the-automatic-maintenance-window/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 06:33:30 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[11g new features]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[automatic maintenance window]]></category>
		<category><![CDATA[dbms_scheduler.set_attribute]]></category>
		<category><![CDATA[DEFAULT_MAINTENANCE_PLAN]]></category>
		<category><![CDATA[Resource Manager]]></category>
		<category><![CDATA[resource_manager =’FORCE:']]></category>
		<category><![CDATA[X$DBGALERTEXT]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=985</guid>
		<description><![CDATA[Whilst ensuring that Resource manager was working properly I noticed a problem that it seemed to be dropping out of the plan I wanted to run ( DW_PLAN) and returning to the default plan whilst in the automatic maintenance windows. The fix for that is to set the parameter resource_manager =’FORCE:DW_PLAN’ and the DW_PLAN is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=985&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Whilst ensuring that Resource manager was working properly I noticed a problem that it seemed to be dropping out of the plan I wanted to run ( DW_PLAN) and returning to the default plan whilst in the automatic maintenance windows.</p>
<p>The fix for that is to set the parameter resource_manager =’FORCE:DW_PLAN’ and the DW_PLAN is retained. The reason why the default plan is started off is so that  scheduler knows it has sufficient resources to get the job done and it will not be artificially constrained. If your plan does not limit the scheduler required resources then there is no harm in making your normal plan the plan for 24*7</p>
<p>I had noticed that  the plan was defaulting from a couple of entries in the alert log but wanted to get an exact listing of what was happening. I used the xml logs that came with the ADR package and the X$DBGALERTEXT view.<span id="more-985"></span></p>
<p>The syntax was easy to work out and produced a much better report than that delivered by using grep against the alert log (text version)</p>
<p><pre class="brush: sql; gutter: false; highlight: [10,11]; pad-line-numbers: true;">set lines 125 pages 0
col when form a20
col message_text form a95
select substr(originating_timestamp,1,15) when , message_text from x$dbgalertext where originating_timestamp &gt; (sysdate - 10) and  message_text like '%Resource%’; </pre></p>
<p>07-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C57]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
07-OCT-11 23.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
08-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
08-OCT-11 07.00      Setting Resource Manager plan SCHEDULER[0x2C58]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
08-OCT-11 07.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
09-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
09-OCT-11 07.00      Setting Resource Manager plan SCHEDULER[0x2C59]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
09-OCT-11 07.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
10-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
10-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C53]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
10-OCT-11 23.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
11-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
11-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C54]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
11-OCT-11 23.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
12-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
12-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C55]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
12-OCT-11 23.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
13-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
13-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C56]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
13-OCT-11 23.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter</p>
<p>I knew I had resolved this on the pre-production environment by submitting some scheduler attribute commands but I could not remember the format until I came across MoS note 786364.1 which reminded me how I did it last time.</p>
<p>Before</p>
<p><a href="http://jhdba.files.wordpress.com/2011/10/rm_11.jpg"><img class="alignleft size-full wp-image-991" title="rm_1" src="http://jhdba.files.wordpress.com/2011/10/rm_11.jpg" alt="" width="1024" height="500" /></a></p>
<p>First of all change the scheduler windows to use the DW_PLAN (or other nonrestrictive plan) using:</p>
<p><pre class="brush: sql; gutter: false; highlight: [10,11]; pad-line-numbers: true;">execute dbms_scheduler.set_attribute('WEEKNIGHT_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('WEEKEND_WINDOW','RESOURCE_PLAN','DW_PLAN');

--Then, for each window_name (WINDOW_NAME from DBA_SCHEDULER_WINDOWS), run:

execute dbms_scheduler.set_attribute('&lt;window name&gt;',' DW_PLAN ','');
execute dbms_scheduler.set_attribute('MONDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('TUESDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('WEDNESDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('THURSDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('FRIDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('SATURDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');
execute dbms_scheduler.set_attribute('SUNDAY_WINDOW','RESOURCE_PLAN','DW_PLAN');</pre></p>
<p>&nbsp;</p>
<p>After</p>
<p><a href="http://jhdba.files.wordpress.com/2011/10/rm_22.jpg"><img class="alignleft size-full wp-image-992" title="rm_2" src="http://jhdba.files.wordpress.com/2011/10/rm_22.jpg" alt="" width="1024" height="500" /></a></p>
<p> The proof is in the pudding  &#8211;  the change was made on the 18th October and the required plan stays in place</p>
<p style="padding-left:30px;">17-OCT-11 08.47      Setting Resource Manager plan DW_PLAN via parameter<br />
17-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C53]:DEFAULT_MAINTENANCE_PLAN via scheduler window<br />
17-OCT-11 23.00      Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter<br />
18-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameter<br />
18-OCT-11 23.00      Setting Resource Manager plan SCHEDULER[0x2C54]:DW_PLAN via scheduler window<br />
18-OCT-11 23.00      Setting Resource Manager plan DW_PLAN via parameter<br />
19-OCT-11 03.00      Setting Resource Manager plan DW_PLAN via parameterset</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/985/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=985&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/10/19/resource-manager-plans-during-the-automatic-maintenance-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>

		<media:content url="http://jhdba.files.wordpress.com/2011/10/rm_11.jpg" medium="image">
			<media:title type="html">rm_1</media:title>
		</media:content>

		<media:content url="http://jhdba.files.wordpress.com/2011/10/rm_22.jpg" medium="image">
			<media:title type="html">rm_2</media:title>
		</media:content>
	</item>
		<item>
		<title>The value of UKOUG presentation feedback</title>
		<link>http://jhdba.wordpress.com/2011/10/10/the-value-of-ukoug-presentation-feedback/</link>
		<comments>http://jhdba.wordpress.com/2011/10/10/the-value-of-ukoug-presentation-feedback/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 09:55:59 +0000</pubDate>
		<dc:creator>John Hallas</dc:creator>
				<category><![CDATA[UKOUG]]></category>

		<guid isPermaLink="false">http://jhdba.wordpress.com/?p=980</guid>
		<description><![CDATA[One of the benefits of presenting at UKOUG, whether it be a SIG or the Conference is the feedback received from the audience via the questionnaire. I received mine for the ADR presentation I did at the Unix SIG recently. I was pleased to see I received very positive marks and the comments were supportive. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=980&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the benefits of presenting at UKOUG, whether it be a SIG or the Conference is the feedback received from the audience via the questionnaire. I received mine for the ADR presentation I did at the Unix SIG recently. I was pleased to see I received very positive marks and the comments were supportive. Probably the most important factor to me was the marks given for presentation skills which were good and seem to get better with each presentation, which should not be too much of a surprise.</p>
<p>I think self-development is an important part of presenting. Yes I know the altruistic believe it should all be for the audience but I am happy to take away confidence and self-belief from my experiences. I set myself a target originally of doing a SIG presentation and then a conference presentation. My next step was to talk on a technical subject which has now been achieved and my final objective is to try and do an interactive technical demonstration using a laptop. At the moment I have no idea on what that will be about and I have no timescale so I can consider it a work in progress at the moment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhdba.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhdba.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhdba.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhdba.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhdba.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhdba.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhdba.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhdba.wordpress.com/980/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhdba.wordpress.com&amp;blog=1223552&amp;post=980&amp;subd=jhdba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhdba.wordpress.com/2011/10/10/the-value-of-ukoug-presentation-feedback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6459aeab059787c65ac193385e0b4483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jhdba</media:title>
		</media:content>
	</item>
	</channel>
</rss>
