<?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 Database Disected Weblog &#187; Oracle 10g</title>
	<atom:link href="http://oracledisect.wordpress.com/category/oracle-10g/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracledisect.wordpress.com</link>
	<description>Let's Talk about Oracle Server, day to day experiencies, technical researchs, some internals and news.</description>
	<lastBuildDate>Wed, 12 Nov 2008 17:53:31 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='oracledisect.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/415daee54d279be2cb260e91866d0cfc?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Oracle Database Disected Weblog &#187; Oracle 10g</title>
		<link>http://oracledisect.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://oracledisect.wordpress.com/osd.xml" title="Oracle Database Disected Weblog" />
		<item>
		<title>Index Dynamics &#8211; Part 3</title>
		<link>http://oracledisect.wordpress.com/2008/11/11/index-dynamics-part-3/</link>
		<comments>http://oracledisect.wordpress.com/2008/11/11/index-dynamics-part-3/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 11:00:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Innerworkings]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/11/11/index-dynamics-part-3/</guid>
		<description><![CDATA[
Ver este articulo en Español
See previous post Index Dynamics &#8211; Part II or  first part Index Dynamics &#8211; Part I
On this part, I’m going to share with you the final results for my 2 week experiment with indexes on their habitat, a production environment.
I’ve to forewarn that some data was not available, as the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=63&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.wordpress.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" alt="" /></a><a href="http://www.databases-la.com/?q=es/node/44">Ver este articulo en Español</a></p>
<p>See previous post <a href="http://oracledisect.blogspot.com/2008/10/index-dynamics-part-2-halloween-on.html">Index Dynamics &#8211; Part II</a> or  first part <a href="http://oracledisect.blogspot.com/2008/10/index-dynamics.html">Index Dynamics &#8211; Part I</a></p>
<p>On this part, I’m going to share with you the final results for my 2 week experiment with indexes on their habitat, a production environment.</p>
<p>I’ve to forewarn that some data was not available, as the ANALYZE method fails for objects currently locked, given that our environment is a “live” production database and for consistency we scheduled all tests for a given time, which some days collided with business process. The Used Space graph shows those NA data points; however for INDEX1 and INDEX4 the Nov 7th data for Deltas was interpolated, the only index for which we have all samples is INDEX2, coincidentally our research subject.</p>
<p>First let’s see the Used Space graph, here you may see how the Used Space percentage continues the decay trend, which means that free space within the index nodes is increasing.</p>
<p><a href="http://2.bp.blogspot.com/_9jCa6_0_7n4/SRm-ws3A3LI/AAAAAAAAADM/h9MsMBauDlc/s1600-h/idx_usp3.png"><img style="display:block;text-align:center;cursor:pointer;width:400px;height:244px;margin:0 auto 10px;" src="http://2.bp.blogspot.com/_9jCa6_0_7n4/SRm-ws3A3LI/AAAAAAAAADM/h9MsMBauDlc/s400/idx_usp3.png" border="0" alt="" /></a><br />
Compare the current Used Space figures to those sampled before the rebuild, observe that after 15 days some indexes are midway to have the same amount of free space. That recalls the frequent doubts regarding index maintenance: “<span style="font-style:italic;">Must</span> rebuild indexes? <span style="font-style:italic;">How long</span> will last the structure ‘<span style="font-style:italic;">optimus</span>’ state?”</p>
<pre>Used Space    First    Now
INDEX1(10c)    69%     99%
<span style="color:#ff0000;font-weight:bold;">INDEX4(6c)     63%     74%</span>
<span style="color:#ff0000;">INDEX2(4c)     53%     77%</span>
INDEX3(2c)     45%     92%</pre>
<p>Given our partial-conclusion stated last post (<a href="http://oracledisect.blogspot.com/2008/10/index-dynamics-part-2-halloween-on.html">Index Dynamics &#8211; Part II</a>)<br />
”The branch blocks are the stressed part of the B-Tree right after the rebuild”<br />
We now might see less activity for Branch Blocks during the following days, which actually occurred.</p>
<p><a href="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRm_XBxwBcI/AAAAAAAAADU/zk0d2DrjsO8/s1600-h/idx_brbdp3.png"><img style="display:block;text-align:center;cursor:pointer;width:400px;height:236px;margin:0 auto 10px;" src="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRm_XBxwBcI/AAAAAAAAADU/zk0d2DrjsO8/s400/idx_brbdp3.png" border="0" alt="" /></a><br />
One remark: observe the Nov 6th high for INDEX1 and the previous behavior, was on that day the transaction rate motivated a higher reorganization within the index, showing us the impact business patterns have on data structures.</p>
<p>I have to mention that my production environment went through a period close week, therefore increased activity and closing processes made their mark on observations. An example of this is the resulting graphs for Leaf Blocks, with noticeable inter-day spikes.</p>
<p><a href="http://2.bp.blogspot.com/_9jCa6_0_7n4/SRm_r8tny0I/AAAAAAAAADc/xv_8TokGaJE/s1600-h/idx_lfbdzp3.png"><img style="display:block;text-align:center;cursor:pointer;width:400px;height:239px;margin:0 auto 10px;" src="http://2.bp.blogspot.com/_9jCa6_0_7n4/SRm_r8tny0I/AAAAAAAAADc/xv_8TokGaJE/s400/idx_lfbdzp3.png" border="0" alt="" /></a></p>
<p>Let’s pay a visit to our research subject, INDEX2. This chart is online with everything previously stated, no surprises here.</p>
<p><a href="http://3.bp.blogspot.com/_9jCa6_0_7n4/SRnAEEJDCOI/AAAAAAAAADk/AU4QjjzMuko/s1600-h/idx2usdp3.png"><img style="display:block;text-align:center;cursor:pointer;width:400px;height:246px;margin:0 auto 10px;" src="http://3.bp.blogspot.com/_9jCa6_0_7n4/SRnAEEJDCOI/AAAAAAAAADk/AU4QjjzMuko/s400/idx2usdp3.png" border="0" alt="" /></a><br />
This study motivated the following questions (that’s the problem with research, you answer one question and many new take the place):<br />
1) How PCT_FREE (or PCT_USED) impacts the decay curve?<br />
2) Are the splitting constants embedded in the code, optimal figures?<br />
3) Do we need a feature for PCT_FREE change after rebuild has been done?</p>
<p>Conclusions</p>
<p>* High stress within the branch blocks may be observed as soon as transactions start to modify the index structure; the stress period or intensity, will depend on transaction rate and index attributes.</p>
<p>Recommendation</p>
<p>* Do not rebuild indexes right before processes or high load days, if heavy writing is expected: the index leaf block split overhead may impact performance.</p>
<p>I’ve the pending assignment of proposing a mathematical model for the Index Decay Rate… I’m working on that, with the help of Calculus. My next delivery will talk about that, I’m pretty close…</p>
<p>Thank you for reading, don’t forget to leave your comments.</p>
<p>See previous post <a href="http://oracledisect.blogspot.com/2008/10/index-dynamics-part-2-halloween-on.html">Index Dynamics &#8211; Part II</a> or  first part <a href="http://oracledisect.blogspot.com/2008/10/index-dynamics.html">Index Dynamics &#8211; Part I</a></p>
<p><img src="http://static.delicious.com/img/delicious.small.gif" alt="Delicious" width="10" height="10" /><br />
<a href="http://delicious.com/save"> Bookmark this on Delicious</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=63&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/11/11/index-dynamics-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />

		<media:content url="http://2.bp.blogspot.com/_9jCa6_0_7n4/SRm-ws3A3LI/AAAAAAAAADM/h9MsMBauDlc/s400/idx_usp3.png" medium="image" />

		<media:content url="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRm_XBxwBcI/AAAAAAAAADU/zk0d2DrjsO8/s400/idx_brbdp3.png" medium="image" />

		<media:content url="http://2.bp.blogspot.com/_9jCa6_0_7n4/SRm_r8tny0I/AAAAAAAAADc/xv_8TokGaJE/s400/idx_lfbdzp3.png" medium="image" />

		<media:content url="http://3.bp.blogspot.com/_9jCa6_0_7n4/SRnAEEJDCOI/AAAAAAAAADk/AU4QjjzMuko/s400/idx2usdp3.png" medium="image" />

		<media:content url="http://static.delicious.com/img/delicious.small.gif" medium="image">
			<media:title type="html">Delicious</media:title>
		</media:content>
	</item>
		<item>
		<title>Index Dynamics &#8211; Part 2 (Halloween on the Block)</title>
		<link>http://oracledisect.wordpress.com/2008/10/31/index-dynamics-part-2-halloween-on-the-block/</link>
		<comments>http://oracledisect.wordpress.com/2008/10/31/index-dynamics-part-2-halloween-on-the-block/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 06:20:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Innerworkings]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/10/31/index-dynamics-part-2-halloween-on-the-block/</guid>
		<description><![CDATA[
Ver este artículo en Español
View starting post: Index Dynamics &#8211; Part 1
As I&#8217;ve promised, today will share with you mid-term results for my index observations.
First we may see a graph of Used Space, as reported by column PCT_USED of table INDEX_STATS (right after an ANALYZE over each index). This percentage accounts the space allocated to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=59&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.wordpress.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" alt="" /></a><a href="http://www.databases-la.com/?q=es/node/42">Ver este artículo en Español</a></p>
<p>View starting post: <a href="http://oracledisect.wordpress.com/2008/10/27/index-dynamics/">Index Dynamics &#8211; Part 1</a></p>
<p>As I&#8217;ve promised, today will share with you mid-term results for my index observations.</p>
<p>First we may see a graph of Used Space, as reported by column PCT_USED of table INDEX_STATS (right after an ANALYZE over each index). This percentage accounts the space allocated to the B-Tree that is used.<br />
<a href="http://3.bp.blogspot.com/_9jCa6_0_7n4/SRDDHtVy9AI/AAAAAAAAACs/48KZ4N2hX18/s1600-h/idx_us.png"><img style="display:block;text-align:center;cursor:pointer;width:400px;height:244px;margin:0 auto 10px;" src="http://3.bp.blogspot.com/_9jCa6_0_7n4/SRDDHtVy9AI/AAAAAAAAACs/48KZ4N2hX18/s400/idx_us.png" border="0" alt="" /></a><br />
There is one line for every index we are considering, and note the legend on the graph showing the index name and the number of columns inside parenthesis.</p>
<p>What can be observed in this chart?<br />
1) After rebuild (done on saturday), every index starts with 95% used space.<br />
2) First day is sunday, the system had almost 0 activity, therefore our indexes&#8217; space usage show slight changes.<br />
3) Starting on monday, INDEX1 reported wrong data for PCT_USED and the other indexes began their &#8220;decay&#8221; trend.<br />
4) After a whole week of activity, indexes gained free space, some of them faster than others (for instance INDEX4 went from 95% to 84% used space, that is 11% on 5 days).</p>
<p>Point 3 raised a service request with Oracle.<br />
Point 4 may be explained in terms of:<br />
a) Table transactionality (how many insertions/deletes/updates it had)<br />
b) Index type, if unique or non-unique.<br />
c) Number of columns conforming the index.<br />
d) Type of every indexed column.</p>
<p>I may propose the following hypothesis: the index used space decay rate is directly proportional to the table&#8217;s transactionality, to the number of columns and types of them, and inversely proportional to the type of the index (Unique or non-Unique) and block size.</p>
<p>As you already know, B-Tree indexes have two types of nodes: called Branches and Leafs.</p>
<p>Now, let&#8217;s see where is that space allocated, look this chart that shows increment or delta on daily samples taken from column LF_BLKS.<br />
<a href="http://1.bp.blogspot.com/_9jCa6_0_7n4/SRDkeY2hWmI/AAAAAAAAAC0/fhux6W84PRk/s1600-h/idx_lfbd.png"><img style="display:block;text-align:center;cursor:pointer;width:320px;height:195px;margin:0 auto 10px;" src="http://1.bp.blogspot.com/_9jCa6_0_7n4/SRDkeY2hWmI/AAAAAAAAAC0/fhux6W84PRk/s320/idx_lfbd.png" border="0" alt="" /></a><br />
You may see a great saving due to rebuild, however that saving fades slowly during the following days. Next chart makes a zoom, in order to watch closely the variation rate experimented during those days.<br />
<a href="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRDs-JN1nxI/AAAAAAAAAC8/bR3jitR54kU/s1600-h/idx_lfbdz.png"><img style="display:block;text-align:center;cursor:hand;width:400px;height:244px;margin:0 auto 10px;" src="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRDs-JN1nxI/AAAAAAAAAC8/bR3jitR54kU/s400/idx_lfbdz.png" border="0" alt="" /></a><br />
Keep in mind the rate at which leaf blocks are incremented, later you&#8217;ll see how it&#8217;s related to new key insertions (transactionality).</p>
<p>What about the branches? &#8230; that&#8217;s what we&#8217;re going to see on next chart: the behavior of those indexes for branch blocks. I&#8217;ve taken the sampled value for BR_BLKS and got the variation rate versus the previous day.<br />
<a href="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRDvxp_nmaI/AAAAAAAAADE/n1z0Ouy4Wr8/s1600-h/idx_brbd.png"><img style="display:block;text-align:center;cursor:hand;width:400px;height:244px;margin:0 auto 10px;" src="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRDvxp_nmaI/AAAAAAAAADE/n1z0Ouy4Wr8/s400/idx_brbd.png" border="0" alt="" /></a><br />
Please observe, the stepped peak for INDEX2 and INDEX4, during the first day of activity the number of branch blocks almost doubled, that means an intense reorganization within the index. That may be caused due to the nature of these indexes (all are UNIQUE) and a high transactionality rate.</p>
<p>For the INDEX3, we observe that the increase is splited between 2 days, Sunday and Monday. This table presented activity the day after the rebuild was done.</p>
<p>We have to ignore the INDEX4, cause their figures are not reliable.</p>
<p>Why is there a higher increase on the number of branch blocks? We may answer that question recalling the percentage of free space (5%) we had after the rebuild, that is a very small margin for a leaf block, and the chances of split increase if we have a UNIQUE index. We must remember that a leaf block split, may involve a branch block split.</p>
<p>Our partial conclusions may be stated as follow:<br />
1) Depending on the percentage of free space, after rebuilding indexes, their state becomes &#8220;less&#8221; stable.<br />
2) Indexes tend to take a &#8220;stable&#8221; form, with the pass of time.<br />
3) The branch blocks are the stressed part of the B-Tree right after the rebuild.</p>
<p>I will finish this experiment next Saturday, and share with you all remaining findings next Tuesday; yes, seven days from now&#8230; or eight days? anyway&#8230;<br />
I hope to get near a mathematical model for the Index Decay Rate, cross fingers.</p>
<p>Thank you for reading, keep in touch!</p>
<p>See next part on <a href="http://oracledisect.wordpress.com/2008/11/11/index-dynamics-part-3/">Index Dynamics &#8211; Part III</a> or go to first part <a href="http://oracledisect.wordpress.com/2008/10/27/index-dynamics/">Index Dynamics &#8211; Part I</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=59&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/10/31/index-dynamics-part-2-halloween-on-the-block/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />

		<media:content url="http://3.bp.blogspot.com/_9jCa6_0_7n4/SRDDHtVy9AI/AAAAAAAAACs/48KZ4N2hX18/s400/idx_us.png" medium="image" />

		<media:content url="http://1.bp.blogspot.com/_9jCa6_0_7n4/SRDkeY2hWmI/AAAAAAAAAC0/fhux6W84PRk/s320/idx_lfbd.png" medium="image" />

		<media:content url="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRDs-JN1nxI/AAAAAAAAAC8/bR3jitR54kU/s400/idx_lfbdz.png" medium="image" />

		<media:content url="http://4.bp.blogspot.com/_9jCa6_0_7n4/SRDvxp_nmaI/AAAAAAAAADE/n1z0Ouy4Wr8/s400/idx_brbd.png" medium="image" />
	</item>
		<item>
		<title>How to Flush your database caches</title>
		<link>http://oracledisect.wordpress.com/2008/10/29/how-to-flush-your-database-caches/</link>
		<comments>http://oracledisect.wordpress.com/2008/10/29/how-to-flush-your-database-caches/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 03:36:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/10/29/how-to-flush-your-database-caches/</guid>
		<description><![CDATA[
Ver este articulo en Español
Flushing the SGA memory areas, Shared Pool and Buffer Cache, it&#8217;s an uncommon task, however, it gets useful when you&#8217;re doing some tests and want to override the memory and go direct to disk, or when you have shared pool issues (here is a workaround, however I encourage you to find [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=58&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.blogspot.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" alt="" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" /></a><a href="http://www.databases-la.com/?q=es/node/41">Ver este articulo en Español</a></p>
<p>Flushing the SGA memory areas, Shared Pool and Buffer Cache, it&#8217;s an uncommon task, however, it gets useful when you&#8217;re doing some tests and want to override the memory and go direct to disk, or when you have shared pool issues (here is a workaround, however I encourage you to find the root cause).</p>
<p><span style="font-weight:bold;">Shared Pool flush</span><br />This is the only sentence you have to know for releases 9i and up&#8230;
<pre>alter system flush shared_pool</pre>
<p><span style="font-weight:bold;">Buffer Cache flush</span><br />For Oracle 9i I didn&#8217;t know how to do this, fortunately found it today on <a href="http://ragivetova.blogspot.com/2008/09/flush-buffer-cache.html">Rahat Agivetova&#8217;s blog</a>
<pre>alter session set events = 'immediate trace name flush_cache';</pre>
<p>I&#8217;ve tested it and does the job well&#8230;</p>
<p>And for Oracle 10g and up, the syntaxis is as follows:
<pre>alter system flush buffer_cache;</pre>
<p>But you already knew that, isn&#8217;t it? &#8230;well, this was a &#8220;snack&#8221; post until Friday&#8217;s follow up to <a href="http://oracledisect.blogspot.com/2008/10/index-dynamics.html">Index Dynamics</a>, which I may anticipate interesting results&#8230;</p>
<p>Thanks for reading&#8230; and for your comments, too!</p>
<p><a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=1867657&amp;loc=en_US">Subscribe to Oracle Database Disected by Email</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=58&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/10/29/how-to-flush-your-database-caches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />
	</item>
		<item>
		<title>Index dynamics</title>
		<link>http://oracledisect.wordpress.com/2008/10/27/index-dynamics/</link>
		<comments>http://oracledisect.wordpress.com/2008/10/27/index-dynamics/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 05:38:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Innerworkings]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/10/27/index-dynamics/</guid>
		<description><![CDATA[

Ver este articulo en Español
Today I will start with a series of 3 posts depicting the follow up of 4 index behavior on a Production database.
The purpose of this exercise is try to unveil the morphology these four indexes take during a given period of time, under what kind of load, model it in a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=47&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.wordpress.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" alt="Sigue el link" /></a><a href="http://www.databases-la.com/?q=es/node/39"><br />
Ver este articulo en Español</a></p>
<p>Today I will start with a series of 3 posts depicting the follow up of 4 index behavior on a Production database.</p>
<p>The purpose of this exercise is try to unveil the morphology these four indexes take during a given period of time, under what kind of load, model it in a graphical way. Since indexes are quite a black box, this exercises also proposes a complementary procedure for index quality measure.</p>
<p>Experiment subjects were selected using information on DBA_SEGMENTS+DBA_HIST_SEGMENTS, with focus on size and activity, indexes were choosen within the 400Mb-500Mb range thinking on fast ALTER INDEX REBUILD and fast ANALYZE VALIDATE STRUCTURE.</p>
<p>Our four candidates are (names were replaced in order to protect their identity)</p>
<pre>OBJNAME                  BLOCKS      BYTES HEIGHT PCTUSED
-------------------- ---------- ---------- ------ -------
INDEX1                    62464  511705088      4      69
INDEX2                    60416  494927872      4      53
INDEX3                    61056  500170752      4      45
INDEX4                    54272  444596224      4      63</pre>
<p>We have our &#8220;Before&#8221; snapshots, now we need to rebuild all four indexes and take &#8220;Initial&#8221; snapshots to start the experiment. After this operation our figures are:</p>
<pre>OBJNAME                  BLOCKS      BYTES HEIGHT PCT_USED
-------------------- ---------- ---------- ------ --------
INDEX1                    41600  340787200     4       95
INDEX2                    34176  279969792     4       95
INDEX3                    28032  229638144     3       95
INDEX4                    37888  270445017     4       95</pre>
<p>Note the amount of space &#8220;empty&#8221; the indexes had before rebuild, for INDEX2 and INDEX2 we may ask ourselves &#8220;How are the tables used in order to get index keys so dispersed?&#8221;. INDEX1 and INDEX4 seem within normal parameters. All four indexes now have the same initial condition on 5% free space.</p>
<p>On October 31th, Friday &#8230; Hallowen, we are going to see what has been happening with our indexes;and who knows, you may testify witchcraft&#8230; or, is it science? What do you think?</p>
<p>Keep in touch&#8230;</p>
<p>See next part of this story on <a href="http://oracledisect.wordpress.com/2008/10/31/index-dynamics-part-2-halloween-on-the-block/">Index Dynamics &#8211; Part II</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=47&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/10/27/index-dynamics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image">
			<media:title type="html">Sigue el link</media:title>
		</media:content>
	</item>
		<item>
		<title>Statspack snapshot levels</title>
		<link>http://oracledisect.wordpress.com/2008/10/20/statspack-snapshot-levels/</link>
		<comments>http://oracledisect.wordpress.com/2008/10/20/statspack-snapshot-levels/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 17:07:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/10/20/statspack-snapshot-levels/</guid>
		<description><![CDATA[
You&#8217;re going to start taking snapshots for Statspack reports, however do you really know what level will give you the detail you want?  Valid values for snapshot level are 0,5,6,7 and 10, ordered from the less detailed to the most detailed.
Following are listed all the sections that may appear on a Statspack report and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=43&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.blogspot.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p>You&#8217;re going to start taking snapshots for Statspack reports, however do you really know what level will give you the detail you want?  Valid values for snapshot level are 0,5,6,7 and 10, ordered from the less detailed to the most detailed.</p>
<p>Following are listed all the sections that may appear on a Statspack report and the snapshot level you need to run in order to get data for them. They are listed as their appearance order within the Statspack report. An &#8216;X&#8217; mark means &#8220;present&#8221;.<br />
<table width="390" border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="17"></td>
<td colspan="5" style="font-family:arial;"><span style="font-size:85%;">Snapshot Level</span></td>
</tr>
<tr style="height:13.5pt;">
<td class="xl2519030" style="height:13.5pt;" height="18"></td>
<td class="xl3019030"><span style="font-size:85%;">0</span></td>
<td class="xl2619030" style="border-left:medium none;"><span style="font-size:85%;">5</span></td>
<td class="xl2619030" style="border-left:medium none;"><span style="font-size:85%;">6</span></td>
<td class="xl2619030" style="border-left:medium none;"><span style="font-size:85%;">7</span></td>
<td class="xl3119030" style="border-left:medium none;"><span style="font-size:85%;">10</span></td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4319030" style="border-top:medium none;height:12.75pt;" bgcolor="#6699ff" height="17">STATSPACK report for</td>
<td class="xl3919030" style="border-top:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3319030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3319030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3319030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3419030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Load Profile<span> </span></td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" bgcolor="#6699ff" height="17">Instance Efficiency Percentages</td>
<td class="xl4119030" style="border-top:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Top 5 Timed Events</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17" bgcolor="#6699ff">Wait Events for DB</td>
<td class="xl4119030" style="border-top:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Background Wait Events for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17" bgcolor="#6699ff">SQL ordered by Gets for DB</td>
<td class="xl4119030" style="border-top:medium none;" bgcolor="#6699ff"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;" bgcolor="#6699ff">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">SQL ordered by Reads for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">SQL ordered by Executions for DB</td>
<td class="xl4119030" style="border-top:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">SQL ordered by Parse Calls for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">SQL ordered by Sharable Memory for DB</td>
<td class="xl4119030" style="border-top:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Instance Activity Stats for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Tablespace IO Stats for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">File IO Stats for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Buffer Pool Statistics for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Instance Recovery Stats for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Buffer Pool Advisory for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Buffer wait Statistics for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">PGA Aggr Target Stats for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">PGA Aggr Target Histogram for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">PGA Memory Advisory for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Enqueue activity for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Rollback Segment Stats for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Rollback Segment Storage for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Undo Segment Summary for DB</td>
<td class="xl4119030" style="border-top:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Undo Segment Stats for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Latch Activity for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Latch Sleep breakdown for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Latch Miss Sources for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Parent Latch Statistics DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Child Latch Statistics DB</td>
<td class="xl4119030" style="border-top:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Top 5 Logical Reads per Segment for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Top 5 Physical Reads per Segment for DB</td>
<td class="xl4119030" style="border-top:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Top 5 Buf. Busy Waits per Segment for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Top 5 Row Lock Waits per Segment for DB</td>
<td class="xl4119030" style="border-top:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Top 5 ITL Waits per Segment for DB</td>
<td class="xl4019030" style="border-top:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;"></td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Dictionary Cache Stats for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Library Cache Activity for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">Shared Pool Advisory for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">SGA Memory Summary for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;" bgcolor="#6699ff">
<td class="xl4519030" style="border-top:medium none;height:12.75pt;" height="17">SGA breakdown difference for DB</td>
<td class="xl4119030" style="border-top:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3519030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3619030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:12.75pt;">
<td class="xl4419030" style="border-top:medium none;height:12.75pt;" height="17">Resource Limit Stats for DB</td>
<td class="xl4019030" style="border-top:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl2419030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3219030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="height:13.5pt;" bgcolor="#6699ff">
<td class="xl4619030" style="border-top:medium none;height:13.5pt;" height="18">init.ora Parameters for DB</td>
<td class="xl4219030" style="border-top:medium none;">x</td>
<td class="xl3719030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3719030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3719030" style="border-top:medium none;border-left:medium none;">x</td>
<td class="xl3819030" style="border-top:medium none;border-left:medium none;">x</td>
</tr>
<tr style="display:none;">
<td width="283"></td>
<td style="width:20pt;" width="26"></td>
<td width="26"></td>
<td style="width:20pt;" width="26"></td>
<td width="26"></td>
<td width="21"></td>
</tr>
</tbody>
</table>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=43&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/10/20/statspack-snapshot-levels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>
	</item>
		<item>
		<title>Real Application Testing backported to 10g and 9i</title>
		<link>http://oracledisect.wordpress.com/2008/07/22/real-application-testing-backported-to-10g-and-9i/</link>
		<comments>http://oracledisect.wordpress.com/2008/07/22/real-application-testing-backported-to-10g-and-9i/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 04:47:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Oracle 9i]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/07/22/real-application-testing-backported-to-10g-and-9i/</guid>
		<description><![CDATA[This functionality has been such a success that Oracle has decided to backport it to previous supported releases. That includes 9.2.0.8, 10.1.0.2 and up, 10.2.0.2 and up.
The easiest path is 10.2.0.4 because it includes the RAT functionality, any other option needs an additional patch in order to enable it.
Personally I consider Oracle has made a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=33&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This functionality has been such a success that Oracle has decided to backport it to previous supported releases. That includes 9.2.0.8, 10.1.0.2 and up, 10.2.0.2 and up.</p>
<p>The easiest path is 10.2.0.4 because it includes the RAT functionality, any other option needs an additional patch in order to enable it.</p>
<p>Personally I consider Oracle has made a very smart move, this feature may wake upgrade desire everywhere and add one more reason to make the effort and upgrade to 10g&#8230; and who knows, even trigger a jump to 11g in some cases.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/oracledisect.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/oracledisect.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=33&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/07/22/real-application-testing-backported-to-10g-and-9i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>
	</item>
		<item>
		<title>2 minute guide for Statspack sample scheduling</title>
		<link>http://oracledisect.wordpress.com/2008/05/26/2-minute-guide-for-statspack-sample-scheduling/</link>
		<comments>http://oracledisect.wordpress.com/2008/05/26/2-minute-guide-for-statspack-sample-scheduling/#comments</comments>
		<pubDate>Mon, 26 May 2008 03:30:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/05/26/2-minute-guide-for-statspack-sample-scheduling/</guid>
		<description><![CDATA[Now that you have installed the Statspack tool, you need to start taking samples or snapshots. This is a task you may easily automate, and is recommended to do so, because snapshots are evenly and uniformly spaced.
You may schedule this task using cron, at or any OS or 3rd party scheduler, but I would suggest [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=20&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Now that you have installed the Statspack tool, you need to start taking samples or snapshots. This is a task you may easily automate, and is recommended to do so, because snapshots are evenly and uniformly spaced.</p>
<p>You may schedule this task using <strong>cron</strong>, <strong>at</strong> or any OS or 3rd party scheduler, but I would suggest a better way: database jobs.</p>
<p>Advantages:<br />-Database Contained<br />-Don&#8217;t breach security exposing users/passwords</p>
<p>The Statspack set of tools provides a script that automatically creates the job for you: <em>spauto.sql</em>. It&#8217;s located at <em>$ORACLE_HOME/rdbms/admin</em> and you may easily customize the NEXT_DATE parameter for dbms_job.submit (below, red color) and adjust the time interval . You will need to change TRUNC rounding precision if you go from hours to minutes.</p>
<p>
<pre>dbms_job.submit(:jobno, 'statspack.snap;', <span style="color:#ff0000;">trunc(sysdate+1/48,'MI')</span>, 'trunc(SYSDATE+1/48,''MI'')', TRUE, :instno);
</pre>
<p>Then you need to run the <em>spauto</em> script as the user perfstat or the Statspack owner you have:</p>
<pre>SQL&gt; conn perfstatPassword:

ConnectSQL&gt; @?/rdbms/admin/spauto
</pre>
<p>You will get an output like this, showing the job number created by <em>spauto</em> and information regarding the next execution time. At this point, snapshot taking has been scheduled succesfuly.</p>
<pre>Job number for automated statistics collection for this instance~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Note that this job number is needed when modifying or removingthe job:

     JOBNO----------        23

Job queue process~~~~~~~~~~~~~~~~~Below is the current setting of the job_queue_processes init.oraparameter - the value for this parameter must be greaterthan 0 to use automatic statistics gathering:

NAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------job_queue_processes                  integer     10

Next scheduled run~~~~~~~~~~~~~~~~~~The next scheduled run for this job is:

       JOB NEXT_DATE NEXT_SEC---------- --------- --------        23 23-MAY-08 17:52:00

</pre>
<p><strong>How to stop taking snapshots</strong></p>
<p>After you finish taking samples or if you ran out of space for the Statspack tablespace, you&#8217;ll need to stop the snapshot job. This is very easy, as you may see next:</p>
<pre>SQL&gt; conn perfstat    <span style="color:#ff0000;">-- the Statspack owner</span>Password:

ConnectedSQL&gt; select job, what from user_jobs;

       JOB                      WHAT----------  ------------------------         2        23  statspack.snap(10);

SQL&gt; exec rdbms_job.remove(23);

PL/SQL procedure successfully completed.

SQL&gt; select job, what from user_jobs;

       JOB                      WHAT----------  ------------------------         2

</pre>
<p>I hope this tip is useful for you, as it has been very helpful for me.</p>
<p>Please leave your comments, your feedback is vital to improve this content</p>
<p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.blogspot.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/oracledisect.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/oracledisect.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=20&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/05/26/2-minute-guide-for-statspack-sample-scheduling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>
	</item>
		<item>
		<title>Who is using your UNDO space?</title>
		<link>http://oracledisect.wordpress.com/2008/05/06/who-is-using-your-undo-space/</link>
		<comments>http://oracledisect.wordpress.com/2008/05/06/who-is-using-your-undo-space/#comments</comments>
		<pubDate>Tue, 06 May 2008 05:08:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 9i]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/05/06/who-is-using-your-undo-space/</guid>
		<description><![CDATA[
Ver este articulo en Español
Sure you&#8217;ve faced this situation: a growing undo tablespace, that seems it could engulf your entire disk space&#8230; until finally stops demanding additional space, and within some minutes (or hours, depends on your UNDO_RETENTION setting) you start to see more and more free space in your tablespace. If you scratched your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=17&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.wordpress.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" alt="" /></a><a href="http://www.databases-la.com/?q=es/node/19">Ver este articulo en Español</a></p>
<p>Sure you&#8217;ve faced this situation: a growing undo tablespace, that seems it could engulf your entire disk space&#8230; until finally stops demanding additional space, and within some minutes (or hours, depends on your UNDO_RETENTION setting) you start to see more and more free space in your tablespace. If you scratched your head wondering &#8216;what happened?&#8217; or &#8216;who the User did this?&#8217;, this post may be helpful.</p>
<p>There are some views that show information related to undo activity:</p>
<p>* <span style="font-weight:bold;">V$UNDOSTAT</span>: histogram-like view that shows statistics for 10-minute intervals.<br />
* <span style="font-weight:bold;">V$TRANSACTION</span>: present time view providing information on current transactions.<br />
* <span style="font-weight:bold;">V$SESSTAT</span>: individual session statistics, which includes one for undo usage.</p>
<p><span style="font-weight:bold;">V$UNDOSTAT</span> will provide a <span style="font-style:italic;">who did</span> hint, recording the longest running query for that 10-interval, through the MAXQUERYID column which may be linked to <span style="font-weight:bold;">V$SQL</span> and use columns PARSING_USER_ID or PARSING_SCHEMA_NAME the get a grip on the suspect.</p>
<p><span style="font-weight:bold;">V$TRANSACTION</span> linked with <span style="font-weight:bold;">V$SESSION</span> will show <span style="font-style:italic;">current</span> used undo blocks for ongoing transactions. This query may help:</p>
<pre>SELECT  a.sid, a.username, b.used_urec, <span style="color:#ff0000;">b.used_ublk</span>
FROM v$session a, v$transaction b
WHERE a.saddr = b.ses_addr
ORDER BY b.used_ublk DESC</pre>
<p><span style="font-weight:bold;">V$SESSTAT</span> provides another view, a <span style="font-style:italic;">who uses the undo</span> kind of view, but we must avoid to get lost in the maze of Oracle statistics and focus on just one: Undo change vector size, which will accumulate the bytes of undo used during the session lifetime. Following query is designed to pinpoint who is having a high undo activity.</p>
<pre>SELECT a.sid, b.name, a.value
FROM v$sesstat a, v$statname b
WHERE a.statistic# = b.statistic#
AND a.statistic# = 176    &lt;-- Which stands for <span style="color:#ff0000;">undo change vector size</span>
ORDER BY a.value DESC</pre>
<p>Good luck with your UNDO-eating monsters&#8230;</p>
<p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.wordpress.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/oracledisect.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/oracledisect.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=17&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/05/06/who-is-using-your-undo-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>
	</item>
		<item>
		<title>Honey, I shrunk the indexes &#8211; Part 2</title>
		<link>http://oracledisect.wordpress.com/2008/04/24/honey-i-shrunk-the-indexes-part-2/</link>
		<comments>http://oracledisect.wordpress.com/2008/04/24/honey-i-shrunk-the-indexes-part-2/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 22:42:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Compression]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 9i]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/04/24/honey-i-shrunk-the-indexes-part-2/</guid>
		<description><![CDATA[Ver este articulo en EspañolHow to pick the perfect candidates
Warning: index compression may change execution plans and affect performance, try this on a test database and check if application SQL and PL/SQL code execution improves.
Not every index must be compressed, sometimes compression will give minimal space reductions, that don&#8217;t compensate the overhead incurred. But how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=16&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" alt="" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" /></a><a href="http://www.database.com.mx/?q=es/node/17">Ver este articulo en Español</a><br /><span style="font-weight:bold;"><br />How to pick the perfect candidates</span></p>
<p><span style="color:rgb(255,0,0);"><span style="font-weight:bold;">Warning</span>: index compression may change execution plans and affect performance, try this on a test database and check if application SQL and PL/SQL code execution improves.</span></p>
<p>Not every index must be compressed, sometimes compression will give minimal space reductions, that don&#8217;t compensate the overhead incurred. But how do we know that?</p>
<p>I may suggest two approaches:<br />1) Size oriented<br />2) Access frequency oriented</p>
<p><span style="font-weight:bold;">Size Oriented</span></p>
<p>Let&#8217;s start with size oriented picking, saying: the bigger the elephant is, better results will get when on diet.</p>
<p>I&#8217;ve used a script like this to get my list of candidates for shrinking:
<pre>SELECTsubstr(segment_name,1,20) as index_name,bytes, blocks, extentsFROM  dba_segmentsWHERE owner = '{<span style="color:rgb(255,0,0);">write here the owner</span>}'AND   segment_type = 'INDEX'AND   extents &gt; 63            &lt;---this you may change order by bytes desc; </pre>
<p>After running above script, you&#8217;ll get a listing like this:
<pre>INDEX NAME                BYTES     BLOCKS    EXTENTS                 -------------------- ---------- ---------- ----------                 PROD_NAME_IX             524288         64          8                 PRD_DESC_PK              327680         40          5                 SYS_C009603              131072         16          2                 SYS_C009607               65536          8          1                 SYS_C009606               65536          8          1                 ACTION_TABLE_MEMBERS      65536          8          1                 LINEITEM_TABLE_MEMBE      65536          8          1                 SYS_C009602               65536          8          1                 </pre>
<p>Now you have to forecast the best compression ratio for your index, and there is a feature very accurate for doing so: ANALYZE the index.</p>
<p>Despite the fact that analyzing tables or objects have deprecated the statistics purpose (one of them), we may use this sentence to test structure. Following command and a quick query to INDEX_STATS will show us if the selected index is a best fit, which compression order to choose and expected size reduction:</p>
<pre>SQL&gt; ANALYZE INDEX owner.index_name VALIDATE STRUCTURE OFFLINE;

Index Analyzed

SQL&gt; SELECT name, height, blocks, OPT_CMPR_COUNT, OPT_CMPR_PCTSAVEFROM index_statsWHERE name = '{index_name}';</pre>
<p>The resulting value OPT_CMPR_COUNT is the value you specify for COMPRESS {n} clause, and OPT_CMPR_PCTSAVE is the &#8220;expected&#8221; compression ratio for that value. All other values from <span style="font-weight:bold;">INDEX_STATS</span> are present figures.</p>
<p>Then your sentences may look like this:
<pre>SQL&gt; ALTER INDEX owner.index_name REBUILD COMPRESS {value from <span style="color:rgb(255,0,0);">OPT_CMPR_COUNT</span>}</pre>
<p>or
<pre>SQL&gt; CREATE INDEX owner.index_name ON {table_index_clause}2:   TABLESPACE {Tablespace Name}3:   COMPRESS {value from <span style="color:rgb(255,0,0);">OPT_CMPR_COUNT</span>}4:   {other storage clauses};</pre>
<p><span style="font-weight:bold;">Second approach: Access Frequency</span></p>
<p>For this we&#8217;re going to need the help of two important views: <span style="font-weight:bold;">V$SEGSTAT</span>(9i and up) and <span style="font-weight:bold;">ALL_OBJECTS</span>. We need V$SEGSTAT because that dynamic view will show us valuable statistics regarding logical reads/writes or physical reads/writes. Following script is proposed as an aid to find the top used indexes within a schema.
<pre>SELECT a.object_name, b.statistic_name, b.valueFROM all_objects a, v$segstat bWHERE  a.object_id = b.obj#AND  a.owner = '{<span style="color:rgb(255,0,0);">your schema owner here</span>}'AND  a.object_type = 'INDEX'AND  b.statistic_name = 'physical reads'  &lt;-- You may change this for physical reads direct ORDER by b.value desc </pre>
<p>Above query will give you a list of candidates for compression, now you have to apply the ANALYZE and check if there are good space reductions that &#8216;may&#8217; correspond to less IO.</p>
<p>Jump to Part III <a href="http://oracledisect.blogspot.com/2008/05/honey-i-shrunk-indexes-part-3.html">Honey, I shrunk the indexes &#8211; Part 3: Index Compression is good or evil?</a></p>
<p>View starting post: <a href="http://oracledisect.blogspot.com/2008/04/honey-i-shrunk-index.html">Honey, I shrunk the indexes &#8211; Part 1</a></p>
<p><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.blogspot.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" alt="" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" /></a><a href="http://www.database.com.mx/?q=es/node/17">Ver este articulo en Español</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/oracledisect.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/oracledisect.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=16&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/04/24/honey-i-shrunk-the-indexes-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />
	</item>
		<item>
		<title>Honey, I shrunk the indexes</title>
		<link>http://oracledisect.wordpress.com/2008/04/11/honey-i-shrunk-the-indexes/</link>
		<comments>http://oracledisect.wordpress.com/2008/04/11/honey-i-shrunk-the-indexes/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 04:17:00 +0000</pubDate>
		<dc:creator>oracledisect</dc:creator>
				<category><![CDATA[Compression]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 9i]]></category>

		<guid isPermaLink="false">http://oracledisect.wordpress.com/2008/04/11/honey-i-shrunk-the-indexes/</guid>
		<description><![CDATA[Ver este articulo en Español
Introduction
There is an Oracle feature that may provide savings in space and IO, have you heard of &#8220;index key compression&#8221;? well, this feature is with us since 8i, but for many, it&#8217;s obscure or unknown.
Despite the 10g storage management optimizations, always there is gain from index maintenance. If you do index [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=15&subd=oracledisect&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s1600-h/mx.gif"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" alt="" src="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" border="0" /></a><a href="http://www.database.com.mx/?q=es/node/11">Ver este articulo en Español</a></p>
<p><span style="font-weight:bold;">Introduction</span></p>
<p>There is an Oracle feature that may provide savings in space and IO, have you heard of &#8220;index key compression&#8221;? well, this feature is with us since 8i, but for many, it&#8217;s obscure or unknown.</p>
<p>Despite the 10g storage management optimizations, always there is gain from index maintenance. If you do index checks regularly you&#8217;re a good DBA&#8230; but if you don&#8217;t, better take care from now on.</p>
<p>Adding the gains from index rebuild or shrink, you may consider compressing some well-picked indexes, for which the space savings and IO reductions overcome the slight(?) cpu overhead it causes. I wrote a question mark after &#8217;slight&#8217; because we will try to estimate that cost in the short term.</p>
<p>I&#8217;ll propose this starting questions:<br /><span style="font-weight:bold;">* How do you use index key compression?</span><br /><span style="font-weight:bold;">* What are the first sight results?<br /></span><span style="font-weight:bold;">* How to pick the best candidates for compression?<br /></span><span style="font-weight:bold;">* Index compression is good or evil&#8230; or both?</span><br /><span style="font-weight:bold;">* What is the benefit/cost after the shrinking?</span><br /><span style="font-weight:bold;">* What are the &#8220;inside&#8221; results or how to analyze the effect on my present queries?</span></p>
<p>If you have more questions, please feel free to drop a comment and we (all of you and I, because as far as I know I don&#8217;t have multiple personality disorder) will try to tackle and provide a satisfactory answer.</p>
<p><span style="font-weight:bold;">How do you use index key compression?<br /></span><br /><span style="font-size:100%;">There are two ways to accomplish this:<br />1) drop the index, create it again with COMPRESS<br />2) rebuild the index with COMPRESS</p>
<p>I will try the second method, with this huge index I&#8217;ve on a test database. These are the starting figures:</span></p>
<p>
<pre><span style="font-size:78%;">TABLE_ROWS   TABLE_BLOCKS   INDEX_BLOCKS   INDEX_BYTES    BLEVEL  LEAF_BLOCKS----------   ------------   ------------  -------------   ------  -----------7,331,706        459,210        155,648  1,275,068,416        3      149,394</span></pre>
<p><span style="font-size:100%;">Now that we have our baseline, it&#8217;s time to issue the DDL sentence that will reorganize the index:</span></p>
<p>
<pre>SQL&gt; ALTER INDEX idx_big_comp_test REBUILD COMPRESS 2;Index Rebuild</pre>
</p>
<p><span style="font-size:100%;"><br />After that statement our figures are now the following:<br /></span></p>
<p>
<pre><span style="font-size:78%;">TABLE_ROWS   TABLE_BLOCKS   INDEX_BLOCKS   INDEX_BYTES    BLEVEL  LEAF_BLOCKS----------   ------------   ------------  -------------   ------  -----------7,331,706        459,210        139,904   1,146,093,568        3     133,682</span></pre>
<p><span style="font-size:100%;">A quick comparison yields less index blocks and leaf blocks (which is logical and obvious), accounting for 10.5% of space savings.</p>
<p>Let our imagination fly, we&#8217;re showing our boss the way to extend the out-of-disk due date or justifying a well earned salary rise derived from storage savings. Back to reality&#8230; in this life everything has a price, don&#8217;t rush and compress every index in your databases until we talk about pros and cons, and learn how to choose good candidates for compression.</p>
<p>Jump to Part II <a href="http://oracledisect.blogspot.com/2008/04/honey-i-shrunk-indexes-part-2.html">Honey, I shrunk the indexes &#8211; Part 2: How to pick the perfect candidates</a><br /></span><br /></span><br /><a href="http://technorati.com/faves?sub=addfavbtn&amp;add=http://oracledisect.blogspot.com"><img src="http://static.technorati.com/pix/fave/tech-fav-1.png" alt="Add to Technorati Favorites" /></a></p>
<p><a href="http://www.database.com.mx/?q=es/node/11">Ver este articulo en Español/Look for this content in spanish</a></p>
<pre></pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/oracledisect.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/oracledisect.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracledisect.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracledisect.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracledisect.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracledisect.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracledisect.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracledisect.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracledisect.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracledisect.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracledisect.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracledisect.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracledisect.wordpress.com&blog=5143040&post=15&subd=oracledisect&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://oracledisect.wordpress.com/2008/04/11/honey-i-shrunk-the-indexes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/51360c565459696cefe90b691819a49c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">oracledisect</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_9jCa6_0_7n4/SAuEZL7-XSI/AAAAAAAAABA/6IW_dDoOVnA/s200/mx.gif" medium="image" />

		<media:content url="http://static.technorati.com/pix/fave/tech-fav-1.png" medium="image">
			<media:title type="html">Add to Technorati Favorites</media:title>
		</media:content>
	</item>
	</channel>
</rss>