<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Karl Arao's Blog</title>
	
	<link>http://karlarao.wordpress.com</link>
	<description>Just another weblog about Oracle,Linux,Troubleshooting,Performance,etc..etc..</description>
	<lastBuildDate>Mon, 10 Sep 2012 21:14:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain="karlarao.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Karl Arao's Blog</title>
		<link>http://karlarao.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://karlarao.wordpress.com/osd.xml" title="Karl Arao's Blog" />
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/karlarao" /><feedburner:info uri="karlarao" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://karlarao.wordpress.com/?pushpress=hub" /><item>
		<title>Speaking at E4!</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/rJRL4I6xK3w/</link>
		<comments>http://karlarao.wordpress.com/2012/06/29/speaking-at-e4/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 20:42:50 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Exadata]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3429</guid>
		<description><![CDATA[I&#8217;ll be co-speaking with Randy Johnson (one of the authors of Expert Oracle Exadata) at E4 to share about the war stories and detail on a bunch of technical stuff on a Peoplesoft and BIEE consolidation project we had on one of our clients. See the abstract below: Randy Johnson &#38; Karl Arao A PeopleSoft &#38; OBIEE Consolidation Success Story In today’s competitive business climate companies are under constant pressure to reduce costs without sacrificing quality. Many companies see database and server consolidation as the key to meeting this goal. Since its introduction, Exadata has become <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2012/06/29/speaking-at-e4/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3429&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ll be co-speaking with <a href="https://www.apress.com/index.php/author/author/view/id/3409" target="_blank">Randy Johnson (one of the authors of Expert Oracle Exadata)</a> at <a href="http://www.extremeexadata.com" target="_blank">E4</a> to share about the war stories and detail on a bunch of technical stuff on a Peoplesoft and BIEE consolidation project we had on one of our clients. See the abstract below:</p>
<p><span id="more-3429"></span></p>
<p style="padding-left:30px;"><em>Randy Johnson &amp; Karl Arao</em><br />
<em> A PeopleSoft &amp; OBIEE Consolidation Success Story</em><br />
<em> In today’s competitive business climate companies are under constant pressure to reduce costs without sacrificing quality. Many companies see database and server consolidation as the key to meeting this goal. Since its introduction, Exadata has become the obvious choice for database and server consolidation projects. It is the next step in the evolutionary process. But managing highly consolidated environments is difficult, especially for mixed workload environments. If not done properly the quality of service suffers. In this session we tell the tale of a large real estate investment company that successfully consolidated their global operations onto a Maximum Availability Architecture Exadata platform. Applications sharing this environment include PeopleSoft Financials, PeopleSoft HR, Portal, and OBIEE. Accurate provisioning and management of system resources was absolutely essential to our success. In this session we share lessons learned and the tools you’ll need to ensure that your consolidation story has a happy ending.</em></p>
<p>E4 is an Exadata focused event and we have a very interesting speaker line up and abstract list <a href="http://www.extremeexadata.com/e4/abstracts">http://www.extremeexadata.com/e4/abstracts</a> which are powerful &amp; useful for Oracle DBAs/Architects/Managers who are seriously into performance and Exadata not just from a &#8220;wow that&#8217;s interesting&#8221; but also from a practical perspective. So I&#8217;m pretty sure you Exadata hackers out there will surely love this event because it&#8217;s going to be all technical! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Just to give you a glimpse on what Randy and I are presenting, I have here a mind map of our topic list which we will transform into an interesting story..</p>
<p><a href="https://lh5.googleusercontent.com/-5cZVmAaSgME/T-4Ju7RjGdI/AAAAAAAABsc/IdgunPdZ03k/s2048/20120629_e4topiclist.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-5cZVmAaSgME/T-4Ju7RjGdI/AAAAAAAABsc/IdgunPdZ03k/s1024/20120629_e4topiclist.png" alt="" width="1024" height="386" /></a></p>
<p>I&#8217;ll be blogging some of them in the next couple of days.. the <a href="http://karlarao.wordpress.com/2012/06/29/the-effect-of-asm-redundancyparity-on-readwrite-iops-slob-test-case-for-exadata-and-non-exa-environments/" target="_blank">ASM writes IOPS effect is already out</a> and I&#8217;d like to focus next on the CPU capacity planning&#8230; taking the quantitative information and make it visual so both the technical and non-technical can &#8220;see&#8221; what&#8217;s going on <a href="http://twitpic.com/9y84vo" target="_blank">leading to solid solutions.</a></p>
<p>&nbsp;</p>
<p>See you at E4!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3429/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3429/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3429&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/rJRL4I6xK3w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2012/06/29/speaking-at-e4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh5.googleusercontent.com/-5cZVmAaSgME/T-4Ju7RjGdI/AAAAAAAABsc/IdgunPdZ03k/s1024/20120629_e4topiclist.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2012/06/29/speaking-at-e4/</feedburner:origLink></item>
		<item>
		<title>The effect of ASM redundancy/parity on read/write IOPS – SLOB test case! for Exadata and non-Exa environments</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/p4Y7UgzmMcQ/</link>
		<comments>http://karlarao.wordpress.com/2012/06/29/the-effect-of-asm-redundancyparity-on-readwrite-iops-slob-test-case-for-exadata-and-non-exa-environments/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 04:22:12 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Exadata]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3309</guid>
		<description><![CDATA[Last week I had a lengthy post at oracle-l that tackles Calibrate IO, Short Stroking, Stripe size, UEK kernel, and ASM redundancy effect on IOPS Exadata which you can read here followed by interesting exchange of tweets with Kevin Closson here (see 06/21-22 tweets) which I was replying in between games at UnderwaterHockey US Nationals 2012 which we won the championship for the B division I have my awesome photo with the medal here This post will detail on the ASM redundancy/parity effect on IOPS&#8230; if&#8230; by changing the ASM redundancy (external, normal, and high) <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2012/06/29/the-effect-of-asm-redundancyparity-on-readwrite-iops-slob-test-case-for-exadata-and-non-exa-environments/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3309&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last week I had a lengthy post at oracle-l that tackles Calibrate IO, Short Stroking, Stripe size, UEK kernel, and ASM redundancy effect on IOPS Exadata which <a href="http://goo.gl/mjVna" target="_blank">you can read here</a><br />
followed by interesting exchange of tweets with Kevin Closson <a href="https://twitter.com/#!/karlarao" target="_blank">here (see 06/21-22 tweets)</a> which I was replying in between games at <a href="http://underwaterhockey.com/nationals/2012/index.html" target="_blank">UnderwaterHockey US Nationals 2012</a> which we won the championship for the B division <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I have my <a href="https://lh3.googleusercontent.com/-EWl4_SgvFKY/T-pezHawRNI/AAAAAAAABqU/It4FDiCZdcE/s2048/usnationals2012.jpg" target="_blank">awesome photo with the medal here</a></p>
<p>This post will detail on the ASM redundancy/parity effect on IOPS&#8230; if&#8230; by changing the ASM redundancy (external, normal, and high) will it decrease the workload read/write IOPS or stay as is. I&#8217;ll walk you through the step by step on how I did the instrumentation + the test case itself then end with some results and observations.</p>
<p>Let&#8217;s get started!</p>
<p><span id="more-3309"></span></p>
<p><span style="text-decoration:underline;color:#000000;"><span style="font-size:20px;">The Environment</span></span></p>
<p>My <a href="http://karlarao.tiddlyspot.com/#%5B%5BR%26D%20Server%5D%5D" target="_blank">R&amp;D server running OEL 5.7 on UEK kernel</a> with</p>
<ul>
<li> Intel 2nd gen Sandy Bridge</li>
<li>8 x 1TB 7200 RPM SATA3 &#8211; shortstroked
<ul>
<li>on first 320GB vbox LVM stripe (VirtualBox .vdi files)</li>
<li>next 320GB ASM (DATA disk group &#8211; external redundancy)</li>
<li>remaining RECO area (for backups)</li>
</ul>
</li>
<li>16GB physical memory having lots of VirtualBox VMs (12 VMs can run concurrently with 0.45 load average and no CPU WAIT IO)</li>
</ul>
<p><span style="text-decoration:underline;color:#000000;"><span style="font-size:20px;">SLOB installation</span></span></p>
<p>Follow the &#8220;Installation&#8221; and &#8220;Run the benchmark&#8221; sections on my wiki here <a href="http://karlarao.tiddlyspot.com/#%5B%5Bcpu%20-%20SillyLittleBenchmark%20-%20SLOB%5D%5D" target="_blank">http://karlarao.tiddlyspot.com/#%5B%5Bcpu%20-%20SillyLittleBenchmark%20-%20SLOB%5D%5D</a></p>
<p><span style="text-decoration:underline;color:#000000;"><span style="font-size:20px;">Instrumentation</span></span></p>
<p>Essentially you have to be able to instrument the different layers of things. The sample screenshot below are the terminal sessions I have while doing the test cases and it&#8217;s really helpful to have them all in a single view because you&#8217;ll be able to quickly notice changes as the workload grow and reach its sustained state. So when you run sh ./runit.sh 0 128 you&#8217;ll be able to see from load average of 2 it will gradually go up to 128 and it will stay on that range and that&#8217;s the sustained state of the workload. Then from there I&#8217;ll start to take screenshots and gather all sorts of data that will serve as my data points from that test case. So with the single view you&#8217;ll be able to see how everything behaves from the ramp-up to the sustained state and when you cancel the run or whenever you do any changes to your test case environment.</p>
<p><a href="https://lh4.googleusercontent.com/-cPCHCLfu41E/T-yld2vAXuI/AAAAAAAABrE/30j93sl3HBA/s2048/20120626_128R-external-instrumentation_v3.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-cPCHCLfu41E/T-yld2vAXuI/AAAAAAAABrE/30j93sl3HBA/s640/20120626_128R-external-instrumentation_v3.png" alt="" width="659" height="800" /></a></p>
<p><span style="color:#000000;"><strong>1) Hardware:</strong></span></p>
<p>On the hardware side I&#8217;ve got collectl (<a href="http://collectl.sourceforge.net" target="_blank">http://collectl.sourceforge.net</a>) which shows the overall workload of the OS and CPU + IO details in a time series manner (see the first 3 terminal windows above). And I usually execute the following commands for every run and package the spooled output in a test case folder</p>
<p><pre class="brush: sql; wrap-lines: false;">
collectl --all -o T -o D &gt;&gt; collectl-all.txt
collectl -sc --verbose -o T -o D &gt;&gt; collectl-cpuverbose.txt
collectl -sD --verbose -o T -o D &gt;&gt; collectl-ioverbose.txt
</pre></p>
<p>The critical numbers would be the aggregate IOPS from all the 8 disks, and the detailed IOPS per disk together with the IO size, service time, and Pct% Utilization. All these numbers gives you an IO characterization of what SLOB is doing.</p>
<p><span style="color:#000000;"><strong>2) Database:</strong></span></p>
<p style="padding-left:60px;"><span style="color:#000000;"><strong>Load Profile</strong></span><br />
The OS numbers has to be correlated to the physical reads/writes (load profile) on the database side and just relying on the AWR snapshots taken at start and end of the test case is not really a good measure especially on a small scale box like mine with just 4cores and 8spindles which essentially I&#8217;m making it work for 128 concurrent users doing an update on their own tables.. and ultimately the queueing effect will kick in and the disks will be really busy that you&#8217;ll get to a point where the AWR snapshots will not be able to do its thing and may even hang or queue or it will wait for it to be able to grab some IO or until it gets an IO bandwidth to do its own operations then that&#8217;s the time it will be able to complete the AWR snapshot/report&#8230;whew.</p>
<p style="padding-left:60px;">So to get around that, you have to read those performance numbers from memory and it&#8217;s only possible by doing a query from a v$ view.. luckily there&#8217;s a script created by Timur Akhmadeev a few months ago <a href="http://timurakhmadeev.wordpress.com/2012/02/21/load-profile/" target="_blank">http://timurakhmadeev.wordpress.com/2012/02/21/load-profile/</a> that outputs the same Load Profile section of the AWR report but <a href="http://goo.gl/2Uezw" target="_blank">pulls data from the v$sysmetric view</a>. The view outputs the past 15 and 60 seconds of a bunch of metrics which is similar to V$SYSSTAT but some metrics are already transformed into per/sec or per/transaction numbers. The one that Timur used is the 60secs time slice which is equivalent to creating 1min AWR reports which is good enough since the workload is sustained and the numbers will most likely not vary that much plus the Load Profile section has all the stuff that I need to see what&#8217;s happening on the physical reads/writes because SLOB is essentially a test case to guage your reads/writes IOPS.</p>
<p style="padding-left:60px;">I&#8217;ve modified the SQL <a href="https://www.dropbox.com/s/3ijoy3zljqps0wx/loadprof.sql" target="_blank">https://www.dropbox.com/s/3ijoy3zljqps0wx/loadprof.sql</a> to add the &#8220;tm&#8221; column so I can correlate it with the time series output of collectl. The sample output is shown on the left side of the image above. You can download the script and put it on the SLOB directory and run it as</p>
<p><pre class="brush: sql; wrap-lines: false;">
while : ; do sqlplus &quot;/ as sysdba&quot; @loadprof ; echo &quot;--&quot;; sleep 2 ; done
</pre></p>
<p style="padding-left:60px;"><span style="color:#000000;"><strong>ASH</strong></span><br />
I also want to see how the workload looks like in ASH.. so I&#8217;ve got a script called ash that calls a <a href="http://dboptimizer.com/2011/02/09/aas-on-awr/" target="_blank">SQL script by Kyle Hailey</a> which gives you the Average Active Sessions (AAS) for the past 5 seconds time slice.. so if let&#8217;s say I&#8217;m doing a sustained number of 128 readers I should be able to see 128 AAS doing &#8220;db file sequential read&#8221; (random IO).. so rather than pulling up an OEM or creating a repo for OEM just to see what&#8217;s happening on the SLOB run I can just go with this text graph or text version of what I&#8217;d like to see..</p>
<p style="padding-left:60px;">The sample output is shown on the right hand side of the image, see the FASL column having the 128 AAS on &#8220;db file sequential read&#8221;.. also the time column at the far left can be correlated to the collectl and loadprof.sql output. The script is available here<br />
<a href="https://www.dropbox.com/s/pbcewv374dq5bc0/ash-aveactn300.sql" target="_blank">https://www.dropbox.com/s/pbcewv374dq5bc0/ash-aveactn300.sql</a></p>
<p><span style="color:#000000;"><strong>3) Sessions:</strong></span></p>
<p>Another important thing is measuring the latency&#8230; I could have written a SQL that will mimic the top 5 timed events pulling from v$ views that also shows the latency column but for now I don&#8217;t really have the time to do that. So a very good alternative is to do it with the &#8220;awesome snapper&#8221; then spool it to a file and grep for stuff&#8230; and because the SLOB is doing a sustained reads/writes workload the numbers will most likely stay the same or within the range of that sustained number and with that I can just do 5 samples or 5 runs of snapper and that will tell me what my latency is.</p>
<p>Good thing about using the snapper is the latency is being measured from the SLOB users themselves and that&#8217;s what the sessions are experiencing for each IO operation that they are doing.  Also take note that with the snapper command below I can grep for DBWR, CKPT, LGWR processes which I can&#8217;t do in the usual top 5 timed events..which I was able to build a cool comparison of latency graphs across redundancy levels (more on this on the results section). And each snapper sample has a timestamp that you can correlate with the collectl, loadprof, and ash output. Below are the commands I used:</p>
<p><pre class="brush: sql; wrap-lines: false;">
spool snapper.txt
@snapper ash=event+wait_class,stats,gather=tsw,tinclude=CPU,sinclude=redo|reads|writes 5 5 &quot;select sid from v$session where username like 'USER%' or program like '%DBW%' or program like '%CKP%' or program like '%LGW%'&quot;
spool off

cat snapper.txt | grep write | egrep &quot;DBW|CKP|LGW&quot; | grep WAIT | sort -rnk2
cat snapper.txt | grep &quot;db file sequential read&quot;
cat snapper.txt | grep &quot;free buffer waits&quot;
cat snapper.txt | grep &quot;write complete waits&quot;
</pre></p>
<p>Check out the script here <a href="http://tech.e2sn.com/oracle-scripts-and-tools/session-snapper" target="_blank">http://tech.e2sn.com/oracle-scripts-and-tools/session-snapper</a></p>
<p><span style="text-decoration:underline;color:#000000;"><span style="font-size:20px;">The test case</span></span></p>
<p>Before the test case I executed a backup of the SLOB database then I make use of that backup as a starting point of each iteration which makes the underlying data consistent across runs. Then for each ASM redundancy I did the following:</p>
<p style="padding-left:30px;"><strong>1)</strong> Wipe out the diskgroup</p>
<p><pre class="brush: sql; wrap-lines: false;">
sqlplus &quot;/ as sysasm&quot;
alter diskgroup data dismount force;
drop diskgroup data force including contents;
</pre></p>
<p style="padding-left:30px;"><strong>2)</strong> Create the new diskgroup (1st iteration &#8211; normal, 2nd iteration &#8211; high, 3rd iteration &#8211; external)<br />
<strong>3)</strong> Restore the backup<br />
<strong>4)</strong> Execute 128 readers and gather perf data<br />
<strong>5)</strong> Execute 128 writers and gather perf data<br />
<strong>6)</strong> Go back to step1</p>
<p><span style="text-decoration:underline;color:#000000;"><span style="font-size:20px;">Results</span></span></p>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;128 Readers Testcase</span></p>
<table border="0" cellpadding="5" align="center">
<tbody>
<tr>
<td style="text-align:center;" valign="top"><a href="https://lh6.googleusercontent.com/-f2ghE_NGNaA/T-zHfYUQAiI/AAAAAAAABrc/ddM0E6iLMpE/s2048/20120626_128R-external.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-f2ghE_NGNaA/T-zHfYUQAiI/AAAAAAAABrc/ddM0E6iLMpE/s288/20120626_128R-external.png" alt="" /></a><br />
<span style="color:#0000ff;"><strong>External Redundancy</strong></span></td>
<td style="text-align:center;" valign="top"><a href="https://lh4.googleusercontent.com/-ECyOvZk3_94/T-zHfWdam7I/AAAAAAAABrY/BaXrw7Y_EN4/s2048/20120626_128R-normal.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-ECyOvZk3_94/T-zHfWdam7I/AAAAAAAABrY/BaXrw7Y_EN4/s288/20120626_128R-normal.png" alt="" /></a><br />
<span style="color:#0000ff;"><strong>Normal Redundancy</strong></span></td>
<td style="text-align:center;" valign="center"><a href="https://lh6.googleusercontent.com/-3oGsmp8FH2s/T-zHfT3g8NI/AAAAAAAABrU/ui4hLm1YnnI/s2048/20120626_128R-high.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-3oGsmp8FH2s/T-zHfT3g8NI/AAAAAAAABrU/ui4hLm1YnnI/s288/20120626_128R-high.png" alt="" /></a><br />
<span style="color:#0000ff;"><strong>High Redundancy</strong></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;128 Writers Testcase</span></p>
<table border="0" cellpadding="5" align="center">
<tbody>
<tr>
<td style="text-align:center;" valign="top"><a href="https://lh6.googleusercontent.com/-WUiy2aqjTbw/T-zHfyiyi9I/AAAAAAAABro/fYm7zWRSSLM/s2048/20120626_128W-external.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-WUiy2aqjTbw/T-zHfyiyi9I/AAAAAAAABro/fYm7zWRSSLM/s288/20120626_128W-external.png" alt="" /></a><br />
<span style="color:#0000ff;"><strong>External Redundancy</strong></span></td>
<td style="text-align:center;" valign="top"><a href="https://lh3.googleusercontent.com/-coPBrDDscl4/T-zHfzNbxqI/AAAAAAAABrs/xJjJJIdLvU4/s2048/20120626_128W-normal.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-coPBrDDscl4/T-zHfzNbxqI/AAAAAAAABrs/xJjJJIdLvU4/s288/20120626_128W-normal.png" alt="" /></a><br />
<span style="color:#0000ff;"><strong>Normal Redundancy</strong></span></td>
<td style="text-align:center;" valign="center"><a href="https://lh3.googleusercontent.com/-DpqaO9ltbVo/T-zHfxxnJAI/AAAAAAAABr4/vX0ySICdZ1Q/s2048/20120626_128W-high.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-DpqaO9ltbVo/T-zHfxxnJAI/AAAAAAAABr4/vX0ySICdZ1Q/s288/20120626_128W-high.png" alt="" /></a><br />
<span style="color:#0000ff;"><strong>High Redundancy</strong></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;Read IOPS</span></p>
<ul>
<li>Shown on the left is the IOPS comparison across redundancy</li>
<li>on the right is the read:write ratio</li>
</ul>
<p><a href="https://lh4.googleusercontent.com/-QEFEQkc3iy4/T-Npy9FRfpI/AAAAAAAABpk/VfvcxgN9D0k/s2048/20120621_128R.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-QEFEQkc3iy4/T-Npy9FRfpI/AAAAAAAABpk/VfvcxgN9D0k/s800/20120621_128R.png" alt="" width="800" height="294" /></a></p>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;Write IOPS</span></p>
<ul>
<li>Shown on the left is the IOPS comparison across redundancy</li>
<li>on the right is the read:write ratio</li>
<li>the graph at the bottom is just the &#8220;write iops&#8221; part of the graph above.. since SLOB is executing a massive UPDATE SQL with some filter predicates and that causes scan on some rows which translates to &#8220;read iops&#8221;</li>
</ul>
<p><a href="https://lh4.googleusercontent.com/-3WYAatP9gGI/T-qJdqALOhI/AAAAAAAABqw/im7aEhIVIlI/s2048/20120621_128W_v2.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-3WYAatP9gGI/T-qJdqALOhI/AAAAAAAABqw/im7aEhIVIlI/s800/20120621_128W_v2.png" alt="" width="800" height="611" /></a></p>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;Read Latency (ms)</span></p>
<ul>
<li>Here are the graph definitions:
<ul>
<li>ckpt -&gt; CKPT process &#8211; &#8220;control file parallel write&#8221; latency</li>
<li>lgwr -&gt; LGWR process &#8211; &#8220;log file parallel write&#8221; latency</li>
<li>dbwr -&gt; DBWR process &#8211; &#8220;db file parallel write&#8221; latency</li>
<li>phyreads -&gt; SLOB users &#8211; &#8220;db file sequential read&#8221; latency</li>
<li>fbw -&gt; SLOB users &#8211; &#8220;free buffer waits&#8221; latency</li>
<li>wcw -&gt; SLOB users &#8211; &#8220;write complete waits&#8221; latency</li>
</ul>
</li>
</ul>
<p><a href="https://lh3.googleusercontent.com/-ViqdFp9jn7E/T-zHlvhkO9I/AAAAAAAABsE/7mvpVaP97jw/s2048/20120628_readslatency.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-ViqdFp9jn7E/T-zHlvhkO9I/AAAAAAAABsE/7mvpVaP97jw/s800/20120628_readslatency.png" alt="" width="800" height="294" /></a></p>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;Write Latency (ms)</span></p>
<ul>
<li>(see graph definitions above)</li>
</ul>
<p><a href="https://lh3.googleusercontent.com/-Vy6hGZFYG7Y/T-zHllfgyTI/AAAAAAAABsI/l68YNMINcik/s2048/20120628_writeslatency.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-Vy6hGZFYG7Y/T-zHllfgyTI/AAAAAAAABsI/l68YNMINcik/s800/20120628_writeslatency.png" alt="" width="800" height="294" /></a></p>
<p><span style="text-decoration:underline;color:#000000;"><span style="font-size:20px;">Observations</span></span></p>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;Some insights on the numbers above&#8230;</span></p>
<p>First of all.. I can say I did a really good job on documenting all these stuff <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  the results are in 6 parts</p>
<ul>
<li>part 1 &gt;&gt;128 Readers Testcase</li>
<li>part 2 &gt;&gt;128 Writers Testcase</li>
<li>part 3 &gt;&gt;Read IOPS</li>
<li>part 4 &gt;&gt;Write IOPS</li>
<li>part 5 &gt;&gt;Read Latency (ms)</li>
<li>part 6 &gt;&gt;Write Latency (ms)</li>
</ul>
<p>but as you can see at a high level as I change redundancy the read IOPS stayed at the range of 2400+ IOPS while on the writes as I move to &#8220;normal&#8221; redundancy it went down to half and &#8220;high&#8221; redundancy it went down to 1/3 and if you are a big SLOB fan, the first two parts of the results will be gold mine for you because that&#8217;s more of a geeky output and I essentially pulled the numbers from those raw screenshots to build the graphs.</p>
<p>So let&#8217;s move ahead on explaining the charts&#8230;</p>
<p>On the <strong>Read IOPS and latency</strong> I don&#8217;t see any huge difference and I can say it&#8217;s not being affected.. the IOPS stayed at the range of 2400+ IOPS then the latency at the range of 900ms across redundancy levels. It clearly shows that you don&#8217;t have a raid penalty or parity penalty to sacrifice for reads.</p>
<p>On the <strong>Write IOPS and latency</strong></p>
<ul>
<li>it&#8217;s pretty clear that on normal you lose half and on high you only get 1/3 of the hardware IOPS</li>
<li>And what&#8217;s interesting about this is when I was watching the workload of normal and high I can see an increasing number of AAS (average active sessions) spent on &#8220;free buffer waits&#8221; and &#8220;write complete waits&#8221;&#8230; well I&#8217;m seeing them on external redundancy but not as much.</li>
<li>Actually, as we change redundancy we are lowering the IOPS capacity which we <strong>sacrifice for the redundancy/parity</strong> and still streaming the same amount of workload and <strong>these wait events are</strong> <strong>just signs of inadequate bandwidth</strong>. The DBWR is working harder to make free buffers available for the same workload with <strong>lesser IOPS</strong> to work on and that translates to higher latencies.</li>
<li>You will also notice on the raw screenshots that the hardware write IOPS numbers from collectl stayed at around 1000+ at full throttle while on the database load profile you&#8217;ll see that it&#8217;s just around 300 (high redundancy) which is the effect of the ASM parity.</li>
</ul>
<div></div>
<p><span style="font-size:15px;text-decoration:underline;color:#000000;">&gt;&gt;How can this affect your Storage Capacity Planning?</span></p>
<p>I&#8217;ll pull a conversation I had with a really good friend of mine.. his question was &#8221;Quick question on your AWR mining script AWR-gen-wl&#8230;, is IOPs calculated before or after ASM mirroring? For example on Exadata, if I see 10,000 write IOPs, did the cells do 10k or did they do 20k (normal redundancy)?&#8221;</p>
<p>and here&#8217;s my response..</p>
<p style="padding-left:30px;"><em>The script <a href="https://lh5.googleusercontent.com/-5Y3hLRvOEis/T-7nkJ7eHEI/AAAAAAAABss/jKMka0krLAc/s2048/20120630_awr_iowl.png" target="_blank">awr_iowl.sql and awr_iowlexa.sql</a> have the columns that accounts for RAID1.. that is read penalty of 1 and write penalty of 2.</em><br />
<em> read on the section &#8220;the iops raid penalty&#8221; on this link <a href="http://www.zdnetasia.com/calculate-iops-in-a-storage-array-62061792.htm" target="_blank">http://www.zdnetasia.com/calculate-iops-in-a-storage-array-62061792.htm</a> and the &#8220;real life examples&#8221; on this link <a href="http://www.yellow-bricks.com/2009/12/23/iops/" target="_blank">http://www.yellow-bricks.com/2009/12/23/iops/</a></em></p>
<p style="padding-left:30px;"><em>so those computations should also apply for Exadata since normal redundancy is essentially RAID1 that&#8217;s write penalty of 2, and the high redundancy is penalty of 3.</em></p>
<p style="padding-left:30px;"><em>Now I remember this sizing exercise I had with an EMC engineer on a project bid before <a href="https://www.evernote.com/shard/s48/sh/03602b99-3274-4c64-b5d1-bbe7bd961f8d/95be02ccf9aa75cf863bb19115353eb0" target="_blank">https://www.evernote.com/shard/s48/sh/03602b99-3274-4c64-b5d1-bbe7bd961f8d/95be02ccf9aa75cf863bb19115353eb0</a></em><br />
<em> and that&#8217;s why I created those columns to get the data directly from AWR.. so for every snapshot you&#8217;ve got the &#8220;hardware iops needed&#8221; and &#8220;number of disks needed&#8221;, what&#8217;s good about that is as your workload vary those two numbers will be representative of that workload. So since you have a lot of data samples, I usually make a histogram on those two columns and get the top percentile numbers because most likely those are the peak pereiods and I can investigate on it by drilling down on the snap_ids and looking into the SQLs and validating it to the app owners as to what&#8217;s the application is running at that time.</em></p>
<p style="padding-left:30px;"><em>I&#8217;ve attached an excel sheet which you can just plug the total workload iops on the yellow box. So in your case, let&#8217;s say you have 10K workload IOPS with 50:50 read/write ratio&#8230; that&#8217;s equivalent to 15K hardware IOPS for normal redundancy and 20K hardware IOPS for high redundancy.</em></p>
<p style="padding-left:30px;"><em>the excel screenshot is actually here &#8212;-&gt; <a href="https://lh6.googleusercontent.com/-00PkzwfwnOE/T-N0oo2Q-FI/AAAAAAAABqE/EbTOnHBlpmQ/s2048/20120621_IOPS.png" target="_blank">https://lh6.googleusercontent.com/-00PkzwfwnOE/T-N0oo2Q-FI/AAAAAAAABqE/EbTOnHBlpmQ/s2048/20120621_IOPS.png</a></em></p>
<p style="padding-left:30px;"><em>Note that I&#8217;m particular with the words &#8220;workload IOPS&#8221; and &#8220;hardware IOPS&#8221;</em><br />
<em> so on this statement</em><br />
<em> &#8220;if I see 10,000 write IOPs, did the cells do 10k or did they do 20k (normal redundancy)?&#8221; &lt;&#8211; if this 10,000 is what you pulled from the AWR then it&#8217;s the database that did the 10K IOPS so that&#8217;s the &#8220;workload IOPS&#8221;.. and that&#8217;s essentially your &#8220;IO workload requirements&#8221;.</em></p>
<p style="padding-left:30px;"><em>Then let&#8217;s say you haven&#8217;t migrated to Exadata.. you have to take into account the penalty computation shown above.. so you&#8217;ll arrive with 15000 &#8220;hardware IOPS&#8221; needed (normal redundancy).. and say each disk has IOPS of 180 then you need at least 83 disks so that&#8217;s 83disks / 12 disks each cell = 6.9 storage cells &#8230; and that&#8217;s Half Rack Exadata. But looking at the data sheet <a href="https://www.dropbox.com/s/ltvr7caysvfmvkr/dbmachine-x2-2-datasheet-175280.pdf" target="_blank">https://www.dropbox.com/s/ltvr7caysvfmvkr/dbmachine-x2-2-datasheet-175280.pdf</a> it seems like you can fit the 15000 on a quarter rack (because of the flash).. mmm.. well I&#8217;m not pretty confident with that because if let&#8217;s say 50% of 15000 IOPS are writes (7.5K IOPS) then I would investigate on the IOPS write mix if most of it are DBWR related (v$sysstat.physical write IO requests) or LGWR related (v$sysstat.redo writes) and if most of it are DBWR related then I don&#8217;t think you&#8217;ll ever benefit from the smart flash log. So I would still go with the Half (12500 disk IOPS) or Full Rack (25000 disk IOPS) for my &#8220;hardware IOPS&#8221; capacity. And I&#8217;ll also take into consideration the MB/s needed for that database but that should be augmented by the flash cache.</em></p>
<p>In addition to my response above.. Also be aware that Smart Flash Log does not lower the HDD (HardDisk) touch load&#8230;both sides of the write go to flash and HDD concurrently. So you should not be too optimistic about the Smart Flash Log when sizing Exadata for &#8220;write IOPS&#8221; because you can&#8217;t predict who will always win on the fastest-write-race&#8230;so as much as possible base your write IOPS sizing on HardDisk IOPS. But definitely on the read IOPS even small (OLTP) or large IOPS (DSS) the flash cache will be able to augments those HDD numbers.</p>
<p>So with my test case shown here.. the statement on the reply above is true. The ASM redundancy/parity affects the &#8220;workload write IOPS&#8221; number (be it small-OLTP or large-DSS IOPS).. but not for the &#8220;workload read IOPS&#8221;. This behavior is the same even on a regular SAN environment&#8230; which you have to be careful/aware when sizing storage. So now you know that 50K IOPS in any data sheet is not equal to 50K write IOPS.. <a href="https://lh6.googleusercontent.com/-00PkzwfwnOE/T-N0oo2Q-FI/AAAAAAAABqE/EbTOnHBlpmQ/s2048/20120621_IOPS.png" target="_blank">factor in the redundancy <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </a> and always remember Utilization=Requirements/Capacity no matter what the type workload or platform is as long as as the total workload IOPS/MBs requirements is well within the total hardware IOPS/MBs capacity you are up a notch on not seeing any IO bottlenecks.</p>
<p>Hope I&#8217;ve shared you some good stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3309&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/p4Y7UgzmMcQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2012/06/29/the-effect-of-asm-redundancyparity-on-readwrite-iops-slob-test-case-for-exadata-and-non-exa-environments/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-cPCHCLfu41E/T-yld2vAXuI/AAAAAAAABrE/30j93sl3HBA/s640/20120626_128R-external-instrumentation_v3.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-f2ghE_NGNaA/T-zHfYUQAiI/AAAAAAAABrc/ddM0E6iLMpE/s288/20120626_128R-external.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-ECyOvZk3_94/T-zHfWdam7I/AAAAAAAABrY/BaXrw7Y_EN4/s288/20120626_128R-normal.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-3oGsmp8FH2s/T-zHfT3g8NI/AAAAAAAABrU/ui4hLm1YnnI/s288/20120626_128R-high.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-WUiy2aqjTbw/T-zHfyiyi9I/AAAAAAAABro/fYm7zWRSSLM/s288/20120626_128W-external.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-coPBrDDscl4/T-zHfzNbxqI/AAAAAAAABrs/xJjJJIdLvU4/s288/20120626_128W-normal.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-DpqaO9ltbVo/T-zHfxxnJAI/AAAAAAAABr4/vX0ySICdZ1Q/s288/20120626_128W-high.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-QEFEQkc3iy4/T-Npy9FRfpI/AAAAAAAABpk/VfvcxgN9D0k/s800/20120621_128R.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-3WYAatP9gGI/T-qJdqALOhI/AAAAAAAABqw/im7aEhIVIlI/s800/20120621_128W_v2.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-ViqdFp9jn7E/T-zHlvhkO9I/AAAAAAAABsE/7mvpVaP97jw/s800/20120628_readslatency.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-Vy6hGZFYG7Y/T-zHllfgyTI/AAAAAAAABsI/l68YNMINcik/s800/20120628_writeslatency.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2012/06/29/the-effect-of-asm-redundancyparity-on-readwrite-iops-slob-test-case-for-exadata-and-non-exa-environments/</feedburner:origLink></item>
		<item>
		<title>IOsaturationtoolkit-v2 with Exadata IORM and AWESOME text graph</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/r2_Zslrdl5M/</link>
		<comments>http://karlarao.wordpress.com/2012/05/14/iosaturationtoolkit-v2-with-iorm-and-awesome-text-graph/#comments</comments>
		<pubDate>Mon, 14 May 2012 05:04:30 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Exadata]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3206</guid>
		<description><![CDATA[I’ve got a new version of IOsaturation toolkit which you can download here http://karlarao.wordpress.com/scripts-resources/ and it has a cool script called “smartscanloop” that shows you the Smart Scan MB/s per database across the Exadata  compute nodes.. it’s a per 2secs sample so that’s a pretty fine grained perf data and near real time text graph. Very useful for doing IORM demos and monitoring what database is currently hogging the IO resources and since it&#8217;s presented in a consolidated view you don’t have to go to each Enterprise Manager performance page and have a bunch of browser windows <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2012/05/14/iosaturationtoolkit-v2-with-iorm-and-awesome-text-graph/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3206&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div>I’ve got a new version of IOsaturation toolkit which you can download here <a href="http://karlarao.wordpress.com/scripts-resources/" target="_blank">http://karlarao.wordpress.com/scripts-resources/</a> and it has a cool script called “smartscanloop” that shows you the Smart Scan MB/s per database across the Exadata  compute nodes.. it’s a per 2secs sample so that’s a pretty fine grained perf data and near real time text graph. Very useful for doing IORM demos and monitoring what database is currently hogging the IO resources and since it&#8217;s presented in a consolidated view you don’t have to go to each Enterprise Manager performance page and have a bunch of browser windows open.</div>
<p></p>
<div>The SECTION 1 is what I usually use to validate the IO numbers on the database side from my Orion (see oriontoolkit <a href="http://karlarao.wordpress.com/scripts-resources/" target="_blank">here</a>) and Calibrate IO runs. I&#8217;ve been using it for quite a while on new RAC/non-RAC installations from client sites.. and I used it heavily on <a href="http://karlarao.tiddlyspot.com/#%5B%5BR%26D%20Server%5D%5D" target="_blank">my R&amp;D server</a> while continuously enhancing the toolkit</div>
<p><span id="more-3206"></span></p>
<p></p>
<div>The SECTION 2 gives you a standard tool to demonstrate the behavior of IORM (<a href="http://karlarao.tiddlyspot.com/#IORM" target="_blank">http://karlarao.tiddlyspot.com/#IORM</a>).. so let’s say you are playing around with IORM percentage allocations for let’s say 3 databases the “saturate” script works well to generate load for each database and then you can observe the effects of the percentage allocation to the IO bandwidth/latency of each database.</div>
<p></p>
<p>when you run</p>
<div></div>
<div><pre class="brush: sql; wrap-lines: false;">
./saturate 4 dbm1 2 exadb1
</pre></p>
</div>
<div>it will create 4 sessions on dbm1 and 2 sessions on exadb1 all doing parallel select and it outputs a log file for each database session. Each session log file has details on the start and end time, elapsed, MB/s which is pretty much everything you need to know to quantify the performance from a session level perspective. You&#8217;ll appreciate this session level output and be impressed on what IORM can do when you start investigating on IO prioritization as you see sessions from the other database having higher MB/s and lower elapsed times and as you play with different IORM scenarios.</div>
<div></div>
<div><pre class="brush: sql; wrap-lines: false;">
cat *log | grep benchmark
Sample output below:
 benchmark ,instance       ,start            ,end              ,elapsed   ,MBs
 ----------,---------------,-----------------,-----------------,----------,-------
 benchmark ,dbm1           ,05/13/12 19:18:28,05/13/12 19:19:32,        64,    537
 benchmark ,dbm1           ,05/13/12 19:18:28,05/13/12 19:19:30,        62,    554
 benchmark ,dbm1           ,05/13/12 19:18:28,05/13/12 19:19:32,        63,    545
 benchmark ,dbm1           ,05/13/12 19:18:28,05/13/12 19:19:32,        64,    537
 benchmark ,exadb1         ,05/13/12 19:18:28,05/13/12 19:19:32,        64,    539
 benchmark ,exadb1         ,05/13/12 19:18:28,05/13/12 19:19:32,        64,    539
</pre></p>
</div>
<div></div>
<div>So the output of smartscanloop is the high level IO numbers across the cluster and the log files are your session detail numbers. Below is the simple output which just shows the SmartScan MB/s per database</div>
<p style="text-align:center;"><a href="https://lh3.googleusercontent.com/-2WuX83Kqetc/T7CIUsVUg7I/AAAAAAAABng/INwK4sMfw38/s2048/20120513_smartscansimple.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-2WuX83Kqetc/T7CIUsVUg7I/AAAAAAAABng/INwK4sMfw38/s800/20120513_smartscansimple.png" alt="" width="488" height="451" /></a></p>
<p>
This AWESOME text graph is similar to what you see in the Enterprise Manager performance page IO tab. Note that you&#8217;ll be seeing higher numbers of MB/s on the smartscanloop compared to EM because of a more fine grained interval (2secs) which is also the same behavior when you measure the IO latency as I explained <a href="http://karlarao.tiddlyspot.com/#%5B%5Bavg%20latency%20issue%5D%5D" target="_blank">here (avg latency issue)</a>  </p>
<p><a href="https://lh4.googleusercontent.com/-EupfH68RngA/T7FMUaz1pbI/AAAAAAAABoo/PM1g3jkqUUQ/s2048/20120514_emsmartscanloop.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-EupfH68RngA/T7FMUaz1pbI/AAAAAAAABoo/PM1g3jkqUUQ/s800/20120514_emsmartscanloop.png" alt="" width="800" height="610" /></a></p>
<p>then I’ve modified the script to have the advanced output that shows <a href="http://karlarao.tiddlyspot.com/#%5B%5Bawr_iowlexa.sql%20-%20Hierarchy%20of%20Exadata%20IO%5D%5D" target="_blank">the Hierarchy of Exadata IO</a>. See the updated README for more details on how to use it. Below is the output</p>
<p><a href="https://lh6.googleusercontent.com/-cFv4vPZd08A/T7CIUgIHuhI/AAAAAAAABnc/5_6AGJHJ79w/s2048/20120513_smartscanadvanced.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-cFv4vPZd08A/T7CIUgIHuhI/AAAAAAAABnc/5_6AGJHJ79w/s800/20120513_smartscanadvanced.png" alt="" width="800" height="610" /></a></p>
<p>What’s good about this is the numbers are about the same when you do a per 10secs snapshot of AWR.. compare the <strong>AAS</strong> and <strong>latency (avgwt ms)</strong> columns of the above image and below</p>
<p><a href="https://lh4.googleusercontent.com/-Ju292AamsV4/T7B-iuHN0rI/AAAAAAAABmc/gz6KKDfprhs/s2048/20120513_smartscanawrdbm1.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-Ju292AamsV4/T7B-iuHN0rI/AAAAAAAABmc/gz6KKDfprhs/s800/20120513_smartscanawrdbm1.png" alt="" width="800" height="310" /></a></p>
<p><a href="https://lh6.googleusercontent.com/-_sa9yNZpVXY/T7B-is6LNpI/AAAAAAAABmk/82rH5lfbu0w/s2048/20120513_smartscanawrexadb1.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-_sa9yNZpVXY/T7B-is6LNpI/AAAAAAAABmk/82rH5lfbu0w/s800/20120513_smartscanawrexadb1.png" alt="" width="800" height="304" /></a></p>
<p>
Again, this is pretty useful for monitoring the high level smart scans IO that’s happening across your Exadata cluster, if you are on an environment where there&#8217;s separation of duties you can even hand off this script to the sys admins that are monitoring the storage cells with their home grown alerting scripts, kSar, or nagios.. so this will serve as their view on the database side of things.</div>
<p>
And if any of your clients haven&#8217;t adopted the IORM, this is very useful for DEMOs to customer sites to showcase the IORM capabilities.. and if you don’t want to show the latency and other columns you can opt to just use the simple output which only shows the smart scans MB/s (see get_smartscan.simple on README ). Most of the time.. the simpler the output the easier for them (users) to understand.</div>
<p>
Sweet! right?!?</p>
<p>
<span style="text-decoration:underline;"><span style="font-size:20px;">Wait.. Does the toolkit work on non-Exadata DBs?</span></span><br />
<br />
The SECTION 1 works on Exa and non-Exa (I&#8217;ve also mentioned this at the beginning of this post)</p>
<p>
The SECTION 2 works well on Exa because the underlying scripts just makes use of dcli commands, some shell and SQL.. but if you are interested to have the smartscanloop output on non-Exa environment I have the script get_smartscan.nonexa on the toolkit that shows the &#8220;physical read total bytes&#8221; instead of the &#8220;cell physical IO bytes eligible for predicate offload&#8221;..</p>
<p>
then on each node do this if it’s a non-Exa RAC</p>
<p><pre class="brush: sql; wrap-lines: false;">
$ while : ; do ./get_smartscan.nonexa | grep &quot;%&quot; ; echo &quot;--&quot; ; sleep 2 ; done
%,05/12/12 12:57:33,DEMO1     ,      0,
%,05/12/12 12:57:35,dbm1      ,      0,
%,05/12/12 12:57:38,DBFS1     ,      0,
%,05/12/12 12:57:40,exadb1    ,      0,
%,05/12/12 12:57:42,PRIMARY1  ,      0,
--
%,05/12/12 12:57:46,DEMO1     ,      1,
%,05/12/12 12:57:48,dbm1      ,   2078, @@@@@@@@@@@@@@@@@@@@@
%,05/12/12 12:57:50,DBFS1     ,      0,
%,05/12/12 12:57:52,exadb1    ,    972, @@@@@@@@@@
%,05/12/12 12:57:55,PRIMARY1  ,      0,
--
%,05/12/12 12:57:59,DEMO1     ,      0,
%,05/12/12 12:58:01,dbm1      ,   1088, @@@@@@@@@@@
%,05/12/12 12:58:03,DBFS1     ,      0,
%,05/12/12 12:58:05,exadb1    ,   2356, @@@@@@@@@@@@@@@@@@@@@@@@
%,05/12/12 12:58:07,PRIMARY1  ,      0,
--
%,05/12/12 12:58:11,DEMO1     ,      0,
%,05/12/12 12:58:14,dbm1      ,   1000, @@@@@@@@@@
%,05/12/12 12:58:16,DBFS1     ,      0,
%,05/12/12 12:58:18,exadb1    ,   2336, @@@@@@@@@@@@@@@@@@@@@@@
%,05/12/12 12:58:20,PRIMARY1  ,      0,
--
%,05/12/12 12:58:24,DEMO1     ,      0,
%,05/12/12 12:58:26,dbm1      ,   1031, @@@@@@@@@@
%,05/12/12 12:58:29,DBFS1     ,      0,
%,05/12/12 12:58:31,exadb1    ,   2071, @@@@@@@@@@@@@@@@@@@@@
%,05/12/12 12:58:33,PRIMARY1  ,      0,
--
</pre></p>
<p><span style="text-decoration:underline;"><span style="font-size:20px;">But wait! there&#8217;s more!</span></span></p>
<p></p>
<div>Since the output is in comma separated format.. you can just do the following</div>
<p></p>
<div>./smartscanloop &gt; smartscanloop.txt</div>
<p></p>
<div>and leave it running&#8230; So you can do this when you want to characterize the IO of a batch run or reporting of multiple databases and the text file that will be generated is pretty small and it doesn&#8217;t hurt in terms of CPU/IO resources because it&#8217;s just doing distributed SSH and doing some SELECT on v$ views</div>
<p></p>
<div>then from the text file you can easily see what&#8217;s the highest MB/s by executing the command below</div>
<div></div>
<p>
<pre class="brush: sql; wrap-lines: false;">

$ less smartscanloop.txt | sort -nk5 | tail
pd01db03: %,05/10/12 21:29:28,biprd2    ,   7358, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/11/12 08:57:12,biprd2    ,   7363, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/10/12 14:55:54,biprd2    ,   7454, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/11/12 09:29:57,biprd2    ,   7556, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/10/12 18:17:50,biprd2    ,   7785, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/10/12 19:12:19,biprd2    ,   7880, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/11/12 10:31:24,biprd2    ,   7886, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/10/12 19:15:48,biprd2    ,   8112, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/11/12 10:31:40,biprd2    ,   8138, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/10/12 18:49:46,biprd2    ,   9315, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

</pre></p>
<p>
and since it&#8217;s a CSV file you can then easily graph it in Tableau! (just put a header on it first)</p>
<p>
<pre class="brush: sql; wrap-lines: false;">

host       , time            , inst     , smartscan,
pd01db01: %,05/10/12 13:08:14,hcmprd1   ,      0,
pd01db01: %,05/10/12 13:08:16,paprd1    ,      0,
pd01db01: %,05/10/12 13:08:18,rmprd1    ,      0,
pd01db01: %,05/10/12 13:08:20,lmprd1    ,      0,
pd01db01: %,05/10/12 13:08:22,DBFSPRD1  ,      0,
pd01db01: %,05/10/12 13:08:24,hcrprd1   ,      0,
pd01db02: %,05/10/12 13:08:14,hcrprd2   ,      0,
pd01db02: %,05/10/12 13:08:16,rmprd2    ,      0,
pd01db02: %,05/10/12 13:08:18,paprd2    ,      0,
pd01db02: %,05/10/12 13:08:20,hcmprd2   ,      0,
pd01db02: %,05/10/12 13:08:22,DBFSPRD2  ,      0,
pd01db02: %,05/10/12 13:08:24,lmprd2    ,      0,
pd01db03: %,05/10/12 13:08:14,biprd2    ,   3412, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pd01db03: %,05/10/12 13:08:16,DBFSPRD3  ,      0,
pd01db04: %,05/10/12 13:08:14,DBFSPRD4  ,      0,
pd01db04: %,05/10/12 13:08:16,mvwprd2   ,      0,
pd01db04: %,05/10/12 13:08:18,fsprd2    ,    763, @@@@@@@@
pd01db04: %,05/10/12 13:08:20,mtaprd112 ,      0,
... output snipped ...

</pre></p>
<p>
and hack the data! remember on the advanced output you can slice and dice it by <strong>host, time, inst, aas, latency, returned, ic, smartscan</strong>.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>
Here&#8217;s the IO graph per instance<br />
<br />
<a href="https://lh5.googleusercontent.com/-_9XvwMwClsM/T7B-kU6_IcI/AAAAAAAABnE/62N0_NB-mTg/s2048/20120513_tableauhighlevelperinst.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-_9XvwMwClsM/T7B-kU6_IcI/AAAAAAAABnE/62N0_NB-mTg/s800/20120513_tableauhighlevelperinst.png" alt="" width="800" height="518" /></a></p>
<p>
and IO graph per instance and host<br />
<br />
<a href="https://lh3.googleusercontent.com/--PvSkSYWFYo/T7B-jtuINsI/AAAAAAAABm8/NriN3NR_bLM/s2048/20120513_tableauhighlevelperhost.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/--PvSkSYWFYo/T7B-jtuINsI/AAAAAAAABm8/NriN3NR_bLM/s800/20120513_tableauhighlevelperhost.png" alt="" width="800" height="516" /></a></p>
<div></div>
<div>Hope I&#8217;ve shared you some good stuff <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<div><strong><br />
</strong></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3206&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/r2_Zslrdl5M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2012/05/14/iosaturationtoolkit-v2-with-iorm-and-awesome-text-graph/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh3.googleusercontent.com/-2WuX83Kqetc/T7CIUsVUg7I/AAAAAAAABng/INwK4sMfw38/s800/20120513_smartscansimple.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-EupfH68RngA/T7FMUaz1pbI/AAAAAAAABoo/PM1g3jkqUUQ/s800/20120514_emsmartscanloop.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-cFv4vPZd08A/T7CIUgIHuhI/AAAAAAAABnc/5_6AGJHJ79w/s800/20120513_smartscanadvanced.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-Ju292AamsV4/T7B-iuHN0rI/AAAAAAAABmc/gz6KKDfprhs/s800/20120513_smartscanawrdbm1.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-_sa9yNZpVXY/T7B-is6LNpI/AAAAAAAABmk/82rH5lfbu0w/s800/20120513_smartscanawrexadb1.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-_9XvwMwClsM/T7B-kU6_IcI/AAAAAAAABnE/62N0_NB-mTg/s800/20120513_tableauhighlevelperinst.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/--PvSkSYWFYo/T7B-jtuINsI/AAAAAAAABm8/NriN3NR_bLM/s800/20120513_tableauhighlevelperhost.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2012/05/14/iosaturationtoolkit-v2-with-iorm-and-awesome-text-graph/</feedburner:origLink></item>
		<item>
		<title>Fast Analytics of AWR Top Events</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/hkjPl-KrtzE/</link>
		<comments>http://karlarao.wordpress.com/2012/03/24/fast-analytics-of-awr-top-events/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 08:27:13 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3176</guid>
		<description><![CDATA[I&#8217;ve been working on a lot of good schtuff lately on the area of capacity planning. And I&#8217;ve greatly improved my time to generate workload characterization visualization and analysis using my AWR scripts which I enhanced to fit on the analytics tool that I&#8217;ve been using.. and that is Tableau. So I&#8217;ve got a couple of performance and capacity planning use case scenarios which I will blog in parts in the next few days or weeks. But before that I need to familiarize you on how I mine this valuable AWR performance data. Let&#8217;s get <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2012/03/24/fast-analytics-of-awr-top-events/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3176&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been working on a lot of good schtuff lately on the area of capacity planning. And I&#8217;ve greatly improved my time to generate workload characterization visualization and analysis using my AWR scripts which I enhanced to fit on the analytics tool that I&#8217;ve been using.. and that is <a href="http://www.tableausoftware.com/public" target="_blank">Tableau</a>.</p>
<p>So I&#8217;ve got a couple of performance and capacity planning use case scenarios which I will blog in parts in the next few days or weeks. But before that I need to familiarize you on how I mine this valuable AWR performance data.</p>
<p>Let&#8217;s get started with the AWR top events, the same top events that you see in your AWR reports but presented in a time series manner across SNAP_IDs&#8230;</p>
<p><span id="more-3176"></span></p>
<p>So I&#8217;ve got this script called <strong>awr_topevents_v2.sql</strong> <a href="http://goo.gl/TufUj" target="_blank">http://goo.gl/TufUj</a> which I added a section to compute for &#8220;CPU wait&#8221; (new metric in 11g) to include the &#8220;unaccounted for DB Time&#8221; on high run queue or CPU intensive workloads. This is a newer version of the script that I used here <a href="http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager/" target="_blank">http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager/</a></p>
<p>On the screenshots below I spooled the output on a text file and transformed it to a CSV format. Then from there you can play around with the data points using Tableau that you can download here <a href="http://www.tableausoftware.com/public/download" target="_blank">http://www.tableausoftware.com/public/download</a></p>
<p>Is this a free software? Yes. But the catch is Tableau Public only allows you to have 100K rows on a given text or csv file. But for my capacity planning and troubleshooting purposes that&#8217;s enough to do the work <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The paid version of Tableau (Desktop) allows you to connect directly to the database but that will cost you $1999. ouch. The Tableau (Desktop Personal) is much like the Public version but with no data limit and it allows you to save your work on a specific file format (.twb and .tde files), Yes guys in Public version you are only allowed to save it to their Public portal&#8230; but that&#8217;s fine as long as I have the data points I can quickly work on the visualization again. Here&#8217;s the comparison if you are interested on the detailed product comparison <a href="http://www.tableausoftware.com/products/desktop/specs" target="_blank">http://www.tableausoftware.com/products/desktop/specs</a></p>
<p>Once you get the CSV file ready which you can download <a href="https://www.dropbox.com/sh/7ld3lb5jc47p52s/-ReAkwD3mw/awr_topevents_1.csv" target="_blank">HERE</a></p>
<div>Open the Tableau and follow the steps below&#8230;</div>
<div></div>
<div></div>
<div></div>
<p>1) This is a trial version of Tableau Desktop.. the steps should be the same or similar with the Public version. Click &#8220;Connect to data&#8221;</p>
<p><a href="https://lh4.googleusercontent.com/-In38-T59LSA/T21mr9qvcjI/AAAAAAAABfU/iAfrrAS_KCU/s2048/fast1.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-In38-T59LSA/T21mr9qvcjI/AAAAAAAABfU/iAfrrAS_KCU/s640/fast1.png" alt="" width="640" height="381" /></a></p>
<p>2) Select the CSV file</p>
<p><a href="https://lh6.googleusercontent.com/-PFkjmP1QOB4/T21mtTHDs0I/AAAAAAAABgE/vq9p-1pzOhc/s2048/fast2.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-PFkjmP1QOB4/T21mtTHDs0I/AAAAAAAABgE/vq9p-1pzOhc/s640/fast2.png" alt="" width="640" height="380" /></a></p>
<p>3) Select &#8220;Text File&#8221;</p>
<p><a href="https://lh5.googleusercontent.com/-mmmQJzGuYS8/T21mwfuWQSI/AAAAAAAABhE/0WvxPFOLSyM/s2048/fast3.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-mmmQJzGuYS8/T21mwfuWQSI/AAAAAAAABhE/0WvxPFOLSyM/s640/fast3.png" alt="" width="640" height="381" /></a></p>
<p>4) Then you can view the data points</p>
<p><a href="https://lh4.googleusercontent.com/-2HkI0M4lpEE/T21mwnd0-rI/AAAAAAAABho/185YGtaad4k/s2048/fast4.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-2HkI0M4lpEE/T21mwnd0-rI/AAAAAAAABho/185YGtaad4k/s640/fast4.png" alt="" width="640" height="380" /></a></p>
<p>5) Data Points are shown below</p>
<p><a href="https://lh5.googleusercontent.com/-OIL3xmRvrY0/T21mwsiVOBI/AAAAAAAABhM/Z5x3NqIeTVA/s2048/fast5.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-OIL3xmRvrY0/T21mwsiVOBI/AAAAAAAABhM/Z5x3NqIeTVA/s640/fast5.png" alt="" width="640" height="380" /></a></p>
<p>6) Click OK</p>
<p><a href="https://lh4.googleusercontent.com/-lq8zwNG9a_Y/T21mw4QH_qI/AAAAAAAABhQ/5n5JHmN0k14/s2048/fast6.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-lq8zwNG9a_Y/T21mw4QH_qI/AAAAAAAABhQ/5n5JHmN0k14/s640/fast6.png" alt="" width="640" height="380" /></a></p>
<p>7) Import all data</p>
<p><a href="https://lh3.googleusercontent.com/-IAbxNtcp2SM/T21mxOw9twI/AAAAAAAABhc/7NHs9gJA7-U/s2048/fast7.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-IAbxNtcp2SM/T21mxOw9twI/AAAAAAAABhc/7NHs9gJA7-U/s640/fast7.png" alt="" width="640" height="380" /></a></p>
<p>8) It will create a file format that I believe where it stores the dimension data</p>
<p><a href="https://lh6.googleusercontent.com/-Rw-jlBk-P9c/T21mxRrvNZI/AAAAAAAABhk/9vkEyYCOa94/s2048/fast8.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-Rw-jlBk-P9c/T21mxRrvNZI/AAAAAAAABhk/9vkEyYCOa94/s640/fast8.png" alt="" width="640" height="380" /></a></p>
<p>9) After the data points import</p>
<p><a href="https://lh5.googleusercontent.com/-Rhgr1TdfEto/T21mxr6tx6I/AAAAAAAABhs/55T0PgQ5YzI/s2048/fast9.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-Rhgr1TdfEto/T21mxr6tx6I/AAAAAAAABhs/55T0PgQ5YzI/s640/fast9.png" alt="" width="640" height="380" /></a></p>
<p>10) Drag the &#8220;Events&#8221; on the color section, then &#8220;Add all members&#8221;</p>
<p><a href="https://lh3.googleusercontent.com/-RvIoQNvZGfE/T21mpIvJz3I/AAAAAAAABeo/ZVM_EkYD-Ms/s2048/fast10.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-RvIoQNvZGfE/T21mpIvJz3I/AAAAAAAABeo/ZVM_EkYD-Ms/s640/fast10.png" alt="" width="640" height="380" /></a></p>
<p>11) Click OK</p>
<p><a href="https://lh3.googleusercontent.com/-KyksSOC_YXU/T21mpJC9ImI/AAAAAAAABek/mN9wchOwgHo/s2048/fast11.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-KyksSOC_YXU/T21mpJC9ImI/AAAAAAAABek/mN9wchOwgHo/s640/fast11.png" alt="" width="640" height="380" /></a></p>
<p>12) Drag the AAS on the Rows</p>
<p><a href="https://lh5.googleusercontent.com/-S5Nu8Rq21Zw/T21msFQXzFI/AAAAAAAABfc/wKz38CCupN8/s2048/fast12.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-S5Nu8Rq21Zw/T21msFQXzFI/AAAAAAAABfc/wKz38CCupN8/s640/fast12.png" alt="" width="640" height="380" /></a></p>
<p>13) SNAP_ID on the columns. That&#8217;s your AWR SNAP_IDs</p>
<p><a href="https://lh3.googleusercontent.com/--9cLFdNHrEM/T21mpk1b5UI/AAAAAAAABe0/PSudgWZEmFQ/s2048/fast13.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/--9cLFdNHrEM/T21mpk1b5UI/AAAAAAAABe0/PSudgWZEmFQ/s640/fast13.png" alt="" width="640" height="380" /></a></p>
<p>14) Filter the negative values. Those are the periods where you had instance shutdown.</p>
<p><a href="https://lh4.googleusercontent.com/-9NSXqy-75-o/T21mqe9tU9I/AAAAAAAABe8/VHvd1PvbZ-4/s2048/fast14.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-9NSXqy-75-o/T21mqe9tU9I/AAAAAAAABe8/VHvd1PvbZ-4/s640/fast14.png" alt="" width="640" height="381" /></a></p>
<p>15) Exclude the Nulls</p>
<p><a href="https://lh3.googleusercontent.com/-eXv7py_yx7U/T21mq9H-c-I/AAAAAAAABfE/GPS9ht6V48Y/s2048/fast15.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-eXv7py_yx7U/T21mq9H-c-I/AAAAAAAABfE/GPS9ht6V48Y/s640/fast15.png" alt="" width="640" height="381" /></a></p>
<p>16) And now you can select an area! hover on it and it will give you the event and the AAS number (the higher the AAS the more database work is happening)</p>
<p><a href="https://lh5.googleusercontent.com/-G5vUxtOlOAs/T21mrR9WxDI/AAAAAAAABfM/JOB3-D6hnm4/s2048/fast16.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-G5vUxtOlOAs/T21mrR9WxDI/AAAAAAAABfM/JOB3-D6hnm4/s640/fast16.png" alt="" width="640" height="380" /></a></p>
<p>17) Play around with the AAS data points</p>
<p><a href="https://lh6.googleusercontent.com/-siWGQbrnNlA/T21msQpTpRI/AAAAAAAABfk/J_uI0BQCeE4/s2048/fast17.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-siWGQbrnNlA/T21msQpTpRI/AAAAAAAABfk/J_uI0BQCeE4/s640/fast17.png" alt="" width="640" height="380" /></a></p>
<p>18) Now here it will show you detailed SNAP_ID data points (the dots) and you can hover on it</p>
<p><a href="https://lh4.googleusercontent.com/-d8B1ngKERAQ/T21mszNTgKI/AAAAAAAABfs/ly9ffjSgCeQ/s2048/fast18.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-d8B1ngKERAQ/T21mszNTgKI/AAAAAAAABfs/ly9ffjSgCeQ/s640/fast18.png" alt="" width="640" height="380" /></a></p>
<p>19) You can also view the underlying data points of those dots</p>
<p><a href="https://lh5.googleusercontent.com/-BvE37jD_hr4/T21mtHXHRiI/AAAAAAAABfw/lzT4a0tmEiY/s2048/fast19.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-BvE37jD_hr4/T21mtHXHRiI/AAAAAAAABfw/lzT4a0tmEiY/s640/fast19.png" alt="" width="640" height="381" /></a></p>
<p>20) Here it shows the event, SNAP_IDs, and the AAS value.. so here you can grab the SNAP_ID and execute the AWRRPT.sql on the database server to generate the larger AWR report</p>
<p><a href="https://lh6.googleusercontent.com/-INljog65rCA/T21mt6yFv2I/AAAAAAAABf8/EIW7d_M7fWo/s2048/fast20.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-INljog65rCA/T21mt6yFv2I/AAAAAAAABf8/EIW7d_M7fWo/s640/fast20.png" alt="" width="640" height="380" /></a></p>
<p>21) Drilling down more on the data points</p>
<p><a href="https://lh3.googleusercontent.com/-FX2Ap-kawOc/T21muCc5_GI/AAAAAAAABgM/homb6ElzVqI/s2048/fast21.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-FX2Ap-kawOc/T21muCc5_GI/AAAAAAAABgM/homb6ElzVqI/s640/fast21.png" alt="" width="640" height="381" /></a></p>
<p>22) You can also focus just on specific events. Let&#8217;s say just the CPU..</p>
<p><a href="https://lh4.googleusercontent.com/-HwIIl451-5Y/T21murwwKEI/AAAAAAAABgU/9oe5PmxuR0w/s2048/fast22.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-HwIIl451-5Y/T21murwwKEI/AAAAAAAABgU/9oe5PmxuR0w/s640/fast22.png" alt="" width="640" height="381" /></a></p>
<p>23) or the event that&#8217;s hogging most of the resources</p>
<p><a href="https://lh5.googleusercontent.com/-J0j6YFv0jVE/T21mu2C0KPI/AAAAAAAABgc/7DoF8BHmYe8/s2048/fast23.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-J0j6YFv0jVE/T21mu2C0KPI/AAAAAAAABgc/7DoF8BHmYe8/s640/fast23.png" alt="" width="640" height="380" /></a></p>
<p>24) and just select the data points from that bottleneck</p>
<p><a href="https://lh4.googleusercontent.com/-t8EGze5MZe8/T21mvcahhJI/AAAAAAAABgk/x4xxKAdK_ug/s2048/fast24.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-t8EGze5MZe8/T21mvcahhJI/AAAAAAAABgk/x4xxKAdK_ug/s640/fast24.png" alt="" width="640" height="380" /></a></p>
<p>25) Copy the summary info</p>
<p><a href="https://lh6.googleusercontent.com/-OTiLSkQsXGs/T21mv6cdrhI/AAAAAAAABgs/3zOsxiNb85c/s2048/fast25.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-OTiLSkQsXGs/T21mv6cdrhI/AAAAAAAABgs/3zOsxiNb85c/s640/fast25.png" alt="" width="640" height="381" /></a></p>
<p>26) Then play around with the data in command line</p>
<p><a href="https://lh5.googleusercontent.com/-fOyXT4YNxvo/T21mwJfjvZI/AAAAAAAABgw/qWzDXF1am-A/s2048/fast26.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-fOyXT4YNxvo/T21mwJfjvZI/AAAAAAAABgw/qWzDXF1am-A/s640/fast26.png" alt="" width="640" height="382" /></a></p>
<div>
<div></div>
<div>And clearly the database bottleneck is the PX event&#8230; which could just be the surface of the problem or a symptom for another issue..</div>
<div></div>
<div>And then visually you&#8217;ll start finding trends on the workload..</div>
<div></div>
</div>
<p><a href="https://lh5.googleusercontent.com/-11sfMP34rGQ/T21mwOM_R7I/AAAAAAAABg4/hijPDxmu5eA/s2048/fast27.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-11sfMP34rGQ/T21mwOM_R7I/AAAAAAAABg4/hijPDxmu5eA/s640/fast27.png" alt="" width="640" height="381" /></a></p>
<div>
<div>let&#8217;s say on this workload I found sustained high workload periods that would last for days..and these could be the periods where the batch jobs are executed..</div>
<div></div>
<div>SNAP_ID 34241 &#8211; 34306<br />
11/07/06 03:30 &#8211; 11/07/07 12:00SNAP_ID 34417 &#8211; 34516<br />
11/07/10 13:30 &#8211; 11/07/12 15:00SNAP_ID 34565 &#8211; 34694<br />
11/07/13 15:30 &#8211; 11/07/16 08:00SNAP_ID 35213 &#8211; 35322<br />
11/07/27 03:30 &#8211; 11/07/29 10:00</p>
<p>SNAP_ID 35363 &#8211; 35477<br />
11/07/30 06:30 &#8211; 11/08/01 15:30</p>
<p>SNAP_ID 35590 &#8211; 35670<br />
11/08/04 00:00 &#8211; 11/08/05 16:00</p>
</div>
<div></div>
<div>And if you want to have regression analysis, you must put all of these data points on the Y and X axis (I&#8217;ll create a script for that one of these days).. that way the <a href="http://karlarao.tiddlyspot.com/#r2project" target="_blank">r2toolkit</a> will have a very good scope of data.. and then you&#8217;ll get your nice <a href="http://karlarao.tiddlyspot.com/#r2project" target="_blank">R2 trend</a>..</div>
<div></div>
<div>but it doesn&#8217;t stop there..</div>
<div></div>
<div>you have to drill down on the data points, use the awrrpt, addmrpt, awrsqrpt, ashrpt, and drill down on sessions with snapper, os utilities, etc. to get to the bottom of the issue</div>
<div></div>
<div>so that&#8217;s forecasting+troubleshooting!</div>
</div>
<div></div>
<div></div>
<div></div>
<div></div>
<div><span style="text-decoration:underline;"><strong>Update: </strong></span></div>
<div></div>
<div>The screenshots above just makes sense of the SNAP_ID for the time series data. After a little more AWR data hacking I was able to make sense of the date value which is really useful because I no longer have think of SNAP_IDs across instances and getting them aligned on a particular period&#8230; and the trick here is Tableau automatically creates a <span style="text-decoration:underline;"><strong>time dimension</strong></span> for the time column of my AWR scripts.  Kewlness <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   and that way I can stitch performance data across hostnames and consolidated instances of an entire Exadata Full Rack! and I&#8217;ll show how it is done on the next couple of posts.</div>
<div></div>
<div>The graph below shows an example of having a time dimension. Below is the AWR data (shown by day and hour) coming from a non-RAC database on a SAN storage with a default AWR retention period. The arrows below are pointing to a workload period where they are  running a report which has a SQL that has access paths doing lots of multiblock IOs (db file scattered read) and that throttles the performance of the (already slow) storage causing the IO latency to shoot up. This graph was pretty useful on the storage performance troubleshooting which correlates to the numbers of OS (iostat, vmstat, and atop) and session level (snapper) tools. Now the single block latency (db file sequential read) has always been on the 20ms below range regardless of load. So fixing the SQL to favor the use of indexes (db file sequential read) made it do efficient IO, that made the SQL run from 15mins to 10secs.</div>
<div></div>
<p><a href="https://lh6.googleusercontent.com/-a9BTUrpTYBk/T211S1P17uI/AAAAAAAABiA/abJePGFC9II/s2048/fast28.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-a9BTUrpTYBk/T211S1P17uI/AAAAAAAABiA/abJePGFC9II/s640/fast28.png" alt="" width="640" height="375" /></a></p>
<p>&nbsp;</p>
<p>Hope I&#8217;ve shared you some good stuff!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3176&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/hkjPl-KrtzE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2012/03/24/fast-analytics-of-awr-top-events/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-In38-T59LSA/T21mr9qvcjI/AAAAAAAABfU/iAfrrAS_KCU/s640/fast1.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-PFkjmP1QOB4/T21mtTHDs0I/AAAAAAAABgE/vq9p-1pzOhc/s640/fast2.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-mmmQJzGuYS8/T21mwfuWQSI/AAAAAAAABhE/0WvxPFOLSyM/s640/fast3.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-2HkI0M4lpEE/T21mwnd0-rI/AAAAAAAABho/185YGtaad4k/s640/fast4.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-OIL3xmRvrY0/T21mwsiVOBI/AAAAAAAABhM/Z5x3NqIeTVA/s640/fast5.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-lq8zwNG9a_Y/T21mw4QH_qI/AAAAAAAABhQ/5n5JHmN0k14/s640/fast6.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-IAbxNtcp2SM/T21mxOw9twI/AAAAAAAABhc/7NHs9gJA7-U/s640/fast7.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-Rw-jlBk-P9c/T21mxRrvNZI/AAAAAAAABhk/9vkEyYCOa94/s640/fast8.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-Rhgr1TdfEto/T21mxr6tx6I/AAAAAAAABhs/55T0PgQ5YzI/s640/fast9.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-RvIoQNvZGfE/T21mpIvJz3I/AAAAAAAABeo/ZVM_EkYD-Ms/s640/fast10.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-KyksSOC_YXU/T21mpJC9ImI/AAAAAAAABek/mN9wchOwgHo/s640/fast11.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-S5Nu8Rq21Zw/T21msFQXzFI/AAAAAAAABfc/wKz38CCupN8/s640/fast12.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/--9cLFdNHrEM/T21mpk1b5UI/AAAAAAAABe0/PSudgWZEmFQ/s640/fast13.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-9NSXqy-75-o/T21mqe9tU9I/AAAAAAAABe8/VHvd1PvbZ-4/s640/fast14.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-eXv7py_yx7U/T21mq9H-c-I/AAAAAAAABfE/GPS9ht6V48Y/s640/fast15.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-G5vUxtOlOAs/T21mrR9WxDI/AAAAAAAABfM/JOB3-D6hnm4/s640/fast16.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-siWGQbrnNlA/T21msQpTpRI/AAAAAAAABfk/J_uI0BQCeE4/s640/fast17.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-d8B1ngKERAQ/T21mszNTgKI/AAAAAAAABfs/ly9ffjSgCeQ/s640/fast18.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-BvE37jD_hr4/T21mtHXHRiI/AAAAAAAABfw/lzT4a0tmEiY/s640/fast19.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-INljog65rCA/T21mt6yFv2I/AAAAAAAABf8/EIW7d_M7fWo/s640/fast20.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-FX2Ap-kawOc/T21muCc5_GI/AAAAAAAABgM/homb6ElzVqI/s640/fast21.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-HwIIl451-5Y/T21murwwKEI/AAAAAAAABgU/9oe5PmxuR0w/s640/fast22.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-J0j6YFv0jVE/T21mu2C0KPI/AAAAAAAABgc/7DoF8BHmYe8/s640/fast23.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-t8EGze5MZe8/T21mvcahhJI/AAAAAAAABgk/x4xxKAdK_ug/s640/fast24.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-OTiLSkQsXGs/T21mv6cdrhI/AAAAAAAABgs/3zOsxiNb85c/s640/fast25.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-fOyXT4YNxvo/T21mwJfjvZI/AAAAAAAABgw/qWzDXF1am-A/s640/fast26.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-11sfMP34rGQ/T21mwOM_R7I/AAAAAAAABg4/hijPDxmu5eA/s640/fast27.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-a9BTUrpTYBk/T211S1P17uI/AAAAAAAABiA/abJePGFC9II/s640/fast28.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2012/03/24/fast-analytics-of-awr-top-events/</feedburner:origLink></item>
		<item>
		<title>RMOUG 2012 training days</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/B6XboFN5G2A/</link>
		<comments>http://karlarao.wordpress.com/2012/02/13/rmoug-2012-training-days/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 07:44:50 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[RMOUG]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3165</guid>
		<description><![CDATA[In the next few days I&#8217;ll be at RMOUG 2012 training days! and I&#8217;ll be again presenting the topic so dear to my heart. Mining the AWR I&#8217;ve updated the material with a couple of new research and findings, some of them are as follows: CPU Wait (new metric in 11g Performance page) Latency issues on virtualized environments So if you are attending the RMOUG training days, stop by at my session @ room 401 Thursday 9:45 am-10:45 am There will also be a RAC Attack at the exhibition area so that must be fun and don&#8217;t <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2012/02/13/rmoug-2012-training-days/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3165&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In the next few days I&#8217;ll be at <a href="http://www.teamycc.com/RMOUG_2012_Conference/index.html" target="_blank">RMOUG 2012 training days</a>! and I&#8217;ll be again presenting the topic so dear to my heart. Mining the AWR <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I&#8217;ve updated the material with a couple of new research and findings, some of them are as follows:</p>
<ul>
<li>CPU Wait (new metric in 11g Performance page)</li>
<li>Latency issues on virtualized environments</li>
</ul>
<p>So if you are attending the RMOUG training days, stop by at my session <a href="http://www.technicalconferencesolutions.com/pls/caat/caat_abstract_reports.display_presenter_abstract?conference_id=99&amp;presenter_id=463&amp;abstract_id=296143" target="_blank">@ room 401 Thursday 9:45 am-10:45 am</a></p>
<p>There will also be a <a href="http://en.wikibooks.org/wiki/RAC_Attack_-_Oracle_Cluster_Database_at_Home/Hardware_and_Windows_Minimum_Requirements" target="_blank">RAC Attack</a> at the exhibition area so that must be fun <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-3165"></span></p>
<p>and don&#8217;t forget to follow RMOUG&#8217;s twitter <a href="https://twitter.com/#!/RMOUG_ORG" target="_blank">@RMOUG_ORG</a> for updates during the conference!</p>
<p>See yah!</p>
<p>&nbsp;</p>
<p><span style="text-decoration:underline;"><strong>Update: </strong></span></p>
<p>I had a great time at RMOUG, was able to meet old/new friends and had a good number of attendees. The organizers really did a good job <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Here&#8217;s the updated PPT I used during the presentation.<br />
That’s the most recent, the one on the RMOUG is not yet updated. For the scripts <a title="http://karlarao.wordpress.com/scripts-resources/" href="http://karlarao.wordpress.com/scripts-resources/" target="_blank">http://karlarao.wordpress.com/scripts-resources/</a> they are all at the “PerformanceAndTroubleshooting” folder</p>
<p>Thanks to all who attended my presentation, I know that’s a bit too much technical stuff for 1hour presentation squeezing all 101 slides and all that info. The best way is to go through my notes on the slides, check out all the links I pointed, and try to poke around on the scripts. And I assure you will learn tons of stuff &amp; greatly appreciate the material  :)</p>
<div id="__ss_11642452" style="width:425px;padding-left:150px;" align="center">
<p><strong><a title="RMOUG - Mining the AWR" href="http://www.slideshare.net/karlarao/rmoug-mining-the-awr" target="_blank">RMOUG &#8211; Mining the AWR</a></strong> <iframe src='http://www.slideshare.net/slideshow/embed_code/11642452' width='425' height='348' scrolling='no'></iframe></p>
<div style="padding:5px 0 12px;">View more <a href="http://www.slideshare.net/thecroaker/death-by-powerpoint" target="_blank">PowerPoint</a> from <a href="http://www.slideshare.net/karlarao" target="_blank">karlarao</a></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3165&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/B6XboFN5G2A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2012/02/13/rmoug-2012-training-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2012/02/13/rmoug-2012-training-days/</feedburner:origLink></item>
		<item>
		<title>SQLTXPLAIN quick tips and tricks and DB Optimizer VST</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/U_-Z0mwnPl0/</link>
		<comments>http://karlarao.wordpress.com/2012/02/11/sqltxplain-quick-tips-and-tricks-and-db-optimizer-vst/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 16:23:29 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[SQL_Tuning]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3110</guid>
		<description><![CDATA[Lately I&#8217;ve been busy on projects and research so I&#8217;m putting more and more stuff on my wiki/braindump&#8230; and really I need to catch up on blogging. I have a longer draft post about SQLTXPLAIN.. but I haven&#8217;t finished it yet so I&#8217;ll just go with the quick post for now. SQLTXPLAIN: I&#8217;ve been using SQLTXPLAIN for quite a while, and I can say I&#8217;m a really big fan. It&#8217;s a cool tool to use for systematic SQL Tuning so I got them all neatly documented here http://karlarao.tiddlyspot.com/#SQLTXPLAIN. BTW, Carlos Sierra, the author of the <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2012/02/11/sqltxplain-quick-tips-and-tricks-and-db-optimizer-vst/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3110&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Lately I&#8217;ve been busy on projects and research so I&#8217;m putting more and more stuff on my <a href="http://karlarao.tiddlyspot.com" target="_blank">wiki/braindump</a>&#8230; and really I need to catch up on <strong>blogging</strong>.<br />
I have a longer draft post about SQLTXPLAIN.. but I haven&#8217;t finished it yet so I&#8217;ll just go with the quick post for now.</p>
<h1><span style="color:#000000;">SQLTXPLAIN:</span></h1>
<p>I&#8217;ve been using SQLTXPLAIN for quite a while, and I can say I&#8217;m a really big fan. It&#8217;s a cool tool to use for systematic SQL Tuning so I got them all neatly documented here <a href="http://karlarao.tiddlyspot.com/#SQLTXPLAIN" target="_blank">http://karlarao.tiddlyspot.com/#SQLTXPLAIN</a>.</p>
<p><span id="more-3110"></span></p>
<p><a href="http://karlarao.tiddlyspot.com/#SQLTXPLAIN" target="_blank"><img class="aligncenter" src="https://lh4.googleusercontent.com/-u5X1DHdQ_SQ/TzaXknGLYKI/AAAAAAAABYE/WXg4zX6-AXA/s2048/sqltxplainwiki.png" alt="" width="903" height="822" /></a></p>
<p>BTW, Carlos Sierra, the author of the tool will present at Hotsos 2012 <a href="http://www.hotsos.com/sym12/sym_speakers_sierra.html" target="_blank">http://www.hotsos.com/sym12/sym_speakers_sierra.html</a> so I may drop by the conference and say hello <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The <a href="http://karlarao.tiddlyspot.com/#SQLTXPLAIN" target="_blank">wiki link</a> will probably show you all the things you need to know about SQLTXPLAIN. My personal use case favorites would be the following:</p>
<ul>
<li>Mining 10053 output
<ul>
<li>On the execution plan view of the main HTML report whenever you hover on each step of the plan it will pop up an info about the Query Block (QB) details which you can mine on the raw 10053 text file that is also on the zip file. This is helpful when troubleshooting the specific part of the SQL where it has gone wrong.</li>
</ul>
</li>
<li>Instant SQL Monitor output
<ul>
<li>The HTML and text versions of SQL Monitor is readily available for the particular SQL_ID you are troubleshooting <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
</li>
<li>Compare good/bad plan of SQLs
<ul>
<li>This is pretty handy because the output report of the SQLT-compare highlights the difference in <span style="color:#ff0000;"><strong>red text</strong></span>. So instead of chasing some delta numbers, you can just go straight to the <span style="color:#ff0000;"><strong>red text</strong></span>!</li>
</ul>
</li>
<li>Fix bad stats
<ul>
<li>Let&#8217;s say you have a prod and dev that have completely different run times. And you found out that the problem is the stats, you can do a SQLT on the good plan and transfer the stats to the other environment. You will be using the <a href="http://karlarao.tiddlyspot.com/#%5B%5BSQLT%20restore%20CBO%20stats%5D%5D" target="_blank">sqltimp.sql</a> for this</li>
</ul>
</li>
<li>Transfer stored outline/profiles
<ul>
<li>This makes use of exp/imp to transfer and outline + DBMS_SQLTUNE for the SQL Profile</li>
<li>Manual SQL Profile is readily available as sqlt_&lt;sqlt_id&gt;_sqlprof.sql or can be created using sqlt/utl/coe_xfr_sql_profile.sql</li>
</ul>
</li>
<li>Reproducing an execution plan from one system to another and Creating test cases
<ul>
<li>I usually pull SQLT from the server I&#8217;m troubleshooting and load it on my laptop. And from there I can have the same optimizer environment then I can do anything I want with it. (well you can also do this from prod then load the SQLT to dev/QA environment)</li>
<li>I mainly use the <strong>SQLT-tc</strong> (test case builder) and that is totally different from the <strong>TCB</strong> (test case builder) which uses the <strong>DBMS_SQLDIAG</strong>.. wait, am I confusing you with the <strong>TCB </strong>terms? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<ul>
<li>Let me give you a little background</li>
</ul>
</li>
</ul>
</li>
</ul>
<p style="padding-left:120px;">Each SQLTXPLAIN run (START sqltxtract.sql SQL_ID) packages everything in one zip file</p>
<pre style="padding-left:150px;">[oracle@karl sqlt_s54491-good]$ du -sm sqlt_s54491.zip
 47 sqlt_s54491.zip</pre>
<p style="padding-left:120px;">and inside that zip file includes the test case zip file that has a <strong>*_tc.zip</strong> extension (<strong>sqlt_s54491_tc.zip</strong>)<br />
Note that this is different from the <strong>*_tcb.zip</strong> extension (<strong>sqlt_s54491_tcb.zip</strong>) which is using the DBMS_SQLDIAG TCB (test case builder) package</p>
<pre style="padding-left:150px;">[oracle@karl sqlt_s54491-good]$ unzip -l sqlt_s54491.zip
 Archive: sqlt_s54491.zip
 Length Date Time Name
 --------- ---------- ----- ----
 104557695 11-27-2011 02:36 sqlt_s54491_10053_explain.trc
 2587 11-27-2011 09:18 sqlt_s54491_driver.zip
 660035 11-27-2011 02:35 sqlt_s54491_lite.html
 28711 11-27-2011 09:18 sqlt_s54491_log.zip
 34589692 11-27-2011 02:35 sqlt_s54491_main.html
 316568 11-27-2011 09:18 sqlt_s54491_opatch.zip
 40487 11-27-2011 02:35 sqlt_s54491_p73080644_sqlprof.sql
 21526 11-27-2011 02:35 sqlt_s54491_readme.html
 461504 11-27-2011 02:35 sqlt_s54491_sql_detail_active.html
 385239 11-27-2011 02:35 sqlt_s54491_sql_monitor_active.html
 424680 11-27-2011 02:35 sqlt_s54491_sql_monitor.html
 57213 11-27-2011 02:35 sqlt_s54491_sql_monitor.txt
 333117 11-27-2011 02:35 sqlt_s54491_sta_report_mem.txt
 1488 11-27-2011 02:35 sqlt_s54491_sta_script_mem.sql
 616556 11-27-2011 02:36 <strong><span style="color:#ff0000;">sqlt_s54491_tcb.zip</span></strong>         <span style="color:#ff0000;"><strong>&lt;-- ''DBMS_SQLDIAG TCB'' (test case builder) package zip file</strong></span>
 8659 11-27-2011 09:18 sqlt_s54491_tc_script.sql
 7793 11-27-2011 09:18 sqlt_s54491_tc_sql.sql
 4254816 11-27-2011 09:18 <strong><span style="color:#ff0000;">sqlt_s54491_tc.zip</span></strong>         <span style="color:#ff0000;"><strong>&lt;-- ''SQLT-tc test case'' zip file</strong></span>
 33308174 11-27-2011 09:18 sqlt_s54491_trc.zip
 --------- -------
 180076540 19 files</pre>
<ul>
<li>And from the wiki, you will see the related wiki topics that starts with <strong>&#8220;testcase -&#8221;</strong>. Actually, you can generate test cases using the following methods:
<ul>
<li>by <strong><a href="http://karlarao.tiddlyspot.com/#%5B%5Btestcase%20-%20Manually%20reproduce%20SQL%5D%5D" target="_blank">Manually</a></strong> reproducing the SQL</li>
<li>by using <a href="http://karlarao.tiddlyspot.com/#%5B%5Btestcase%20-%20SQLT-tc%20(test%20case%20builder)%5D%5D" target="_blank"><strong>SQLT-tc</strong> </a></li>
<li>by using the <strong>DBMS_SQLDIAG TCB</strong> (test case builder) package</li>
<li>by using the <strong><a href="http://karlarao.tiddlyspot.com/#%5B%5Btestcase%20-%20SQLTCB%20from%20ADRCI%5D%5D" target="_blank">DBMS_SQLDIAG TCB from ADRCI</a></strong></li>
</ul>
</li>
</ul>
<ul>
<li><span style="text-decoration:underline;"><strong>And last but not the least</strong></span>, the most awesome part is <span style="text-decoration:underline;"><strong><span style="color:#ff0000;text-decoration:underline;">1)</span> using the generated SQLT zip file, <span style="color:#ff0000;text-decoration:underline;">2)</span> building the testcase using SQLT-tc, and <span style="color:#ff0000;text-decoration:underline;">3)</span> then generating a DB Optimizer VST on the SQL_ID!</strong></span>
<ul>
<li>Right after the DB Optimizer <a href="http://dboptimizer.com/db-optimizer" target="_blank">http://dboptimizer.com/db-optimizer</a> was released last 2010, and right after I got the tool for $99! <a href="http://www.freelists.org/post/oracle-l/Special-Offer-for-readers-of-OracleL" target="_blank">http://www.freelists.org/post/oracle-l/Special-Offer-for-readers-of-OracleL</a> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I was chatting with Kyle Hailey about the possibilities of making a VST out of SQLTXPLAIN.. and all along I was right <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
</li>
</ul>
<h1><span style="color:#000000;">DB Optimizer:</span></h1>
<p>Below you will see that the highlighted table name starts with the schema <strong>TC&lt;sqlt_id&gt;</strong>, that means it was generated from SQLT-tc and I was also able to reproduce underlying objects of the SQL_ID and the optimizer environment <strong>on my laptop</strong>.</p>
<p>The cool thing about DB Optimizer is that it automates a lot of tedious tasks for you. It takes away the pain of manual diagramming just like what I&#8217;m doing here <a href="http://goo.gl/VZFB" target="_blank">http://goo.gl/VZFB</a> that turns out just look like this <a href="http://goo.gl/ttrh" target="_blank">http://goo.gl/ttrh</a></p>
<table border="0" align="center">
<tbody>
<tr>
<td valign="top"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/SyrpkTc2BII/AAAAAAAAAig/clY9RCvta08/bad.jpg"><img title="Bad Plan" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/SyrpkTc2BII/AAAAAAAAAig/clY9RCvta08/s288/bad.jpg" alt="Bad Plan" /></a></td>
<td valign="top"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SyrpkUCfSJI/AAAAAAAAAik/fWfxUoJbmV0/patrickstar.png"><img title="Patrick Star" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SyrpkUCfSJI/AAAAAAAAAik/fWfxUoJbmV0/s288/patrickstar.png" alt="Patrick Star" /></a></td>
</tr>
</tbody>
</table>
<p>I&#8217;m a very visual guy, and I can have a better understanding of the problem and solve things quickly (and creatively) by making use of visualization.</p>
<p>The highlighted table on the diagram below shows a missing join condition. This version of the SQL takes <strong>FOREVER</strong>!&#8230; here with <a href="http://dboptimizer.com/db-optimizer/" target="_blank">DB Optimizer</a>, right after it prints the <strong>VST diagram</strong> and correlating it with the <strong>&#8220;merge join cartesian&#8221; on the SQLT</strong>.. it&#8217;s pretty <span style="text-decoration:underline;"><strong>easy to identify the missing join</strong></span> (see highlighted SQL on the left) which is the root cause of the performance problem.</p>
<p><a href="https://lh4.googleusercontent.com/-66mlcOjgDX4/TzaXkTacezI/AAAAAAAABX0/45Vjj8N6gsE/s2048/sqlt2.png" target="_blank"><img class="aligncenter" src="https://lh4.googleusercontent.com/-66mlcOjgDX4/TzaXkTacezI/AAAAAAAABX0/45Vjj8N6gsE/s2048/sqlt2.png" alt="" width="1379" height="635" /></a></p>
<p>and a quick modification on the SQL made it run for just <span style="text-decoration:underline;"><strong>10 seconds!</strong></span> that&#8217;s the power of <strong>SQLTXPLAIN</strong> and<strong> DB Optimizer VST</strong>  <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="https://lh4.googleusercontent.com/-Iat2UL1-cME/TzaXkZgsV8I/AAAAAAAABX4/Jj0prk_mwL4/s2048/sqlt3.png" target="_blank"><img class="aligncenter" src="https://lh4.googleusercontent.com/-Iat2UL1-cME/TzaXkZgsV8I/AAAAAAAABX4/Jj0prk_mwL4/s2048/sqlt3.png" alt="" width="1379" height="613" /></a></p>
<p>You may also want to check out this ultimate SQL tune off by <a href="http://dboptimizer.com/" target="_blank">Kyle Hailey</a> and <a href="http://jonathanlewis.wordpress.com/2010/05/26/visual-tuning/" target="_blank">Jonathan Lewis</a> to know more about DB Optimizer <a href="http://dboptimizer.com/2010/06/14/jonathan-lewis-kyle-hailey-webinar-replay/" target="_blank">http://dboptimizer.com/2010/06/14/jonathan-lewis-kyle-hailey-webinar-replay/</a></p>
<p>And my example usage of the tool on a high load SAP OLTP environment &#8211; <a href="http://karlarao.tiddlyspot.com/#%5B%5BDB%20Optimizer%20example%20-%203mins%20to%2010secs%5D%5D" target="_blank">DB Optimizer example &#8211; 3mins to 10secs</a></p>
<p>That&#8217;s it for now, hope I&#8217;ve shared you some good stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="text-decoration:underline;"><strong>Update: </strong></span></p>
<p>I attended the 2nd day of Hotsos and I was able to meet Carlos, he&#8217;s a really nice guy. <a href="https://www.apress.com/index.php/author/author/view/id/3409" target="_blank">Randy Johnson</a>, Carlos, and I had a great discussion about the tools we are working on and currently developing&#8230; we were like kids on a table with a laptop showing off each others work &amp; that includes <a href="http://blog.jameyjohnston.com/" target="_blank">Jamey Johnston</a> showing his performance monitoring tool from his server at home&#8230; I was able to show Carlos how the VST of DB Optimizer works and he was impressed by the power of easily slicing and dicing on the query visually. Of course we shared a couple of SQLTXPLAIN tips and tricks and war stories where the tool was really useful. And all of these stuff over beer and good food <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  that was a fun Hotsos party <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="aligncenter" src="https://lh5.googleusercontent.com/-QO0bydwpJRw/T2v_4vMHKgI/AAAAAAAABZM/2q7d-fDyxUw/s400/SteamPunk2.jpg" alt="" width="320" height="400" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3110&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/U_-Z0mwnPl0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2012/02/11/sqltxplain-quick-tips-and-tricks-and-db-optimizer-vst/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-u5X1DHdQ_SQ/TzaXknGLYKI/AAAAAAAABYE/WXg4zX6-AXA/s2048/sqltxplainwiki.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/SyrpkTc2BII/AAAAAAAAAig/clY9RCvta08/s288/bad.jpg" medium="image">
			<media:title type="html">Bad Plan</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SyrpkUCfSJI/AAAAAAAAAik/fWfxUoJbmV0/s288/patrickstar.png" medium="image">
			<media:title type="html">Patrick Star</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-66mlcOjgDX4/TzaXkTacezI/AAAAAAAABX0/45Vjj8N6gsE/s2048/sqlt2.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-Iat2UL1-cME/TzaXkZgsV8I/AAAAAAAABX4/Jj0prk_mwL4/s2048/sqlt3.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-QO0bydwpJRw/T2v_4vMHKgI/AAAAAAAABZM/2q7d-fDyxUw/s400/SteamPunk2.jpg" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2012/02/11/sqltxplain-quick-tips-and-tricks-and-db-optimizer-vst/</feedburner:origLink></item>
		<item>
		<title>Easy and fast environment framework</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/VlLxbFEx2Ww/</link>
		<comments>http://karlarao.wordpress.com/2011/12/31/easy-and-fast-environment-framework/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 08:18:14 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3058</guid>
		<description><![CDATA[Getting tired of typing and setting your ORACLE_HOME, ORACLE_SID and troubleshooting your . oraenv ? going/connecting to different client sites with different platforms and server environments sometimes it is frustrating just how long it takes to get a proper SQL*Plus environment So I always make use of this script http://karlarao.tiddlyspot.com/#%5B%5Bstep%20by%20step%20environment%5D%5D and for every server that I access I just have to do three bits of typing: . ~oracle/.karlenv &#60;&#60;&#8211; set the environment 2 &#60;&#60;&#8211; choose an instance s &#60;&#60;&#8211; rlwrap&#039;d sqlplus alias see example usage below: BTW, parts of the code came from this blog <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/12/31/easy-and-fast-environment-framework/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3058&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Getting tired of typing and setting your <strong>ORACLE_HOME</strong>, <strong>ORACLE_SID</strong> and troubleshooting your <strong>. oraenv</strong> ?<br />
going/connecting to different client sites with different platforms and server environments sometimes it is frustrating just how long it takes to get a proper SQL*Plus environment</p>
<p>So I always make use of this script<br />
<a href="http://karlarao.tiddlyspot.com/#%5B%5Bstep%20by%20step%20environment%5D%5D" target="_blank">http://karlarao.tiddlyspot.com/#%5B%5Bstep%20by%20step%20environment%5D%5D</a></p>
<p><span id="more-3058"></span></p>
<p>and for every server that I access I just have to do three bits of typing:</p>
<p><span style="color:#800000;"><strong>. ~oracle/.karlenv</strong></span>      <strong>&lt;&lt;&#8211; set the environment</strong><br />
<span style="color:#800000;"><strong>2</strong></span>      <strong>&lt;&lt;&#8211; choose an instance</strong><br />
<span style="color:#800000;"><strong>s</strong></span>      <strong>&lt;&lt;&#8211; rlwrap&#039;d sqlplus alias</strong></p>
<p>see example usage below:</p>
<p><pre class="brush: sql; wrap-lines: false;">

[root@desktopserver ~]# su - oracle
[oracle@desktopserver ~]$
[oracle@desktopserver ~]$ vi .karlenv      &lt;-- copy the script from the &quot;Install environment framework - karlenv&quot; section of the wiki link above
[oracle@desktopserver ~]$
[oracle@desktopserver ~]$ ls -la | grep karl
-rw-r--r--  1 oracle dba   6071 Dec 14 15:58 .karlenv
[oracle@desktopserver ~]$
[oracle@desktopserver ~]$ . ~oracle/.karlenv      &lt;-- set the environment
&lt;HOME_LIST&gt;
&lt;HOME NAME=&quot;Ora11g_gridinfrahome1&quot; LOC=&quot;/u01/app/11.2.0/grid&quot; TYPE=&quot;O&quot; IDX=&quot;1&quot; CRS=&quot;true&quot;/&gt;
&lt;HOME NAME=&quot;OraDb11g_home1&quot; LOC=&quot;/u01/app/oracle/product/11.2.0/dbhome_1&quot; TYPE=&quot;O&quot; IDX=&quot;2&quot;/&gt;
&lt;/HOME_LIST&gt;
&lt;COMPOSITEHOME_LIST&gt;
&lt;/COMPOSITEHOME_LIST&gt;


 1-       +ASM
 2-         dw

Select the Oracle SID with given number [1]:
2      &lt;-- choose an instance
Your profile configured for dw with information below:
The Oracle base has been set to /u01/app/oracle

ORACLE_SID=dw
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1

oracle@desktopserver.local:/home/oracle:dw
$ s      &lt;-- rlwrap'd sqlplus alias, also you can use the &quot;s1&quot; alias if you don't have rlwrap installed

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jan 5 15:41:15 2012

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP and Real Application Testing options


USERNAME             INST_NAME    HOST_NAME                 SID   SERIAL#  VERSION    STARTED  SPID            OPID  CPID            SADDR            PADDR
-------------------- ------------ ------------------------- ----- -------- ---------- -------- --------------- ----- --------------- ---------------- ----------------
SYS                  dw           desktopserver.local       5     8993     11.2.0.3.0 20111219 27483           24    27480           00000000DFB78138 00000000DF8F9FA0


SQL&gt; @gas      &lt;-- calling one of Kerry's scripts from the /home/oracle/dba/scripts directory

 INST   SID PROG       USERNAME      SQL_ID         CHILD PLAN_HASH_VALUE        EXECS       AVG_ETIME SQL_TEXT                                  OSUSER                         MACHINE
----- ----- ---------- ------------- ------------- ------ --------------- ------------ --------------- ----------------------------------------- ------------------------------ -------------------------
    1     5 sqlplus@de SYS           bmyd05jjgkyz1      0        79376787            3         .003536 select a.inst_id inst, sid, substr(progra oracle                         desktopserver.local
    1   922 OMS        SYSMAN        2b064ybzkwf1y      0               0       50,515         .004947 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2 oracle                         desktopserver.local

SQL&gt;
SQL&gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP and Real Application Testing options
oracle@desktopserver.local:/home/oracle:dw

</pre></p>
<p>BTW, parts of the code came from this blog by <a href="http://coskan.wordpress.com" target="_blank">Coskan Gundogar</a> <a href="http://goo.gl/cqRPK" target="_blank">http://goo.gl/cqRPK</a> and I&#8217;ve edited/added some lines on the <strong>setsid</strong> and <strong>showsid</strong> sections making it suitable for most unix(solaris,aix)/linux environments </p>
<p>Also I&#8217;ve added lines of code before and after the <strong>setsid</strong> and <strong>showsid</strong> to get the following info:</p>
<ul>
<li><strong>software homes installed</strong></li>
<p> &#8211; very useful on troubleshooting if you have multiple homes (RDBMS/Grid Infra/EMGC)</p>
<li><strong>get DBA scripts location</strong></li>
<p> &#8211; quickly plugin your script folders by editing the &#8220;# SCRIPTS LOCATION&#8221; section</p>
<li><strong>set alias</strong></li>
<p> &#8211; quickly add alias by editing the &#8220;# ALIAS&#8221; section
</ul>
<p>Hope I&#8217;ve shared you some good stuff! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3058/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3058/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3058&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/VlLxbFEx2Ww" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/12/31/easy-and-fast-environment-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2011/12/31/easy-and-fast-environment-framework/</feedburner:origLink></item>
		<item>
		<title>Mining EMGC Notification Alerts</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/5GVqZzz7TBU/</link>
		<comments>http://karlarao.wordpress.com/2011/12/06/mining-emgc-notification-alerts/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 05:31:26 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Enterprise_Manager]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=3042</guid>
		<description><![CDATA[The past few days, I&#8217;ve been troubleshooting an email alerting problem on an EMGC 11.1 install on a client site. But this troubleshooting also includes setting up my own email server and reproducing the problem http://karlarao.tiddlyspot.com/#EmailNotificationsNotSending Watching/digging on the EM web based interface is tedious so I devised a way to just mine on the MGMT views&#8230; thanks to the MOS 421499.1 EMDIAG REPVFY Kit &#8211; which is a good source for mining the EMGC repository. This simple query from the MGMT views will output something like this and with this data you can actually <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/12/06/mining-emgc-notification-alerts/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3042&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The past few days, I&#8217;ve been troubleshooting an email alerting problem on an EMGC 11.1 install on a client site.<br />
But this troubleshooting also includes setting up my own email server and reproducing the problem <a href="http://karlarao.tiddlyspot.com/#EmailNotificationsNotSending" target="_blank">http://karlarao.tiddlyspot.com/#EmailNotificationsNotSending</a><br />
Watching/digging on the EM web based interface is tedious so I devised a way to just mine on the MGMT views&#8230; thanks to the <strong>MOS 421499.1 EMDIAG REPVFY Kit</strong> &#8211; which is a good source for mining the EMGC repository. </p>
<p><span id="more-3042"></span></p>
<p>This simple query from the MGMT views will output something like this </p>
<p><pre class="brush: sql; wrap-lines: false;">

SELECT t.target_name, t.target_type,
       substr(s.message,1,50) , substr(l.message,1,11) emailed,
       TO_CHAR(s.load_timestamp,'DD-MON-YYYY HH24:MI:SS') loaded,
       s.severity_guid,
       TO_CHAR(a.timestamp,'DD-MON-YYYY HH24:MI:SS') annotated,
       TO_CHAR(l.timestamp,'DD-MON-YYYY HH24:MI:SS') logged
FROM    mgmt_severity s, mgmt_targets t, mgmt_annotation a, mgmt_notification_log l
WHERE   
       s.target_guid     = t.target_guid
  AND  s.severity_guid   = a.source_obj_guid (+)
  AND  s.severity_guid   = l.source_obj_guid (+)
  -- AND a.annotation_type = 'NOTIFICATION'
  -- AND lower(s.message) like '%tablespace%percent%'
  -- AND lower(t.target_name) like '%mta%'
  -- AND s.severity_guid = 'B33A7C7DF7A0293CE040460A22EA5E84'
ORDER BY s.load_timestamp desc;

</pre></p>
<p><a href="https://lh6.googleusercontent.com/-ivoGKnGeVHk/TzblTvmpFpI/AAAAAAAABYc/b2b-_05a96k/s2048/mining%2520emgc1.png"><img alt="" src="https://lh6.googleusercontent.com/-ivoGKnGeVHk/TzblTvmpFpI/AAAAAAAABYc/b2b-_05a96k/s2048/mining%2520emgc1.png" class="alignnone" width="1036" height="309" /></a></p>
<p>and with this data you can actually do filters.. lets say search for the tablespace alerts test cases that I created. This shows that it reached the metric threshold but it did not send the email because the &#8220;Emailed&#8221; column shows as as &#8220;null&#8221;</p>
<p><a href="https://lh4.googleusercontent.com/-4ulpcaAtqK0/TzblTrhHEyI/AAAAAAAABYY/9Xy16kF-cP4/s2048/mining%2520emgc2.png"><img alt="" src="https://lh4.googleusercontent.com/-4ulpcaAtqK0/TzblTrhHEyI/AAAAAAAABYY/9Xy16kF-cP4/s2048/mining%2520emgc2.png" class="alignnone" width="1058" height="537" /></a></p>
<p>another thing you can do is have a query that shows monthly count of tablespace alerts that were sent or not sent.. </p>
<p><pre class="brush: sql; wrap-lines: false;">

select count(*), TO_DATE(loaded,'MON') loaded, emailed from (
SELECT t.target_name, t.target_type,
       substr(s.message,1,20) , substr(l.message,1,11) emailed,
       TO_CHAR(s.load_timestamp,'MON') loaded,
       s.severity_guid,
       TO_CHAR(a.timestamp,'DD-MON-YYYY HH24:MI:SS') annotated,
       TO_CHAR(l.timestamp,'DD-MON-YYYY HH24:MI:SS') logged
FROM    mgmt_severity s, mgmt_targets t, mgmt_annotation a, mgmt_notification_log l
WHERE   
       s.target_guid     = t.target_guid
  AND  s.severity_guid   = a.source_obj_guid (+)
  AND  s.severity_guid   = l.source_obj_guid (+)
  AND  lower(s.message) like '%tablespace%percent%'
ORDER BY s.load_timestamp desc
)
group by loaded, emailed
order by loaded desc;


</pre></p>
<p><a href="https://lh3.googleusercontent.com/-kiwoiNRIgoc/TzblTyZ117I/AAAAAAAABYo/x4Kr1228Eq0/s2048/mining%2520emgc3.png"><img alt="" src="https://lh3.googleusercontent.com/-kiwoiNRIgoc/TzblTyZ117I/AAAAAAAABYo/x4Kr1228Eq0/s2048/mining%2520emgc3.png" class="alignnone" width="624" height="612" /></a></p>
<p>and for sure there&#8217;s much more things you can do with all of these filters </p>
<p>  &#8212; AND a.annotation_type = &#8216;NOTIFICATION&#8217;          <strong>&lt;&#8211; annotated as NOTIFICATION</strong><br />
  &#8212; AND lower(s.message) like &#8216;%tablespace%percent%&#8217;          <strong>&lt;&#8211; search string on the alert message</strong><br />
  &#8212; AND lower(t.target_name) like &#8216;%mta%&#8217;          <strong>&lt;&#8211; search string on the target name</strong><br />
  &#8212; AND s.severity_guid = &#8216;B33A7C7DF7A0293CE040460A22EA5E84&#8242;          <strong>&lt;&#8211; search the alert ID</strong></p>
<p>That&#8217;s it for now.. hope I&#8217;ve shared you some good stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/3042/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/3042/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=3042&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/5GVqZzz7TBU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/12/06/mining-emgc-notification-alerts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh6.googleusercontent.com/-ivoGKnGeVHk/TzblTvmpFpI/AAAAAAAABYc/b2b-_05a96k/s2048/mining%2520emgc1.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-4ulpcaAtqK0/TzblTrhHEyI/AAAAAAAABYY/9Xy16kF-cP4/s2048/mining%2520emgc2.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-kiwoiNRIgoc/TzblTyZ117I/AAAAAAAABYo/x4Kr1228Eq0/s2048/mining%2520emgc3.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/12/06/mining-emgc-notification-alerts/</feedburner:origLink></item>
		<item>
		<title>Oracle Database Appliance (ODA) Installation / Configuration</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/er4AIXafqDM/</link>
		<comments>http://karlarao.wordpress.com/2011/09/21/oracle-database-appliance-oda-installation-configuration/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 21:00:37 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[RAC]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2981</guid>
		<description><![CDATA[Earlier Oracle announced the Oracle Database Appliance which is a really cool RAC-in-a-box. And here at Enkitec office we are very lucky to get our hands dirty and play with this new beast On the photo below you will see the Oracle Database Appliance. Andy Colvin has some detailed reviews about the Oracle Database Appliance.. check out these links if you want to see the internals of the machine http://blog.oracle-ninja.com/2011/09/inside-the-oracle-database-appliance-part-1/ http://blog.oracle-ninja.com/2011/09/oracle-announces-oracle-database-appliance/ But this post will walk you through the installation and configuration of the Oracle Database Appliance.. well all I can say.. at the end <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/09/21/oracle-database-appliance-oda-installation-configuration/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2981&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Earlier Oracle announced the <a href="http://www.oracle.com/us/products/database/database-appliance/index.html" target="_blank">Oracle Database Appliance</a> which is a really cool <a href="http://oracle.com.edgesuite.net/producttours/3d/databaseappliance/" target="_blank">RAC-in-a-box</a>. And here at Enkitec office we are very lucky to get our hands dirty and play with this new beast <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  On the photo below you will see the <strong>Oracle Database Appliance</strong>.<br />
<a href="https://lh4.googleusercontent.com/-cg-O3axbrvE/Tnt_2CWIRUI/AAAAAAAABWA/XPReoRI43oE/s800/oda.jpg"><img class="aligncenter" src="https://lh4.googleusercontent.com/-cg-O3axbrvE/Tnt_2CWIRUI/AAAAAAAABWA/XPReoRI43oE/s800/oda.jpg" alt="" /></a></p>
<p><span id="more-2981"></span></p>
<p><a href="http://twitter.com/#!/acolvin" target="_blank">Andy Colvin</a> has some detailed reviews about the Oracle Database Appliance.. check out these links if you want to see the internals of the machine<br />
<a href="http://blog.oracle-ninja.com/2011/09/inside-the-oracle-database-appliance-part-1/" target="_blank">http://blog.oracle-ninja.com/2011/09/inside-the-oracle-database-appliance-part-1/</a><br />
<a href="http://blog.oracle-ninja.com/2011/09/oracle-announces-oracle-database-appliance/" target="_blank">http://blog.oracle-ninja.com/2011/09/oracle-announces-oracle-database-appliance/</a> </p>
<p>But this post will walk you through the installation and configuration of the Oracle Database Appliance.. well all I can say.. at the end of the ODA installation, all I had was <strong>8 screenshots</strong> and that’s it. Complete install of the Grid infrastructure, ASM diskgroups, RDBMS software, and a fully functional clustered database <strong>in just two hours</strong>. Compared to a similar recent RAC project, the installation alone required about <strong>80 screenshots</strong>.. and took a couple of days.. and involved multiple teams in the IT group. That’s the wonder of the super simplified installation using the Oracle Appliance Manager or the OAK Configurator which you will see below: </p>
<p><a href="https://lh4.googleusercontent.com/-W31YJbU1XZ4/Tno-kkYHQNI/AAAAAAAABVU/NW8bUtJioGk/oda1.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-W31YJbU1XZ4/Tno-kkYHQNI/AAAAAAAABVU/NW8bUtJioGk/s400/oda1.png" alt="" /></a></p>
<p><a href="https://lh4.googleusercontent.com/-4IQsMWm7V8o/Tno-k7Pa3pI/AAAAAAAABVc/C-PAcaiiEdI/oda2.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-4IQsMWm7V8o/Tno-k7Pa3pI/AAAAAAAABVc/C-PAcaiiEdI/s400/oda2.png" alt="" /></a></p>
<p><a href="https://lh3.googleusercontent.com/-ZLuJljUbacI/Tno-kr5uWDI/AAAAAAAABVQ/IbNkjI0t0R4/oda3.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-ZLuJljUbacI/Tno-kr5uWDI/AAAAAAAABVQ/IbNkjI0t0R4/s400/oda3.png" alt="" /></a></p>
<p><a href="https://lh5.googleusercontent.com/-n9zvggX5bK0/Tno-k-vL3LI/AAAAAAAABVY/i0j-LBGMtc4/oda4.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-n9zvggX5bK0/Tno-k-vL3LI/AAAAAAAABVY/i0j-LBGMtc4/s400/oda4.png" alt="" /></a></p>
<p><a href="https://lh5.googleusercontent.com/-K02TQFA_zLU/Tno-k7YzNNI/AAAAAAAABVs/PC_40f18M_Y/oda5.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-K02TQFA_zLU/Tno-k7YzNNI/AAAAAAAABVs/PC_40f18M_Y/s400/oda5.png" alt="" /></a></p>
<p><a href="https://lh5.googleusercontent.com/-UpnfS4ix35g/Tno-lBgWufI/AAAAAAAABVg/ipCXYY9SX5s/oda6.png"><img class="aligncenter" src="https://lh5.googleusercontent.com/-UpnfS4ix35g/Tno-lBgWufI/AAAAAAAABVg/ipCXYY9SX5s/s400/oda6.png" alt="" /></a></p>
<p><a href="https://lh4.googleusercontent.com/-xiuRD2kT2Y8/Tno-lD5hutI/AAAAAAAABVk/bEw7ydaFrVM/oda7.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-xiuRD2kT2Y8/Tno-lD5hutI/AAAAAAAABVk/bEw7ydaFrVM/s400/oda7.png" alt="" /></a></p>
<p><a href="https://lh4.googleusercontent.com/-Z0BdeCddjzE/Tno-lcvYYUI/AAAAAAAABVo/vujYDa_LxTM/oda8.png"><img class="aligncenter" src="https://lh4.googleusercontent.com/-Z0BdeCddjzE/Tno-lcvYYUI/AAAAAAAABVo/vujYDa_LxTM/s400/oda8.png" alt="" /></a></p>
<p>And again all of that took just <strong>2hours</strong> to have a <strong>2node RAC</strong>.. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p><a href="https://lh3.googleusercontent.com/-cAbXiaWmX5Y/Tno-nS__BuI/AAAAAAAABV4/CLDLxo0MSw0/oda_database.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/-cAbXiaWmX5Y/Tno-nS__BuI/AAAAAAAABV4/CLDLxo0MSw0/s400/oda_database.png" alt="" /></a></p>
<p>Hope I&#8217;ve shared you some good stuff .. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Keep posted for more ODA at <a href="http://www.enkitec.com/category/blogs/oracle/" target="_blank">Enkitec Blogs</a>! </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2981/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2981/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2981&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/er4AIXafqDM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/09/21/oracle-database-appliance-oda-installation-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/-cg-O3axbrvE/Tnt_2CWIRUI/AAAAAAAABWA/XPReoRI43oE/s800/oda.jpg" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-W31YJbU1XZ4/Tno-kkYHQNI/AAAAAAAABVU/NW8bUtJioGk/s400/oda1.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-4IQsMWm7V8o/Tno-k7Pa3pI/AAAAAAAABVc/C-PAcaiiEdI/s400/oda2.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-ZLuJljUbacI/Tno-kr5uWDI/AAAAAAAABVQ/IbNkjI0t0R4/s400/oda3.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-n9zvggX5bK0/Tno-k-vL3LI/AAAAAAAABVY/i0j-LBGMtc4/s400/oda4.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-K02TQFA_zLU/Tno-k7YzNNI/AAAAAAAABVs/PC_40f18M_Y/s400/oda5.png" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-UpnfS4ix35g/Tno-lBgWufI/AAAAAAAABVg/ipCXYY9SX5s/s400/oda6.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-xiuRD2kT2Y8/Tno-lD5hutI/AAAAAAAABVk/bEw7ydaFrVM/s400/oda7.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-Z0BdeCddjzE/Tno-lcvYYUI/AAAAAAAABVo/vujYDa_LxTM/s400/oda8.png" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-cAbXiaWmX5Y/Tno-nS__BuI/AAAAAAAABV4/CLDLxo0MSw0/s400/oda_database.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/09/21/oracle-database-appliance-oda-installation-configuration/</feedburner:origLink></item>
		<item>
		<title>VirtaThon – Mining the AWR</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/tqRewGzoZa4/</link>
		<comments>http://karlarao.wordpress.com/2011/07/18/virtathon-mining-the-awr/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 22:09:16 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2951</guid>
		<description><![CDATA[Earlier I did a presentation at VirtaThon which is the same topic that I presented at Hotsos 2011.. Mining the AWR and Capacity Planning are very dear to my heart and up until now I&#8217;m using every research I did on that presentation to work on an &#8220;Exadata Provisioning Tool&#8221; which I&#8217;m planning to present at the next Hotsos 2012&#8230; well, the only thing that&#8217;s different this time is.. my attendees are virtual geeks all over the world I was at the Virtual Room #100, and the staff earlier were really helpful and most of <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/07/18/virtathon-mining-the-awr/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2951&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Earlier I did a presentation at <a href="http://www.brainsurface.com/virtathon" target="_blank">VirtaThon</a> which is the same topic that I presented at <a href="http://karlarao.wordpress.com/2011/03/11/hotsos-2011-mining-the-awr-repository-for-capacity-planning-visualization-and-other-real-world-stuff/" target="_blank">Hotsos 2011</a>.. Mining the AWR and Capacity Planning are very dear to my heart and up until now I&#8217;m using every research I did on that presentation to work on an <a href="http://karlarao.tiddlyspot.com/#%5B%5BExadata%20Provisioning%20Worksheet%5D%5D" target="_blank">&#8220;Exadata Provisioning Tool&#8221;</a> which I&#8217;m planning to present at the next <a href="http://www.hotsos.com/sym12.html" target="_blank">Hotsos 2012</a>&#8230; well, the only thing that&#8217;s different this time is.. my attendees are virtual geeks all over the world <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-2951"></span></p>
<p><a href="http://www.brainsurface.com/virtathon" target="_blank"><img class="aligncenter" src="https://lh6.googleusercontent.com/-1uNXwtT7S_4/TiSoV7Rm4gI/AAAAAAAABVA/VzViSRbx-iU/virtathon.png" alt="" /></a></p>
<p>I was at the Virtual Room #100, and the staff earlier were really helpful and most of all I had fun doing that webinar.. and I get to &#8220;doodle&#8221; on a lot of my slides! </p>
<p>Overall, that was a fun first time experience <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="center"><a href="https://lh6.googleusercontent.com/-xUVn4gFt_Bw/TiSIxVe8tuI/AAAAAAAABUw/vu9gyc-l54A/Karlarao-VirtaThon.png"><img class="aligncenter" src="https://lh6.googleusercontent.com/-xUVn4gFt_Bw/TiSIxVe8tuI/AAAAAAAABUw/vu9gyc-l54A/s640/Karlarao-VirtaThon.png" alt="" /></a></td>
<td valign="center"><a href="https://lh4.googleusercontent.com/-Mrx93IO9ycI/TiSexPF_o2I/AAAAAAAABU0/1xMAq9goeqc/karlarao-VirtaThon-doodle.png"><img src="https://lh4.googleusercontent.com/-Mrx93IO9ycI/TiSexPF_o2I/AAAAAAAABU0/1xMAq9goeqc/s640/karlarao-VirtaThon-doodle.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Check out the presentation slides below and the scripts <a href="http://karlarao.wordpress.com/scripts-resources/" target="_blank">here</a>..</p>
<p>BTW, as per <a href="http://www.brainsurface.com/virtathon" target="_blank">Tariq Farooq</a>.. <strong>Everything is being recorded!</strong> and they will be &#8220;broken up&#8221; and uploaded within a week or so..  So I&#8217;ll be updating this post and include that recording once the video comes out <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="center">
<div id="__ss_8628876" style="width:425px;"><iframe src='http://www.slideshare.net/slideshow/embed_code/8628876' width='425' height='348' scrolling='no'></iframe></div>
</td>
</tr>
</tbody>
</table>
<p>Hope I&#8217;ve shared you some good stuff <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2951/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2951&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/tqRewGzoZa4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/07/18/virtathon-mining-the-awr/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh6.googleusercontent.com/-1uNXwtT7S_4/TiSoV7Rm4gI/AAAAAAAABVA/VzViSRbx-iU/virtathon.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-xUVn4gFt_Bw/TiSIxVe8tuI/AAAAAAAABUw/vu9gyc-l54A/s640/Karlarao-VirtaThon.png" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-Mrx93IO9ycI/TiSexPF_o2I/AAAAAAAABU0/1xMAq9goeqc/s640/karlarao-VirtaThon-doodle.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/07/18/virtathon-mining-the-awr/</feedburner:origLink></item>
		<item>
		<title>Enkitec University – Exadata Courses for Developers and DBAs</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/KooWwCNCQZ8/</link>
		<comments>http://karlarao.wordpress.com/2011/07/14/enkitec-university-exadata-courses-for-developers-and-dbas/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 00:38:30 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Exadata]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2825</guid>
		<description><![CDATA[It&#8217;s been a long time since my last blog and ever since I joined Enkitec I&#8217;ve been busy immersing myself in Exadata stuff. So most of the time I&#8217;m just posting my brain dumps on my wiki although I know there&#8217;s a lot of blog worthy scenarios and projects that I have worked on just like last week when we did an Exadata Half Rack X2-2 Split Configuration from the factory image without the use of Oracle&#8217;s ACS. We did all of the pre-config and config tasks like the onecommand, patched the database to 11.2.0.2 <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/07/14/enkitec-university-exadata-courses-for-developers-and-dbas/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2825&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a long time since my last blog and ever since I joined <a href="http://enkitec.com/" target="_blank">Enkitec</a> I&#8217;ve been busy immersing myself in Exadata stuff. So most of the time I&#8217;m just posting my brain dumps on my <a href="http://karlarao.wordpress.com/2010/04/10/my-personal-wiki-karlarao-tiddlyspot-com/" target="_blank">wiki</a> although I know there&#8217;s a lot of blog worthy scenarios and projects that I have worked on just like last week when we did an <strong>Exadata Half Rack X2-2 Split Configuration</strong> from the factory image without the use of Oracle&#8217;s ACS. We did all of the pre-config and config tasks like the onecommand, patched the database to 11.2.0.2 BP8, patched the cells to 11.2.2.3.2, and did all the post config tasks&#8230; all of these config are tailored according to the client&#8217;s needs and not the default template install/config done by Oracle&#8217;s ACS.  <a href="http://blog.oracle-ninja.com/" target="_blank">Andy Colvin</a> has a <a href="http://blog.oracle-ninja.com/2011/07/interesting-exadata-configuration/" target="_blank">blog post about it.</a> And while we were doing that config.. <a href="http://blog.enkitec.com/author/rjohnson/" target="_blank">Randy Johnson</a> and the rest of the team are already working on the provisioning and migration plan for the dev/qa and prod databases that will be consolidated. So that&#8217;s a pretty exciting end-to-end Exadata project <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-2825"></span></p>
<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<p>BTW, the Chapters 01 (What&#8217;s Exadata), 08 (Configuring Exadata), 14 (Disk Layout), 15 (Node Layout) of the <a href="http://www.amazon.com/Expert-Oracle-Exadata-Kerry-Osborne/dp/1430233923" target="_blank">Expert Oracle Exadata</a> will help you familiarize with the ins-and-outs of the Exadata configuration.
</td>
<td valign="top">
<a href="http://www.amazon.com/Expert-Oracle-Exadata-Kerry-Osborne/dp/1430233923" target="_blank"><img class="aligncenter" src="https://lh5.googleusercontent.com/-BR0tXFJxRRc/ThzF3oqSCZI/AAAAAAAABUI/PYRtt-7wDHs/s288/ExadataBook.png" alt="" /></a>
</td>
</tr>
</tbody>
</table>
<p>On the other hand I&#8217;ve been sitting in this interesting Exadata class for the past few days aimed for the Developers and DBAs. <a href="http://enkitec.com/" target="_blank">Enkitec</a> having a bunch of <strong>hands-on Exadata Experts</strong> created a course that focuses on optimizing the performance of Exadata and how to troubleshoot and write SQL to fully utilize the critical features and achieve the ultimate performance improvement.. This course is really a technical hands-on, it&#8217;s full of labs, test cases, and real world customer stories. And most of all the students get to play on Enkitec&#8217;s X2-2 and V2 environments sitting just across the classroom <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="https://lh6.googleusercontent.com/-lhEN7i9sfsw/ThzEFgorkFI/AAAAAAAABT8/sogx8sYpl8Q/EnkitecExadataHalfRack.JPG"><img class="aligncenter" src="https://lh6.googleusercontent.com/-lhEN7i9sfsw/ThzEFgorkFI/AAAAAAAABT8/sogx8sYpl8Q/s400/EnkitecExadataHalfRack.JPG" /></a></p>
<p><a href="http://www.amazon.com/Pro-Oracle-Application-Express-4/dp/1430234946/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1302878021&amp;sr=8-1" target="_blank">Tim Fox</a> and <a href="http://blog.enkitec.com/author/rhardee/" target="_blank">Randy Hardee</a> are the primary instructors for this class and they&#8217;ve got a solid Exadata background from troubleshooting and tuning, benchmarks, POCs, and both of them have been involved on most of the 25+ Exadata implementations. Plus <a href="http://kerryosborne.oracle-guy.com/" target="_blank">Kerry Osborne&#8217;s</a> office is just a few steps away so interesting discussions and questions are all welcome <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For the <strong>Summer/Fall 2011 Schedule</strong> and all of the details kindly visit this <a href="http://enkitec.com/education" target="_blank">website</a>. Also, <strong>by popular demand</strong>.. we will be putting up a class dedicated to Exadata Administration that will tackle the areas of provisioning/capacity planning/resource management, cell administration, backup and recovery, etc. </p>
<p>Below are some of the actions on the class:</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="center"><a href="https://lh4.googleusercontent.com/-qDHGJWfWVOA/Thvqrz_5P5I/AAAAAAAABTg/FFRoqCndJuI/EnkitecUniversity1.JPG"><img class="aligncenter" src="https://lh4.googleusercontent.com/-qDHGJWfWVOA/Thvqrz_5P5I/AAAAAAAABTg/FFRoqCndJuI/s400/EnkitecUniversity1.JPG" /></a></td>
<td valign="center"><a href="https://lh5.googleusercontent.com/-_0LZo6XibzQ/Thypt7PlanI/AAAAAAAABT4/Hv6O7C2_IF8/EnkitecUniversity4.JPG"><img src="https://lh5.googleusercontent.com/-_0LZo6XibzQ/Thypt7PlanI/AAAAAAAABT4/Hv6O7C2_IF8/s400/EnkitecUniversity4.JPG" /></a></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="center"><a href="https://lh4.googleusercontent.com/-I01NDzBsgWc/ThvqsKmUiXI/AAAAAAAABTk/xSJA__tDu2Y/EnkitecUniversity3.JPG"><img class="aligncenter" src="https://lh4.googleusercontent.com/-I01NDzBsgWc/ThvqsKmUiXI/AAAAAAAABTk/xSJA__tDu2Y/s400/EnkitecUniversity3.JPG" /></a></td>
<td valign="center"><a href="https://lh5.googleusercontent.com/-1iNi7t-my1g/Th3EkzuQJMI/AAAAAAAABUU/Bar0WNPRr80/EnkitecUniversity5.JPG"><img src="https://lh5.googleusercontent.com/-1iNi7t-my1g/Th3EkzuQJMI/AAAAAAAABUU/Bar0WNPRr80/s400/EnkitecUniversity5.JPG" /></a></td>
</tr>
</tbody>
</table>
<p>So keep posted for new stuff on this URL &#8211;&gt;<br />
<h2 style="text-align:center;"><a href="http://enkitec.com/education" target="_blank">http://enkitec.com/education</a></h2>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2825/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2825/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2825&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/KooWwCNCQZ8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/07/14/enkitec-university-exadata-courses-for-developers-and-dbas/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh5.googleusercontent.com/-BR0tXFJxRRc/ThzF3oqSCZI/AAAAAAAABUI/PYRtt-7wDHs/s288/ExadataBook.png" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/-lhEN7i9sfsw/ThzEFgorkFI/AAAAAAAABT8/sogx8sYpl8Q/s400/EnkitecExadataHalfRack.JPG" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-qDHGJWfWVOA/Thvqrz_5P5I/AAAAAAAABTg/FFRoqCndJuI/s400/EnkitecUniversity1.JPG" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-_0LZo6XibzQ/Thypt7PlanI/AAAAAAAABT4/Hv6O7C2_IF8/s400/EnkitecUniversity4.JPG" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/-I01NDzBsgWc/ThvqsKmUiXI/AAAAAAAABTk/xSJA__tDu2Y/s400/EnkitecUniversity3.JPG" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/-1iNi7t-my1g/Th3EkzuQJMI/AAAAAAAABUU/Bar0WNPRr80/s400/EnkitecUniversity5.JPG" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/07/14/enkitec-university-exadata-courses-for-developers-and-dbas/</feedburner:origLink></item>
		<item>
		<title>NoCOUG Journal – Ask the Oracle ACEs – Why is my database slow?</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/wLRtiVYJAtU/</link>
		<comments>http://karlarao.wordpress.com/2011/05/17/nocoug-journal-ask-the-oracle-aces-why-is-my-database-slow/#comments</comments>
		<pubDate>Tue, 17 May 2011 06:53:08 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2803</guid>
		<description><![CDATA[Dave Abercrombie mailed me earlier that the May 2011 NoCOUG Journal is already out and can be viewed online at http://www.nocoug.org/Journal/NoCOUG_Journal_201105.pdf. I met Dave at Hotsos 2011 when he attended my presentation.. apparently we have the same interest about Statistics, Linear Regression, AWR, AAS and he&#8217;s got awesome blogs about it at http://aberdave.blogspot.com. Also being the Journal Editor at Northern California Oracle Users&#8217;s Group, he invited me to write a short article about the question: Why is my database slow? The NoCOUG Journal having a very wide readership with the last issue being downloaded around 6000 times from more than 200 <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/05/17/nocoug-journal-ask-the-oracle-aces-why-is-my-database-slow/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2803&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Dave Abercrombie mailed me earlier that the May 2011 NoCOUG Journal is already out and can be viewed online at <a href="http://www.nocoug.org/Journal/NoCOUG_Journal_201105.pdf" target="_blank">http://www.nocoug.org/Journal/NoCOUG_Journal_201105.pdf</a>.</p>
<p><span id="more-2803"></span></p>
<p>I met Dave at Hotsos 2011 when he attended my <a href="http://karlarao.wordpress.com/2011/03/11/hotsos-2011-mining-the-awr-repository-for-capacity-planning-visualization-and-other-real-world-stuff/">presentation</a>.. apparently we have the same interest about Statistics, Linear Regression, AWR, AAS and he&#8217;s got awesome blogs about it at <a href="http://aberdave.blogspot.com/">http://aberdave.blogspot.com</a>. Also being the Journal Editor at Northern California Oracle Users&#8217;s Group, he invited me to write a short article about the question:</p>
<h2 style="text-align:center;"><span style="text-decoration:underline;color:#000000;"><strong>Why is my database slow?</strong></span></h2>
<p>The NoCOUG Journal having a very wide readership with the last issue being downloaded around 6000 times from more than 200 countries would be a really good venue to share my performance troubleshooting principle which works every time!</p>
<p>C&#8217;mon, click the link.. and turn to page 10  =)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2803/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2803&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/wLRtiVYJAtU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/05/17/nocoug-journal-ask-the-oracle-aces-why-is-my-database-slow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2011/05/17/nocoug-journal-ask-the-oracle-aces-why-is-my-database-slow/</feedburner:origLink></item>
		<item>
		<title>Oracle by Example portal now shows 12g</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/-mzZcI0GclA/</link>
		<comments>http://karlarao.wordpress.com/2011/03/23/oracle-by-example-portal-now-shows-12g/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 15:23:48 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OOW]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2798</guid>
		<description><![CDATA[A quick post&#8230; which is a bit interesting&#8230; As I was searching for Exadata viewlets in Oracle By Example portal (http://goo.gl/HjshR) I clicked on the &#8220;Advanced Search&#8221; and then filtered by Product Family (Database) and then by Product&#8230; to my surprise there was an option for &#8220;Database 12g&#8221;&#8230;. oh well.. I checked on the Lifetime Support Policy (http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf) and looking at the release dates it could be possible that they will release the new version anytime this year.. could be in Oracle Open World 2011? hmmm&#8230; &#160; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2798&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A quick post&#8230; which is a bit interesting&#8230;</p>
<p>As I was searching for <strong>Exadata </strong>viewlets in <strong>Oracle By Example portal </strong>(<a href="http://goo.gl/HjshR" target="_blank">http://goo.gl/HjshR</a>) I clicked on the &#8220;Advanced Search&#8221;</p>
<p><span id="more-2798"></span></p>
<p>and then filtered by <strong>Product Family (Database)</strong> and then by <strong>Product</strong>&#8230;</p>
<p>to my surprise there was an option for <strong>&#8220;Database 12g&#8221;</strong>&#8230;.</p>
<p><a href="https://lh3.googleusercontent.com/_F2x5WXOJ6Q8/TYoNUyLtD_I/AAAAAAAABIQ/0iVypyj4zFc/12g.png"><img class="aligncenter" src="https://lh3.googleusercontent.com/_F2x5WXOJ6Q8/TYoNUyLtD_I/AAAAAAAABIQ/0iVypyj4zFc/s288/12g.png" alt="" /></a></p>
<p>oh well.. I checked on the<strong> Lifetime Support Policy</strong> (<a href="http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf" target="_blank">http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf</a>) and looking at the release dates<br />
it could be possible that they will release the new version anytime this year..</p>
<p>could be in <a href="http://www.oracle.com/us/openworld/registration-173440.html" target="_blank">Oracle Open World 2011</a>? hmmm&#8230; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2798/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2798/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2798&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/-mzZcI0GclA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/03/23/oracle-by-example-portal-now-shows-12g/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh3.googleusercontent.com/_F2x5WXOJ6Q8/TYoNUyLtD_I/AAAAAAAABIQ/0iVypyj4zFc/s288/12g.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/03/23/oracle-by-example-portal-now-shows-12g/</feedburner:origLink></item>
		<item>
		<title>Hotsos 2011 – Mining the AWR Repository for Capacity Planning, Visualization, and other Real World Stuff</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/cmlxkuN71v0/</link>
		<comments>http://karlarao.wordpress.com/2011/03/11/hotsos-2011-mining-the-awr-repository-for-capacity-planning-visualization-and-other-real-world-stuff/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 13:20:24 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2748</guid>
		<description><![CDATA[For all that loves Oracle performance.. Hotsos is truly the best conference, all the speakers are performance geeks, all the attendees talks about performance. Everything is about performance! There are lot more stuff that I like about my first Hotsos experience, the following are some of them.. I like that presenters and attendees are curious about what each performance geek has to say.. I like that whenever their brains are already fried. They consume as much coffee/soda as they can.. and just lay their butts on this couch.. and still.. talk about performance. I like that after all <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/03/11/hotsos-2011-mining-the-awr-repository-for-capacity-planning-visualization-and-other-real-world-stuff/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2748&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>For all that loves Oracle performance.. <strong>Hotsos </strong>is truly the best conference, all the speakers are performance geeks, all the attendees talks about performance. Everything is about performance! There are lot more stuff that I like about my <strong>first </strong>Hotsos experience, the following are some of them..</p>
<p>I like that presenters and attendees are curious about what each performance geek has to say..</p>
<p><span id="more-2748"></span></p>
<p><a href="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXoH89ras4I/AAAAAAAABGw/Uvd9PpJmMdk/hotsos-listen.JPG"><img class="aligncenter" src="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXoH89ras4I/AAAAAAAABGw/Uvd9PpJmMdk/s400/hotsos-listen.JPG" alt="" /></a></p>
<p>I like that whenever their brains are already fried. They consume as much coffee/soda as they can.. and just lay their butts on this couch.. and still.. talk about performance.</p>
<p><a href="https://lh6.googleusercontent.com/_F2x5WXOJ6Q8/TXoH-UeKtVI/AAAAAAAABG0/vDhGtyXEpVw/hotsos-relax.JPG"><img class="aligncenter" src="https://lh6.googleusercontent.com/_F2x5WXOJ6Q8/TXoH-UeKtVI/AAAAAAAABG0/vDhGtyXEpVw/s400/hotsos-relax.JPG" alt="" /></a></p>
<p>I like that after all the sessions, they will head straight to the hotel&#8217;s bar.. drink beer.. and still.. talk about performance.</p>
<p><a href="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXoH3JThIMI/AAAAAAAABGo/rTo6ie4ztBc/hotsos-beer.JPG"><img class="aligncenter" src="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXoH3JThIMI/AAAAAAAABGo/rTo6ie4ztBc/s400/hotsos-beer.JPG" alt="" /></a></p>
<p>I like that you can get yourself into healthy debates, validate each other&#8217;s methods and work, and also possible to collaborate with some other geeks doing the same research.</p>
<p><a href="https://lh5.googleusercontent.com/_F2x5WXOJ6Q8/TXoH31S3UAI/AAAAAAAABGs/FgTsJJW1Xkc/hotsos-collaborate.JPG"><img class="aligncenter" src="https://lh5.googleusercontent.com/_F2x5WXOJ6Q8/TXoH31S3UAI/AAAAAAAABGs/FgTsJJW1Xkc/s288/hotsos-collaborate.JPG" alt="" /></a></p>
<p>I like that I had a blast on my presentation.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I like that I got a good number of attendees, good feedback, and good questions..</p>
<p>Below is the presentation slides BTW..</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="center"><a href="https://lh6.googleusercontent.com/_F2x5WXOJ6Q8/TXnZEMTkwUI/AAAAAAAABFs/fp8og5lRbfw/hotsos%202011.JPG"><img src="https://lh6.googleusercontent.com/_F2x5WXOJ6Q8/TXnZEMTkwUI/AAAAAAAABFs/fp8og5lRbfw/s288/hotsos%202011.JPG" alt="" /></a></td>
<td valign="center"><iframe src='http://www.slideshare.net/slideshow/embed_code/7227291' width='978' height='801'></iframe></td>
</tr>
</tbody>
</table>
<p>and below are the daily updates of the conference</p>
<p><strong>Day1</strong> <a href="http://goo.gl/H9rJ9" target="_blank">http://goo.gl/H9rJ9</a></p>
<p><strong>Day2</strong> <a href="http://goo.gl/wLh4H" target="_blank">http://goo.gl/wLh4H</a></p>
<p><strong>Day3</strong> <a href="http://goo.gl/l74C8" target="_blank">http://goo.gl/l74C8</a></p>
<p><strong>Training Day</strong> <a href="http://goo.gl/cTXZq" target="_blank">http://goo.gl/cTXZq</a></p>
<p>&nbsp;</p>
<p>So.. Definitely I&#8217;ll come back, and.. I&#8217;ll try to make a good research every a year, so I can go again <strong>for free!</strong> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXnZ5RpBMUI/AAAAAAAABF4/ZbvPyJ6YBnA/Hotsos2011KarlArao.JPG"><img class="aligncenter" src="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXnZ5RpBMUI/AAAAAAAABF4/ZbvPyJ6YBnA/s400/Hotsos2011KarlArao.JPG" alt="" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2748/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2748/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2748&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/cmlxkuN71v0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/03/11/hotsos-2011-mining-the-awr-repository-for-capacity-planning-visualization-and-other-real-world-stuff/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXoH89ras4I/AAAAAAAABGw/Uvd9PpJmMdk/s400/hotsos-listen.JPG" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/_F2x5WXOJ6Q8/TXoH-UeKtVI/AAAAAAAABG0/vDhGtyXEpVw/s400/hotsos-relax.JPG" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXoH3JThIMI/AAAAAAAABGo/rTo6ie4ztBc/s400/hotsos-beer.JPG" medium="image" />

		<media:content url="https://lh5.googleusercontent.com/_F2x5WXOJ6Q8/TXoH31S3UAI/AAAAAAAABGs/FgTsJJW1Xkc/s288/hotsos-collaborate.JPG" medium="image" />

		<media:content url="https://lh6.googleusercontent.com/_F2x5WXOJ6Q8/TXnZEMTkwUI/AAAAAAAABFs/fp8og5lRbfw/s288/hotsos%202011.JPG" medium="image" />

		<media:content url="https://lh4.googleusercontent.com/_F2x5WXOJ6Q8/TXnZ5RpBMUI/AAAAAAAABF4/ZbvPyJ6YBnA/s400/Hotsos2011KarlArao.JPG" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/03/11/hotsos-2011-mining-the-awr-repository-for-capacity-planning-visualization-and-other-real-world-stuff/</feedburner:origLink></item>
		<item>
		<title>Migrating your VMs from VMware to VirtualBox (on a Netbook)</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/IGYNfQ9G_zQ/</link>
		<comments>http://karlarao.wordpress.com/2011/01/30/migrating-your-vms-from-vmware-to-virtualbox-on-a-netbook/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 15:55:17 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2725</guid>
		<description><![CDATA[I recently bought a Toshiba nb305-n600 10.1&#8243; netbook with Windows 7 Starter (32bit) on Atom n550, 250GB 5400 rpm disk, &#38; 2GB of physical memory.&#160; Well this netbook has thrice the battery life (or more) and half the weight of my old laptop so I must say it&#8217;s really good for everyday use! But as a DBA, I would be happier if I can run my VMware VMs on this lightweight lappie! So coming from a 15&#8243; laptop on Fedora OS, I&#8217;ve already installed the tools and all the software I need to be productive <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2011/01/30/migrating-your-vms-from-vmware-to-virtualbox-on-a-netbook/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2725&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
I recently bought a Toshiba nb305-n600 10.1&#8243; netbook with Windows 7 Starter (32bit) on Atom n550, 250GB 5400 rpm disk, &amp; 2GB of physical memory.&nbsp;</p>
<p>Well this netbook has thrice the battery life (or more) and half the weight of my old laptop <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  so I must say it&#8217;s really good for everyday use!</p>
<p>But as a DBA, I would be happier if I can run my VMware VMs on this lightweight lappie!</p>
<p><span id="more-2725"></span></p>
<p>So coming from a 15&#8243; laptop on Fedora OS, I&#8217;ve already installed the tools and all the software I need to be productive on this new machine. And then I&#8217;ve copied the VMware files.. then the last to be installed was the VMWare Server 2.0..</td>
<td valign="top"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TUWAFI0RJLI/AAAAAAAABB4/BDe3VTcEFM8/NB305_Netbook.jpg"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TUWAFI0RJLI/AAAAAAAABB4/BDe3VTcEFM8/s288/NB305_Netbook.jpg" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>the installation went fine. But it took too long and I already had a feeling I&#8217;ll encounter performance issues when I start to boot even just one VM. And yes I was correct. Even a Windows XP VM won&#8217;t boot. It was just not working&#8230; that made me worry if the <a href="http://ark.intel.com/Product.aspx?id=50154" target="_blank">Atom n550</a> can&#8217;t just handle the virtualization. Or VMware (and its slow web console) was just not right&#8230;</p>
<h2><span style="color:#800000;">Presenting Virtual Box</span></h2>
<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
So I was already looking for an <a href="http://www.slideshare.net/karlarao/devcon-virtualization" target="_blank">alternative virtualization software</a>, but it would be nice if I don&#8217;t have to build my VMs from scratch.. because it will just take a lot of effort and time to do that. It would be nice if it can instantly read the same VMDK files without much modification (especially on networking/shared storage) and it should be less hassle making it work.&nbsp;</p>
<p>Well.. Virtual Box seems to be what I need! It supports the following:<br />
- <strong>VMDK files</strong> <a href="http://ark.intel.com/Product.aspx?id=50154" target="_blank">http://www.virtualbox.org/manual/ch05.html#vdidetails</a><br />
- <strong>Shareable hard disks for RAC</strong> <a href="http://ark.intel.com/Product.aspx?id=50154" target="_blank">http://www.virtualbox.org/manual/ch05.html#hdimagewrites</a><br />
- <strong>NAT networking</strong> <a href="http://ark.intel.com/Product.aspx?id=50154" target="_blank">http://www.virtualbox.org/manual/ch06.html</a></p>
<p>After skimming through the documentation and accumulating some web links <a href="http://karlarao.tiddlyspot.com/#VirtualBox" target="_blank">http://karlarao.tiddlyspot.com/#VirtualBox</a> I&#8217;ve installed the Virtual Box, the installation was way faster than VMware and I really like the lightweight interface <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </td>
<td valign="top"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TUWQ-vu7xlI/AAAAAAAABB8/T1m7bJNTH1Y/VirtualBoxLogo.png"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TUWQ-vu7xlI/AAAAAAAABB8/T1m7bJNTH1Y/VirtualBoxLogo.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>The next sections will walk you through on how to make use of your existing VMware VMs on Virtual Box.</p>
<p>Just click on them to redirect you to the Wiki page&#8230; </p>
<p><a href="http://karlarao.tiddlyspot.com/#VMwareToVbox-SingleInstance" target="_blank"><br />
<h2><span style="color:#800000;">VMware to Virtual Box &#8211; Single Instance Database on Linux</span></h2>
<p></a></p>
<p><a href="http://karlarao.tiddlyspot.com/#VMwareToVbox-RAC" target="_blank"><br />
<h2><span style="color:#800000;">VMware to Virtual Box &#8211; RAC on Linux</span></h2>
<p></a></p>
<p><a href="http://karlarao.tiddlyspot.com/#VMwareToVbox-WindowsXP" target="_blank"><br />
<h2><span style="color:#800000;">VMware to Virtual Box &#8211; Windows XP</span></h2>
<p></a></p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
I can say.. VirtualBox is way faster than VMware on my netbook. I can even run two (2) node RAC! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TUb_y_N4YMI/AAAAAAAABDc/DauSeHoEl3E/RAConVirtualBox.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TUb_y_N4YMI/AAAAAAAABDc/DauSeHoEl3E/s640/RAConVirtualBox.png" alt="" /></a></p>
<p>I love VirtualBox.<br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2725/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2725/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2725&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/IGYNfQ9G_zQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2011/01/30/migrating-your-vms-from-vmware-to-virtualbox-on-a-netbook/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TUWAFI0RJLI/AAAAAAAABB4/BDe3VTcEFM8/s288/NB305_Netbook.jpg" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TUWQ-vu7xlI/AAAAAAAABB8/T1m7bJNTH1Y/VirtualBoxLogo.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TUb_y_N4YMI/AAAAAAAABDc/DauSeHoEl3E/s640/RAConVirtualBox.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2011/01/30/migrating-your-vms-from-vmware-to-virtualbox-on-a-netbook/</feedburner:origLink></item>
		<item>
		<title>Wheeew, I am now a RedHat Certified Engineer!</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/wC4O08A2XWY/</link>
		<comments>http://karlarao.wordpress.com/2010/12/21/wheeew-i-am-now-a-redhat-certified-engineer/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 18:23:49 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2669</guid>
		<description><![CDATA[A couple of weeks ago, RedHat announced the general availability of RHEL6&#8230; also effective on this release is the change on their certification offering. RHCT will now be replaced by RHCSA (Red Hat Certified System Administrator), and if you would like to be RHCE on RHEL6 regardless of your certification on RHEL5 you still have to go through the RHCSA exam.. and then once you pass.. you are then allowed to take RHCE exam for RHEL6. More details here: RHCSA, RHCE Since my self study modules/materials are on RHEL5, and it would take a while <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/12/21/wheeew-i-am-now-a-redhat-certified-engineer/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2669&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A couple of weeks ago, RedHat announced the general availability of RHEL6&#8230; also effective on this release is the change on their certification offering. RHCT will now be replaced by RHCSA (Red Hat Certified System Administrator), and if you would like to be RHCE on RHEL6 regardless of your certification on RHEL5 you still have to go through the RHCSA exam.. and then once you pass.. you are then allowed to take RHCE exam for RHEL6. More details here: <a href="https://www.redhat.com/certification/rhcsa/objectives/" target="_blank">RHCSA</a>, <a href="https://www.redhat.com/certification/rhce/objectives/" target="_blank">RHCE</a></p>
<p>Since my self study modules/materials are on RHEL5, and it would take a while for the RHEL6 exam to come out and of course to review on that version.. and it&#8217;s really one of my personal goals to be RHCE asap! why not just take the RHEL5 RHCE? so I inquired, the exam center said the last RHCE exam for RHEL5 would be this December. So immediately I reserved and paid for my slot (yeah my own money!).</p>
<p><span id="more-2669"></span></p>
<p>I had 1 month to prepare to read all the books, references, take notes, do experimentations, and simulate some critical exam scenarios. The catch is I have to do all of these on top of work time.. so I&#8217;ve got other stuffs to do like being engaged on pre-sales activities, creating work plans, doing some storage migration, doing performance tuning reports, attending a Golden Gate training, to name a few.. plus I got sick for 1 week, then here goes the Christmas parties which is too bad that I have to avoid all the fun and alcohol because of the much needed brain cellzzz.. Then even on the night before the exam I was cramming too much to make the email services work on my test environment. So yeah the preparation was a wild ride and I had lots of sleepless nights making sure that I&#8217;ll be able to do/simulate what I learn in theory. </p>
<p>Last December 18 I took the RHCE (it&#8217;s a hands-on performance based/situational exam).. I was really confident on the exam proper up to the finishing touches on my exam machine. When I came out of the exam center I really felt relieved because all the sacrifices are over! </p>
<p>After waiting for 3 days for the results.. I&#8217;m happy to be tweeting this</p>
<p><strong>Wheeew whatta relief, I am now a RedHat Certified Engineer! the exam was challenging, all the sleepless nights paid off http://goo.gl/Qpd7Z</strong></p>
<p><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TRCGh6CWQlI/AAAAAAAAA_A/mRfupTNXdRo/RHCElogo.jpg" /></p>
<p>What&#8217;s even more surprising for me is when I was browsing on <a href="http://www.facebook.com/pages/Red-Hat-Certified-Engineer-Philippines/196589610213" target="_blank">Red Hat Certified Engineer &#8211; Philippines</a> Facebook page, I noticed that the last recorded RHCE passer (announcement) was last March 20, 2010.. cool <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  hmm but I still have to verify this..</p>
<p>Thanks for all the congratulations, and to my loved ones, family, friends who supported and helped me <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I love you all!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2669/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2669&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/wC4O08A2XWY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/12/21/wheeew-i-am-now-a-redhat-certified-engineer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TRCGh6CWQlI/AAAAAAAAA_A/mRfupTNXdRo/RHCElogo.jpg" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/12/21/wheeew-i-am-now-a-redhat-certified-engineer/</feedburner:origLink></item>
		<item>
		<title>I’ll be speaking at HOTSOS 2011!</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/-hMokEMf3O8/</link>
		<comments>http://karlarao.wordpress.com/2010/11/07/ill-be-speaking-at-hotsos-2011/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 05:27:21 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Hotsos]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2630</guid>
		<description><![CDATA[Hotsos is an annual conference that is devoted on Oracle system performance and the people presenting there are really passionate about their research and highly specialized about their subject area. Kinda geeky, but hey, performance is never boring.. and for me there&#8217;s still a lot of things to learn on each of the areas of performance and these are as follows:&#160; Application Testing Benchmark Capacity Planning Database Tuning Hardware and OS Performance Tools SQL Tuning Troubleshooting &#38; Internals Yesterday, I received an email that I have been accepted as a presenter for Hotsos 2011 this <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/11/07/ill-be-speaking-at-hotsos-2011/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2630&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top">Hotsos is an annual conference that is devoted on Oracle system performance and the people presenting there are really passionate about their research and highly specialized about their subject area. Kinda geeky, but hey, performance is never boring.. and for me there&#8217;s still a lot of things to learn on each of the <a href="http://karlarao.tiddlyspot.com/#OraclePerformance" target="_blank">areas of performance</a> and these are as follows:&nbsp;</p>
<ul>
<li><strong>Application Testing</strong></li>
<li><strong>Benchmark</strong></li>
<li><strong>Capacity Planning</strong></li>
<li><strong>Database Tuning</strong></li>
<li><strong>Hardware and OS</strong></li>
<li><strong>Performance Tools</strong></li>
<li><strong>SQL Tuning</strong></li>
<li><strong>Troubleshooting &amp; Internals</strong></li>
</ul>
</td>
<td valign="top"><a href="http://www.hotsos.com/sym11/sym_reg.html"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TNX5hvHxh5I/AAAAAAAAA8s/zOC_ymwsaRc/hotsoslogo2011.jpg" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Yesterday, I received an email that I have been accepted as a presenter for Hotsos 2011 <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  this is really cool .. !</p>
<p><span id="more-2630"></span></p>
<p>My presentation title is <a href="http://www.hotsos.com/sym11/sym_speakers_arao.html" target="_blank">Mining the AWR Repository for Capacity Planning, Visualization, and Other Real World Stuff</a></p>
<p>I&#8217;ve been researching about the area of Capacity Planning and Mining the AWR for quite a while. And I was able to create some useful scripts along the way plus I was able to present the idea on the recent Oracle Open World Unconference and Oracle Closed World, and I had very good feedback. So I&#8217;ll be sharing this again and some other things as I go on with my research but this time to a larger geeky audience.</p>
<p>Also it&#8217;s really good to know that the following speakers will also talk about how to make better use of the AWR repository.. I just wish any of these sessions will not conflict with my speaking slot so I could watch all of them</p>
<p>Dan Fink &#8211; <a href="http://www.hotsos.com/sym11/sym_speakers_fink.html" target="_blank">Variance Analysis, Profiling and Trending Using ASH and AWR Data</a><br />
Henry Poras &#8211; <a href="http://www.hotsos.com/sym11/sym_speakers_poras.html" target="_blank">Determining Resource Utilization and Saturation Limits in a Multi-User, Mixed Workload Environment</a><br />
Tim Gorman &#8211; <a href="http://www.hotsos.com/sym11/sym_speakers_gorman.html" target="_blank">Forensic Analysis using AWR and ASH</a><br />
Wolfgang Breitling &#8211; <a href="http://www.hotsos.com/sym11/sym_speakers_breitling.html" target="_blank">Time Series Analysis Techniques for Statspack and AWR</a></p>
<p><a href="http://www.hotsos.com"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TNX5hme1WSI/AAAAAAAAA8o/6osKSSnMNak/s800/hotsosheader.gif" alt="" /></a></p>
<p>So that&#8217;s all about it.. that really made my day.. I&#8217;m really happy and excited about this conference.. I submitted my abstract super late already but still it was chosen. Cool! </p>
<p>BTW.. as a speaker I&#8217;m entitled to attend the training day of <a href="http://karenmorton.blogspot.com" target="_blank">Karen Morton</a> for <strong>free</strong> and the topic is <a href="http://www.hotsos.com/sym11/sym_training.html" target="_blank">Managing SQL Performance &#8211; Practical Information and Tools for Writing and Maintaining Optimally Performing SQL</a></p>
<p>And the <a href="http://goo.gl/Ptx9u" target="_blank">party must be fun</a>! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>&#8230; Dallas here I come!!!<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2630&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/-hMokEMf3O8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/11/07/ill-be-speaking-at-hotsos-2011/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TNX5hvHxh5I/AAAAAAAAA8s/zOC_ymwsaRc/hotsoslogo2011.jpg" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TNX5hme1WSI/AAAAAAAAA8o/6osKSSnMNak/s800/hotsosheader.gif" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/11/07/ill-be-speaking-at-hotsos-2011/</feedburner:origLink></item>
		<item>
		<title>After OOW, my laptop broke down – data rescue scenario</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/8ehkxNlZsfk/</link>
		<comments>http://karlarao.wordpress.com/2010/10/07/after-oow-my-laptop-broke-down-data-rescue-scenario/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 23:44:07 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2563</guid>
		<description><![CDATA[I just got back in the office from a 2 week conference + vacation (SFO,WAS,NY). Then I was finally back in shape to work and do the usual geek stuff again but suddenly my Neo laptop suddenly stopped working! (the one I mentioned here, but it&#8217;s now on Fedora) It can&#8217;t even boot to BIOS, certainly a case worse than BSOD. So after fiddling with the laptop and systematically ruling out other component failures (power cable,monitor,memory,HD), Yes it&#8217;s much like troubleshooting an Oracle database! &#8230; we decided to bring it to the service center. But <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/10/07/after-oow-my-laptop-broke-down-data-rescue-scenario/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2563&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I just got back in the office from a 2 week conference + vacation (SFO,WAS,NY). Then I was finally back in shape to work and do the usual geek stuff again but suddenly my Neo laptop suddenly stopped working! (<a href="http://karlarao.wordpress.com/2009/01/03/migrate-from-windows-xp-64bit-to-ubuntu-intrepid-ibex-810-64bit" target="_blank">the one I mentioned here</a>, but it&#8217;s now on Fedora)</p>
<p>It can&#8217;t even boot to BIOS, certainly a case worse than <a href="http://en.wikipedia.org/wiki/Blue_Screen_of_Death" target="_blank">BSOD</a>.</p>
<p><span id="more-2563"></span></p>
<p>So after fiddling with the laptop and <strong>systematically ruling out other component failures</strong> (power cable,monitor,memory,HD), Yes it&#8217;s much like troubleshooting an Oracle database! &#8230; we decided to bring it to the service center.</p>
<p>But wait! it may take too long to repair the machine &amp; my precious data (wiki,photos,research,downloads,VMs,scripts) is still on the 2.5 hard disk.. So I pulled the disk, then I bought first a sata enclosure at <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Park+Square,+Makati+City,+Metro+Manila,+Philippines&amp;sll=37.0625,-95.677068&amp;sspn=40.86791,79.013672&amp;ie=UTF8&amp;hq=&amp;hnear=Park+Square+Dr,+Makati+City,+Metro+Manila,+Philippines&amp;ll=14.551144,121.022086&amp;spn=0.012233,0.01929&amp;z=16" target="_blank">Park Square</a>, now I can plug the disk to another machine (Linux box) so I can get my data. Apparently the only available at that time was my R&amp;D server running on RHEL5.4 64bit.</p>
<p>But I had a problem&#8230; all of my data is on <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)" target="_blank">LVM</a> (logical volume) with a VG (volume group) name &#8220;vgsystem&#8221; that has the same name as my VG on the R&amp;D server. So a <strong>pvscan</strong> errors with a <strong>&#8220;WARNING: Duplicate VG name&#8221;</strong></p>
<p>So I had to rename first the &#8220;vgsystem&#8221; VG on the R&amp;D server to &#8220;vgsystem1&#8243; before I can activate the VG on my 2.5HD.</p>
<p>BTW, I had the following LVs (Logical Volumes) on the R&amp;D server so I need to <strong>unmount</strong> them all first to be able to rename to &#8220;vgsystem1&#8243;</p>
<p><pre class="brush: plain; highlight: [13]; wrap-lines: false;">
[root@beast dev]# ls -l /dev/vgsystem
total 0
lrwxrwxrwx 1 root root 28 Oct  7 14:21 lvhome -&gt; /dev/mapper/vgsystem-lvhome
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvtmp -&gt; /dev/mapper/vgsystem-lvtmp
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvu01 -&gt; /dev/mapper/vgsystem-lvu01
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvusr -&gt; /dev/mapper/vgsystem-lvusr
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvvar -&gt; /dev/mapper/vgsystem-lvvar
</pre></p>
<h3><span style="color:#800000;">Here are the steps I did to rename the &#8220;vgsystem&#8221; to &#8220;vgsystem1&#8243;</span></h3>
<p><strong>1)</strong> Edit the /etc/fstab entries of the LVs, comment on them so they will not be detected on boot. Anyway my root is on a separate ext3 partition and I&#8217;ll be doing the rename on runlevel1 so it&#8217;s all good. <strong>But here&#8217;s the catch</strong>, since I will be unmounting the <strong>/usr filesystem</strong> the binaries used for the VG rename (<strong>/usr/sbin/vgchange, /usr/sbin/vgrename</strong>) is not available so I must use of the <strong>/sbin/lvm.static</strong> (part of LVM tools) for the rename operation<br />
<strong>2)</strong> Reboot the server, enter runlevel1<br />
<strong>3)</strong> Execute the commands<br />
<strong># /sbin/lvm.static help</strong><br />
<strong># /sbin/lvm.static vgchange -an</strong><br />
<strong>4)</strong> Execute the command<br />
<strong># /sbin/lvm.static vgrename vgsystem vgsystem1</strong><br />
<strong>5)</strong> Execute the command<br />
<strong># /sbin/lvm.static vgchange -ay</strong><br />
<strong>6)</strong> Edit the /etc/fstab, uncomment the LVs then replace the entries of vgsystem to vgsystem1<br />
<strong>7)</strong> Reboot, enter runlevel5</p>
<h3><span style="color:#800000;">Now let&#8217;s mount the 2.5HD and get the data!</span></h3>
<p>1) Scan all PVs (physical volume), notice the vgsystem (from my 2.5HD) and vgsystem1 (from my R&amp;D server)<br />
<pre class="brush: plain; highlight: [2,3]; wrap-lines: false;">
[root@beast ~]# pvscan
  PV /dev/sdf3    VG vgsystem    lvm2 [146.80 GB / 0    free]
  PV /dev/sda5    VG vgsystem1   lvm2 [99.97 GB / 0    free]
  PV /dev/sda6    VG vgsystem1   lvm2 [99.97 GB / 0    free]
  PV /dev/sda10   VG vgsystem1   lvm2 [95.34 GB / 0    free]
  PV /dev/sda11   VG vgsystem1   lvm2 [95.34 GB / 0    free]
  PV /dev/sda12   VG vgsystem1   lvm2 [95.34 GB / 0    free]
  Total: 6 [632.77 GB] / in use: 6 [632.77 GB] / in no VG: 0 [0   ]
</pre></p>
<p>2) Activate the Logical Volume on the 2.5HD<br />
<pre class="brush: plain; highlight: [13]; wrap-lines: false;">
[root@beast ~]# lvchange -ay vgsystem
</pre></p>
<p>3) Check on the PVs, notice that we both have PVs from vgsystem and vgsystem1<br />
<pre class="brush: plain; highlight: [4,15]; wrap-lines: false;">
[root@beast ~]# pvdisplay 
  --- Physical volume ---
  PV Name               /dev/sdf3
  VG Name               vgsystem
  PV Size               146.80 GB / not usable 3.31 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              37581
  Free PE               0
  Allocated PE          37581
  PV UUID               Ut6sSm-uCXd-h1Mi-402u-3QoU-IQQQ-wgOljt
   
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               vgsystem1
  PV Size               100.00 GB / not usable 30.66 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3199
  Free PE               0
  Allocated PE          3199
  PV UUID               eMdH4e-POuO-0tDy-LWVs-8lnW-oF0N-ikPxGJ
   
  --- Physical volume ---
  PV Name               /dev/sda6
  VG Name               vgsystem1
  PV Size               100.00 GB / not usable 30.66 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3199
  Free PE               0
  Allocated PE          3199
  PV UUID               ia3nKZ-Ldyr-3zmz-OD2d-Es9P-lzDm-rfrhuz
   
  --- Physical volume ---
  PV Name               /dev/sda10
  VG Name               vgsystem1
  PV Size               95.37 GB / not usable 28.74 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3051
  Free PE               0
  Allocated PE          3051
  PV UUID               rgeD2t-TLEh-DRWn-hdiC-5Sio-pczW-st19Yg
   
  --- Physical volume ---
  PV Name               /dev/sda11
  VG Name               vgsystem1
  PV Size               95.37 GB / not usable 28.74 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3051
  Free PE               0
  Allocated PE          3051
  PV UUID               S2wtrJ-Bw60-VcCo-eE9X-QopS-bac2-3REU9c
   
  --- Physical volume ---
  PV Name               /dev/sda12
  VG Name               vgsystem1
  PV Size               95.37 GB / not usable 28.74 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              3051
  Free PE               0
  Allocated PE          3051
  PV UUID               VeBQCq-06XK-02lI-3gP5-nuRw-D0n1-RSdNO4
</pre></p>
<p>4) Check on the VGs, notice that we both have VGs from vgsystem and vgsystem1<br />
<pre class="brush: plain; highlight: [3,24]; wrap-lines: false;">
[root@beast ~]# vgdisplay 
  --- Volume group ---
  VG Name               vgsystem
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               146.80 GB
  PE Size               4.00 MB
  Total PE              37581
  Alloc PE / Size       37581 / 146.80 GB
  Free  PE / Size       0 / 0   
  VG UUID               v4ler4-aC9L-7ugQ-m9yQ-adYK-rrcM-sRLCqD
   
  --- Volume group ---
  VG Name               vgsystem1
  System ID             
  Format                lvm2
  Metadata Areas        5
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               5
  Max PV                0
  Cur PV                5
  Act PV                5
  VG Size               485.97 GB
  PE Size               32.00 MB
  Total PE              15551
  Alloc PE / Size       15551 / 485.97 GB
  Free  PE / Size       0 / 0   
  VG UUID               kvUydX-Abxb-k3LO-q9wq-jF13-dGLz-vG9JUy
</pre></p>
<p>5) Check on the LVs, notice that we both have LVs from vgsystem and vgsystem1<br />
<pre class="brush: plain; highlight: [3,18]; wrap-lines: false;">
[root@beast ~]# lvdisplay 
  --- Logical volume ---
  LV Name                /dev/vgsystem/lvroot
  VG Name                vgsystem
  LV UUID                COUkrC-4ygb-fBQx-3VLr-3CdP-Hupd-InPAGW
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                146.80 GB
  Current LE             37581
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5
   
  --- Logical volume ---
  LV Name                /dev/vgsystem1/lvusr
  VG Name                vgsystem1
  LV UUID                UNyiOM-SvAZ-8KVl-fGbF-SvsB-h9FO-u3YLyq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 GB
  Current LE             128
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vgsystem1/lvhome
  VG Name                vgsystem1
  LV UUID                odNeAE-Krf6-90yn-fN6Q-BDyC-FeKk-U7QeOa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                9.75 GB
  Current LE             312
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/vgsystem1/lvtmp
  VG Name                vgsystem1
  LV UUID                Uyvudz-OCTR-xJrQ-Iftz-CTa4-62XL-HOEN8o
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/vgsystem1/lvvar
  VG Name                vgsystem1
  LV UUID                7uWs2z-hAzj-b3Aj-6KI8-Qaec-pKqd-15UQgk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
  --- Logical volume ---
  LV Name                /dev/vgsystem1/lvu01
  VG Name                vgsystem1
  LV UUID                mta43w-NEnF-QaAx-td4P-osHg-gOAt-B2KrC5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                470.22 GB
  Current LE             15047
  Segments               5
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4
</pre></p>
<p>6) Now the device <strong>/dev/mapper/vgsystem-lvroot</strong> is ready to be mounted<br />
<pre class="brush: plain; highlight: [3]; wrap-lines: false;">
[root@beast dev]# ls -l /dev/vgsystem
total 0
lrwxrwxrwx 1 root root 27 Oct  7 14:28 lvroot -&gt; /dev/mapper/vgsystem-lvroot
[root@beast dev]# 
[root@beast dev]# ls -l /dev/vgsystem1
total 0
lrwxrwxrwx 1 root root 28 Oct  7 14:21 lvhome -&gt; /dev/mapper/vgsystem1-lvhome
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvtmp -&gt; /dev/mapper/vgsystem1-lvtmp
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvu01 -&gt; /dev/mapper/vgsystem1-lvu01
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvusr -&gt; /dev/mapper/vgsystem1-lvusr
lrwxrwxrwx 1 root root 27 Oct  7 14:21 lvvar -&gt; /dev/mapper/vgsystem1-lvvar
</pre></p>
<p>7) Mount it baby!<br />
<pre class="brush: plain; highlight: [3,18]; wrap-lines: false;">
[root@beast dev]# mount /dev/mapper/vgsystem-lvroot /mnt/usb/
</pre></p>
<p>8 ) Now I got my data <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<pre class="brush: plain; highlight: [3,4,5,6,7,8,9,10]; wrap-lines: false;">
[root@beast ~]# ls -l /mnt/usb/home/karao/Documents/
total 32
drwx------  8 oracle oracle 4096 Oct  5 08:58 Desktop
drwx------  4 oracle oracle 4096 Sep 17 12:01 KnowledgeFiles
drwxrwxr-x  2 oracle oracle 4096 Jan 10  2010 My Music
drwxrwxr-x  7 oracle oracle 4096 Oct  5 09:03 My Pictures
drwxrwxr-x  3 oracle oracle 4096 Jan 11  2010 My Shapes
drwxrwxr-x  2 oracle oracle 4096 Jan 10  2010 My Videos
drwx------ 11 oracle oracle 4096 Sep  9 19:34 Softwares
drwxrwxrwt  9 oracle oracle 4096 Sep 28 23:29 VirtualMachines
</pre></p>
<p>Then I just plugged in my 1TB NTFS drive (I have NTFS-3G on the server) and copied all my files.<br />
<a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TK4rvMgdrII/AAAAAAAAA7U/93eNaQHPYIw/rescue.jpg"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TK4rvMgdrII/AAAAAAAAA7U/93eNaQHPYIw/s400/rescue.jpg" alt="" /></a></p>
<p>9) After copying it&#8217;s just a normal unmount operation but you also have to deactivate the Logical Volume<br />
<pre class="brush: plain; wrap-lines: false;">
[root@beast ~]# umount /mnt/usb
[root@beast ~]# lvchange -an vgsystem
</pre></p>
<p>If you missed copying some files you can just plug again the 2.5HD and reexecute the mounting/unmounting process.</p>
<p>BTW I&#8217;m using my old 17inch HP Pavilion laptop which is already 5+ years old but still on good condition. </p>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TK5XzdVfQAI/AAAAAAAAA7k/iHJeo3DRDLo/pavilion.jpg"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TK5XzdVfQAI/AAAAAAAAA7k/iHJeo3DRDLo/s400/pavilion.jpg" alt="" /></a></p>
<p>Hope I&#8217;ve shared you some good stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2563/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2563&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/8ehkxNlZsfk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/10/07/after-oow-my-laptop-broke-down-data-rescue-scenario/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TK4rvMgdrII/AAAAAAAAA7U/93eNaQHPYIw/s400/rescue.jpg" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TK5XzdVfQAI/AAAAAAAAA7k/iHJeo3DRDLo/s400/pavilion.jpg" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/10/07/after-oow-my-laptop-broke-down-data-rescue-scenario/</feedburner:origLink></item>
		<item>
		<title>Oracle Closed World and Unconference Presentations</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/j5y4ang91wQ/</link>
		<comments>http://karlarao.wordpress.com/2010/09/24/oracle-closed-world-and-unconference-presentations/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 18:21:41 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>
		<category><![CDATA[ocw]]></category>
		<category><![CDATA[OOW]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2520</guid>
		<description><![CDATA[There are so many things to blog about these past few days. That is mainly about the cool stuffs around OCW and OOW, sessions that I have attended (OCW, unconference, OOW), plus the interesting people that I&#8217;ve met on various areas of expertise.. So I&#8217;ll be posting some highlights (and a lot of photos) on the next posts. Last Monday (Sept. 20) I was able to present at the Oracle Closed World @ Thirsty Bear. The full agenda is here http://www.amiando.com/ocw.html?page=434169 I did my presentation after Tanel&#8217;s live hacking session. There were 30 (+-5) attendees <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/09/24/oracle-closed-world-and-unconference-presentations/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2520&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>There are so many things to blog about these past few days. That is mainly about the cool stuffs around OCW and OOW, sessions that I have attended (OCW, unconference, OOW), plus the interesting people that I&#8217;ve met on various areas of expertise.. So I&#8217;ll be posting some highlights (and a lot of photos) on the next posts.</p>
<p>Last Monday (Sept. 20) I was able to present at the Oracle Closed World @ Thirsty Bear. The full agenda is here <a href="http://www.amiando.com/ocw.html?page=434169" target="_blank">http://www.amiando.com/ocw.html?page=434169</a></p>
<p><span id="more-2520"></span></p>
<p>I did my presentation after Tanel&#8217;s <a href="http://blog.tanelpoder.com/2010/09/20/oracle-closed-world-presentation-links/" target="_blank">live hacking session</a>. There were 30 (+-5) attendees and some of guys are also <a href="http://www.oaktable.net" target="_blank">OakTable members</a>, that was the first time I presented my material to such a geeky audience (that is drinking beer at the same time) and I was sure they&#8217;ll love what I have to share. So I pulled it off (although a bit nervous), and at the end of the session I&#8217;ve got some questions + nice comments from the guys. Especially from <a href="http://www.rightsizinginc.com/principals.htm" target="_blank">Mark Farnham</a> where we had a small discussion about how interesting it would be to have a multiple regression of AAS to the different subsystems (cpu,memory,storage,network) plus having the facility to identify their cross sections. It was truly an awesome &#8220;meat.beer.explode&#8221; experience, plus I&#8217;ve got this cool shirt!</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJtmHhIp3qI/AAAAAAAAA6I/CADjNwZqrjM/OCW.JPG"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJtmHhIp3qI/AAAAAAAAA6I/CADjNwZqrjM/s288/OCW.JPG" alt="" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center">
<p style="text-align:center;"><iframe src='http://www.slideshare.net/slideshow/embed_code/5267581' width='978' height='801'></iframe></p>
</td>
</tr>
</tbody>
</table>
<p>My Oracle Unconference presentation covers the same theme but has more details and scenarios. It was the time where Larry was about to do his second &#8220;Keynote&#8221; so I was expecting few attendees but I had a great time too and happy to show how to use the <a href="http://blog.tanelpoder.com/2009/06/09/using-perfsheet-and-tpt-scripts-for-solving-real-life-performance-problems" target="_blank">Perfsheet</a> to one of the attendees (for his reporting purposes) plus a little discussion about the problems he&#8217;s having around his environment.</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJzc-9fXraI/AAAAAAAAA6c/5wwKa7qRKV4/DSC_0631-1.JPG"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJzc-9fXraI/AAAAAAAAA6c/5wwKa7qRKV4/s288/DSC_0631-1.JPG" alt="" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center">
<p style="text-align:center;"><iframe src='http://www.slideshare.net/slideshow/embed_code/5267637' width='978' height='801'></iframe></p>
</td>
</tr>
</tbody>
</table>
<p>To all the guys that attended my session, thanks a lot! and I hope I&#8217;ve shared you some good stuff  :)</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2520/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2520&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/j5y4ang91wQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/09/24/oracle-closed-world-and-unconference-presentations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJtmHhIp3qI/AAAAAAAAA6I/CADjNwZqrjM/s288/OCW.JPG" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJzc-9fXraI/AAAAAAAAA6c/5wwKa7qRKV4/s288/DSC_0631-1.JPG" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/09/24/oracle-closed-world-and-unconference-presentations/</feedburner:origLink></item>
		<item>
		<title>OOW 2010 – the highlights</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/lYvy3cQsK_A/</link>
		<comments>http://karlarao.wordpress.com/2010/09/20/oow-2010-the-highlights/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 11:04:23 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2490</guid>
		<description><![CDATA[I started my week with a blast by sky diving at Parachute Center &#8211; Sacramento, it was an awesome experience! Then we went to Redwood Shores to check out the Oracle office Then headed back to the Moscone area to register and attend the sessions On the way to the 3rd floor to get the conference materials I saw a familiar face.. yeah it&#8217;s my friend Craig Shallahamer! finally we&#8217;ve met.. and we had a long talk &#38; catching up about performance related stuff before his talk about troubleshooting &#8220;free buffer waits&#8221; at 3pm On <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/09/20/oow-2010-the-highlights/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2490&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I started my week with a blast by sky diving at <a href="http://www.parachutecenter.com" target="_blank">Parachute Center &#8211; Sacramento</a>, it was an awesome experience!</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KuJSyaI/AAAAAAAAA5A/A_EYk8W5gm8/IMG_4156.JPG"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KuJSyaI/AAAAAAAAA5A/A_EYk8W5gm8/s288/IMG_4156.JPG" alt="" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KvHiOoI/AAAAAAAAA5E/MfKw_IYmzn4/IMG_4163.JPG"><img src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KvHiOoI/AAAAAAAAA5E/MfKw_IYmzn4/s288/IMG_4163.JPG" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Then we went to Redwood Shores to check out the Oracle office</p>
<p><span id="more-2490"></span></p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KpYeqoI/AAAAAAAAA5I/24-8dSKN6lM/DSC_0237.JPG"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KpYeqoI/AAAAAAAAA5I/24-8dSKN6lM/s144/DSC_0237.JPG" alt="" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4K5bdWbI/AAAAAAAAA5Q/0h7i_qXyafs/DSC_0281.JPG"><img src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4K5bdWbI/AAAAAAAAA5Q/0h7i_qXyafs/s144/DSC_0281.JPG" title="Larry's parking slot" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YYi412I/AAAAAAAAA5U/OsIm8OEaVaY/DSC_0296.JPG"><img src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YYi412I/AAAAAAAAA5U/OsIm8OEaVaY/s144/DSC_0296.JPG" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Then headed back to the Moscone area to register and attend the sessions</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YgFvfJI/AAAAAAAAA5Y/uQqtYFLKVkA/DSC_0354.JPG"><img src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YgFvfJI/AAAAAAAAA5Y/uQqtYFLKVkA/s144/DSC_0354.JPG" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4Yl6ihWI/AAAAAAAAA5c/ApGtRp_1wjU/DSC_0379.JPG"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4Yl6ihWI/AAAAAAAAA5c/ApGtRp_1wjU/s144/DSC_0379.JPG" alt="" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJc4YtsBTaI/AAAAAAAAA5g/G50FsGdfKxI/DSC_0381.JPG"><img src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJc4YtsBTaI/AAAAAAAAA5g/G50FsGdfKxI/s144/DSC_0381.JPG" alt="" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YihnYYI/AAAAAAAAA5k/4HgVryrfxj4/DSC_0382.JPG"><img src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YihnYYI/AAAAAAAAA5k/4HgVryrfxj4/s144/DSC_0382.JPG" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>On the way to the 3rd floor to get the conference materials I saw a familiar face.. yeah it&#8217;s my friend <a href="http://resources.orapub.com/?Click=35884" target="_blank">Craig Shallahamer</a>! finally we&#8217;ve met.. and we had a long talk &amp; catching up about performance related stuff before his talk about troubleshooting &#8220;free buffer waits&#8221; at 3pm</p>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4hefgCWI/AAAAAAAAA5o/6sF3KqPEj2I/DSC_0386.JPG"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4hefgCWI/AAAAAAAAA5o/6sF3KqPEj2I/s288/DSC_0386.JPG" /></a></p>
<p>On the &#8220;RAC customer panel&#8221; I saw <a href="http://www.pythian.com/news/author/alex" target="_blank">Alex Gorbachev</a>, <a href="http://kyuoracleblog.wordpress.com" target="_blank">Kai Yu</a>, Philip Newlan and some of the RAC Pack, also <a href="http://www.ardentperf.com" target="_blank">Jeremy Schneider</a> attending the session. After that we went straight to Larry Ellison&#8217;s keynote which is mainly about &#8220;<a href="http://www.oracle.com/us/corporate/press/173459" target="_blank">Exalogic</a>&#8221; &#8211; <em>the <strong>very very very</strong> fast integrated middleware machine</em></p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4hYkP8-I/AAAAAAAAA5s/aPQwCNlVIqg/DSC_0394.JPG"><img src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4hYkP8-I/AAAAAAAAA5s/aPQwCNlVIqg/s288/DSC_0394.JPG" /></a></td>
<td style="border:solid white 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4hoJnzNI/AAAAAAAAA5w/EFqfjsc5s6w/DSC_0404.JPG"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4hoJnzNI/AAAAAAAAA5w/EFqfjsc5s6w/s288/DSC_0404.JPG" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Unfortunately I missed the fun on the Oracle ACE dinner at Pier 40, I came out of the keynote too late! But I&#8217;ll drop by at the Mason Street Tent tomorrow to catch up with Lillian Buziak. That&#8217;s it for now.. I&#8217;m expecting more exciting stuff to happen in the coming days so keep posted!</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2490/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2490&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/lYvy3cQsK_A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/09/20/oow-2010-the-highlights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KuJSyaI/AAAAAAAAA5A/A_EYk8W5gm8/s288/IMG_4156.JPG" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KvHiOoI/AAAAAAAAA5E/MfKw_IYmzn4/s288/IMG_4163.JPG" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4KpYeqoI/AAAAAAAAA5I/24-8dSKN6lM/s144/DSC_0237.JPG" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4K5bdWbI/AAAAAAAAA5Q/0h7i_qXyafs/s144/DSC_0281.JPG" medium="image">
			<media:title type="html">Larry's parking slot</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YYi412I/AAAAAAAAA5U/OsIm8OEaVaY/s144/DSC_0296.JPG" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YgFvfJI/AAAAAAAAA5Y/uQqtYFLKVkA/s144/DSC_0354.JPG" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4Yl6ihWI/AAAAAAAAA5c/ApGtRp_1wjU/s144/DSC_0379.JPG" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TJc4YtsBTaI/AAAAAAAAA5g/G50FsGdfKxI/s144/DSC_0381.JPG" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4YihnYYI/AAAAAAAAA5k/4HgVryrfxj4/s144/DSC_0382.JPG" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4hefgCWI/AAAAAAAAA5o/6sF3KqPEj2I/s288/DSC_0386.JPG" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TJc4hYkP8-I/AAAAAAAAA5s/aPQwCNlVIqg/s288/DSC_0394.JPG" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TJc4hoJnzNI/AAAAAAAAA5w/EFqfjsc5s6w/s288/DSC_0404.JPG" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/09/20/oow-2010-the-highlights/</feedburner:origLink></item>
		<item>
		<title>OOW 2010 – my schedule</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/jGqz-in8sX4/</link>
		<comments>http://karlarao.wordpress.com/2010/09/12/oow-2010-my-schedule/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 10:27:53 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OOW]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2402</guid>
		<description><![CDATA[I was able to finalize my schedule a week before the OOW 2010 and most of the sessions that I&#8217;ll be attending are related to Performance &#38; Exadata. So that would be: 13 conference sessions, 6 unconference, 4 users group, 3 meetups, and 1 panel, +1 Oracle Closed World. You can check my detailed schedule below &#8230; (I know it&#8217;s a jam-packed sched! I hope I can go to all of them..) This will be my first time attending the OOW and I&#8217;m sure I&#8217;ll be having a superb time I&#8217;m registered as a Blogger <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/09/12/oow-2010-my-schedule/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2402&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span>I was able to finalize my schedule a week before the OOW 2010 and most of the sessions that I&#8217;ll be attending are related to <strong>Performance &amp; Exadata</strong>.</p>
<p>So that would be:</p>
<ul>
<li><strong>13 conference sessions,</strong></li>
<li><strong>6 <a href="http://wikis.sun.com/display/JavaOne/Unconferences+at+JavaOne+and+Oracle+Develop+2010" target="_blank">unconference</a>,</strong></li>
<li><strong>4 users group,</strong></li>
<li><strong>3 meetups, and</strong></li>
<li><strong>1 panel,</strong></li>
<li><strong><a href="http://www.amiando.com/ocw.html?page=434167" target="_blank">+1 Oracle Closed World</a>.</strong></li>
</ul>
<p>You can check my detailed schedule below &#8230; (I know it&#8217;s a jam-packed sched! I hope I can go to all of them..)</p>
<p><span id="more-2402"></span></p>
<p>This will be my first time attending the OOW and I&#8217;m sure I&#8217;ll be having a superb time <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   I&#8217;m registered as a Blogger so I got the full conference pass for <strong>FREE</strong>. I&#8217;ll be updating this blog as much as I can with small write ups, photos &amp; videos about the conference so keep <a href="http://feeds2.feedburner.com/karlarao" target="_blank">posted</a>.</td>
<td valign="top"><a href="http://www.oracle.com/go/?&amp;Src=6860861&amp;Act=131&amp;pcode=WWMK09071653MPP013"><img class="aligncenter" src="http://www.oracle.com/dm/oow2010/10040370_oow_ilikethis_250x250.gif" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Plus it will be <strong>my birthday on Sept. 21st</strong> so you can send/give your gifts to me by going to <strong>my unconference session on Sept. 22nd 2pm Mason at Hotel Parc 55</strong>, I&#8217;ll be talking about a topic that is very dear to my heart.. that is <strong>Mining the AWR repository </strong>and making use of it for<strong> Capacity Planning, Visualization, &amp; other real world stuff</strong>.. you can check out the mind map of my presentation here <a href="http://sites.google.com/site/karlarao/mindmap/mining-the-awr-repository" target="_blank">http://sites.google.com/site/karlarao/mindmap/mining-the-awr-repository</a></p>
<p>And one more thing, I&#8217;m excited to finally meet the people I happen to chat and exchange ideas that made me learn a lot of technical stuff that really helped me grow as a DBA for the past years. Expect a fan picture from me and a fan photo album coming :p</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<p><strong>&#8211; SUNDAY</strong><br />
[UG] S315266,September 19,12:30,13:30,Moscone West L2 / Rm 2004,IOUG: Capacity Management for the Oracle Exadata V2<br />
[UG] S313207,September 19,13:30,14:30,Moscone West L2 / Rm 2004,Near-Zero-Downtime Oracle Database Migration<br />
[UG] S316246,September 19,15:00,16:00,Moscone West L2 / Rm 2004,IOUG: Testing to Destruction&#8211;Part 2<br />
[UG] S318709,September 19,16:00,17:00,Moscone West L2 / Rm 2001,IOUG: Oracle RAC Customer Panel<br />
[KEY] S319177 Sunday, September 19, 17:30 | Moscone North, Hall D  &#8211; Oracle Welcome Keynote &#8211; 120 min.<br />
[meetup] 18:30 &#8211; 23:00 Annual Oracle ACE Dinner, Commodore Cruises, Pier 40, 7:00-11:00pm</p>
<p><strong>&#8211; MONDAY</strong><br />
[KEY] S319178 Monday, September 20, 08:00 | Moscone North, Hall D  &#8211; Oracle OpenWorld Keynote &#8211; 105 min.<br />
[unconference] 11am Lombard:Optimizing Internal Serialization Control by Craig Shallahamer<br />
[CS] S316157 12:30-13:30  Moscone South, Rm 308  Implementing Oracle Exadata: An IBM DB2-to-Oracle Exadata Case Study<br />
[CS] S317164,September 20,14:00,15:00,Moscone South / Rm 104,The Latest Real World Performance Challenges<br />
[CS] S317078,September 20,15:30,16:30,Moscone South / Rm 308,Extreme Consolidation with Oracle RAC One Node    <strong>OR    Do 5minutes presentation at Oracle Closed World (http://www.amiando.com/ocw.html?page=434167) about Graphing the AAS &amp;/or Linear Regression</strong><br />
[CS] S315110 17:00-18:00      Moscone South, Rm 303    Optimizing Servers for Oracle Database Performance&#8221;<br />
[KEY] S319179 Monday, September 20, 17:45 | Moscone North, Hall D &#8211; JavaOne Keynote &#8211; 90 min.<br />
[meetup] 19:30 &#8211; 22:30 &#8211; OTN Night Party, Mason Street Tent, 7:30-10:30pm</p>
<p><strong>&#8211; TUESDAY (<span style="text-decoration:underline;">my 26th birthday</span>!)</strong><br />
[KEY] S319180 Tuesday, September 21, 08:00 | Moscone North, Hall D &#8211; Oracle OpenWorld Keynote 105 min.<br />
[unconference] 9am Mason: Developer Coding Strategies for Very Large Databases with Daniel Morgan [Oracle ACE Director]<br />
[unconference] 10am Mason: Oracle Indexes: Q &amp; A Session with Richard Foote [Oracle ACE Director]<br />
[unconference] 11:00 &#8211; Lombard: Do-It-Yourself Exadata-like Performance? Kevin Closson, Performance Architect, Systems Technology Group, Oracle.<br />
[CS] S315449,September 21,12:30,13:30,Moscone South / Rm 306,Thinking Clearly About Performance<br />
[CS] S317165,September 21,14:00,15:00,Moscone South / Rm 306,Oracle Database Performance Secrets Finally Revealed<br />
[PAN] S317090,September 21,15:30,16:30,Moscone South / Rm 308,Oracle RAC on Sun Oracle Database Machine Customer Panel<br />
[KEY] S319181 Tuesday, September 21, 16:30 | Hilton San Francisco, Grand Ballroom AB &#8211; Oracle Develop Keynote &#8211; Tom Kyte &#8211; 60min<br />
[CS] S319101,September 21,17:00,18:00,Moscone South / Rm 304,Managing Transactions with Disappearing Indexes</p>
<p><strong>&#8211; WEDNESDAY</strong><br />
[KEY] S319184 Wednesday, September 22, 08:00 | Hilton San Francisco, Grand Ballroom AB &#8211; Oracle Develop Keynote 90min<br />
[KEY] S319182 Wednesday, September 22, 08:00 | Moscone North, Hall D  &#8211; Oracle OpenWorld Keynote 45min.<br />
[unconference] 11am Lombard: Everything A DBA Should Know About TCP/IP Networks &#8211; Oracle ACE Gwen (Chen) Shapira<br />
[unconference] 1pm Lombard:Evaluating the Anticipated Effect of Performance Solutions by Craig Shallahamer<br />
[unconference] 2pm Mason: <span style="text-decoration:underline;"><a href="http://wikis.sun.com/display/JavaOne/Unconferences+at+JavaOne+and+Oracle+Develop+2010" target="_blank">Mining the AWR repository for Capacity Planning, Visualization, &amp; other real world stuff by Karl Arao</a></span><br />
[KEY] S319183 15:15-16:15  Moscone North, Hall D  Oracle Keynote &#8211; Larry Ellison &#8211; Database&#8221;  Moscone North, Hall D  Oracle Keynote &#8211; Larry Ellison &#8211; Database<br />
[CS] S317367 16:45-17:45  Moscone West L3, Rm 3020 Turkcell Transforms Its Business with Oracle Data Integrator and Oracle Exadata&#8221;<br />
[meetup] 17:30 &#8211; 19:30 &#8211; Wednesday, Sep 22: &#8211; Blogger Meetup (organized by ACE Director Alex Gorbachev), Jillian&#8217;s, 4th Street, 5:30-7:30pm</p>
<p><strong>&#8211; THURSDAY</strong><br />
[KEY] S319185 09:00-10:30 Hilton San Francisco, Grand Ballroom AB &#8211; JavaOne Keynote: The Java Frontier<br />
[CS] S317114 09:00-10:00 Moscone South, Rm 103 What Else Can I Do with System and Session Performance Data?<br />
[CS] S317103 10:30-11:30 Moscone South, Rm 300 Online Application Upgrade of Oracle’s Bug DB with Edition-Based Redefinition<br />
[CS] S313301 12:00-13:00 Moscone South, Rm 307 Calisthenics for DBAs<br />
[CS] S315724 13:30-14:30 Moscone South, Rm 302 Quantifying Oracle Database System Performance<br />
[CS] S316417 15:00-16:00 Moscone South, Rm 307 When Oracle Databases Meet the Cloud, It Might Rain</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2402&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/jGqz-in8sX4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/09/12/oow-2010-my-schedule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://www.oracle.com/dm/oow2010/10040370_oow_ilikethis_250x250.gif" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/09/12/oow-2010-my-schedule/</feedburner:origLink></item>
		<item>
		<title>Statistically summarize Oracle Performance data</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/qlD8_tSfyZY/</link>
		<comments>http://karlarao.wordpress.com/2010/08/31/statistically-summarize-oracle-performance-data/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 15:13:14 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2393</guid>
		<description><![CDATA[Here&#8217;s the draft of this post http://karlarao.tiddlyspot.com/#dbms_stat_funcs , expounded version coming up!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2393&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s the draft of this post <a href="http://karlarao.tiddlyspot.com/#dbms_stat_funcs" target="_blank">http://karlarao.tiddlyspot.com/#dbms_stat_funcs</a> , expounded version coming up! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2393&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/qlD8_tSfyZY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/08/31/statistically-summarize-oracle-performance-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/08/31/statistically-summarize-oracle-performance-data/</feedburner:origLink></item>
		<item>
		<title>Guesstimations</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/yLpuoqgMNx0/</link>
		<comments>http://karlarao.wordpress.com/2010/07/27/guesstimations/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 11:56:37 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2376</guid>
		<description><![CDATA[We do Guesstimations (calculated or not) once in a while&#8230; and this is an interesting read about it&#8230; http://3quarksdaily.blogs.com/3quarksdaily/2008/09/useless-calcula.html In the Oracle side&#8230; we also use this back-of-the-envelope-calculations for coming up with man-days, capacity planning, hardware recommendations, or just simply knowing what&#8217;s happening. And I like these phrases from the article&#8230; &#8220;But how can we know the actual figure? We cannot. We can only get closer and closer approximations by measuring things more and more accurately (the volume, not just of the building, but of everything in it, which must be subtracted). It&#8217;s not like <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/07/27/guesstimations/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2376&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>We do <strong>Guesstimations</strong> (calculated or not) once in a while&#8230; and this is an interesting read about it&#8230;</p>
<p><a href="http://3quarksdaily.blogs.com/3quarksdaily/2008/09/useless-calcula.html" target="_blank">http://3quarksdaily.blogs.com/3quarksdaily/2008/09/useless-calcula.html</a></p>
<p><span id="more-2376"></span></p>
<p>In the Oracle side&#8230; we also use this back-of-the-envelope-calculations for coming up with man-days, capacity planning, hardware recommendations, or just simply knowing <a href="http://karlarao.tiddlyspot.com/#%5B%5BPerformance%20Formulas%5D%5D" target="_blank">what&#8217;s happening</a>. And I like these phrases from the article&#8230;</p>
<p style="padding-left:30px;"><em><strong>&#8220;But how can we know the actual figure? We cannot. We can only get closer and closer approximations by measuring things more and more accurately (the volume, not just of the building, but of everything in it, which must be subtracted). It&#8217;s not like there&#8217;s an easy way to pour the air out of the building and weigh it!<br />
The fun in doing these estimates is in NOT looking anything up, and instead trying to answer questions by using, along the way, what we do know to estimate everything we need to know to answer our question.&#8221;</strong></em></p>
<p>Which means if you are building a mission critical system.. the goodness of the guesstimates is determined by the quality of the sizing requirements and how detailed it could be. And it is impossible to build good systems without this information which may result in being oversized (money loss) or undersized (customer loss).</p>
<p>I also like this comment from Greg Rahn (<a href="http://goo.gl/gFNO" target="_blank">http://goo.gl/gFNO</a>)</p>
<p style="padding-left:30px;"><em><strong>&#8220;The problem I see with IT shops and planning is there is there is either no planning, or it is done incorrectly. Very few shops take the time to build and test, it is more like build and deploy, then “tune”. Let me put this into a slightly different context: If you were tasked with building a bridge from point A to point B what information would you need? Would things like amount of traffic, both peak and average, type of traffic: train, bus, trucks, cars, bicycle &amp; foot be important? It would to me. I see IT shops that design a foot bridge (because it is cheaper) and then try and put cars onto it and then it falls down and they complain. Capacity planning and building computer systems is not about guessing, it is about engineering and calculations. That being said, what calculations go into your system design?&#8221;</strong></em></p>
<p>How about you? Do you have any interesting Oracle Guesstimations? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2376/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2376&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/yLpuoqgMNx0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/07/27/guesstimations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/07/27/guesstimations/</feedburner:origLink></item>
		<item>
		<title>Graphing the AAS with Perfsheet a la Enterprise Manager</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/HOMF_yVGmPY/</link>
		<comments>http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 13:47:26 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2256</guid>
		<description><![CDATA[On this previous blog post I was able to take advantage of the AWR repository particularly the DBA_HIST tables to have a far better workload information and nice correlation of the Database Server’s Capacity, Requirements, and Utilization on a single output&#8230; and yes&#8230; easily going through all the SNAP_IDs! Having this info made it easier for me to notice trends (text or visualization) and play around with the data (some statistics out of it)&#8230; which I can say a big help on finding the root cause of the problem (here and here) Before going any <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2256&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>On this <a href="http://goo.gl/MUWr" target="_blank">previous blog post</a> I was able to take advantage of the AWR repository particularly the DBA_HIST tables to have a far better workload information and nice correlation of the Database Server’s <strong>Capacity, Requirements, and Utilization</strong> on a <strong>single output</strong>&#8230; and yes&#8230; easily going through all the SNAP_IDs!</p>
<p>Having this info made it easier for me to notice trends (<strong>text</strong> or <strong>visualization</strong>) and play around with the data (some <strong><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S_qY9DzBDTI/AAAAAAAAAvQ/hEqD4p_0tSs/linear-ior.png" target="_blank">statistics</a></strong> out of it)&#8230; which I can say a big help on finding the root cause of the problem (<a href="http://karlarao.wordpress.com/2009/06/07/diagnosing-and-resolving-gc-block-lost/" target="_blank">here</a> and <a href="http://karlarao.wordpress.com/2009/08/15/knowing-the-trend-of-deadlock-occurrences-from-the-alert-log/" target="_blank">here</a>)</p>
<p><span id="more-2256"></span></p>
<p>Before going any further&#8230; I recommend you read first Kyle Hailey&#8217;s slide about <a href="http://www.perfvision.com/ftp/emea_2010_may/02_AAS.ppt" target="_blank">AAS (Average Active Sessions)</a>.</p>
<p><span style="color:white;"> </span>For me, AAS has become my default (golden) metric on finding the periods where the database could be having a <strong>bottleneck</strong> or just <strong>idle</strong>.. yes, the slide I mentioned above was right on this.. AAS could be your &#8220;<strong>stethoscope</strong>&#8221; but it doesn&#8217;t stop there. For it to be more useful you must be aware about the <strong>components of AAS</strong> (much like drilling down on the time components) and have this kind of <strong>data over a period of time</strong> (across SNAP_IDs). Well Enterprise Manager does this nice graphs and <strong>slicing the AAS components to different wait classes</strong> and it&#8217;s got a <strong>&#8220;historical&#8221; view</strong> which you could go back and drill down on the past load activity.</p>
<h2><span style="color:#800000;">What could be the problem?</span></h2>
<p><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEuu_PDC2zI/AAAAAAAAAwQ/Kor4t07X3g8/AAS_1.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEuu_PDC2zI/AAAAAAAAAwQ/Kor4t07X3g8/s800/AAS_1.png" alt="" /></a></p>
<p><span style="color:white;"> </span>I know some of you have encountered this at some point.. you are configured with a long AWR retention period (365 days to exaggerate it) but Enterprise Manager won&#8217;t let you go back farther.. all because there was an instance shutdown between the date you want to go and the date you are now. Or could be some other issue where Enterprise Manager really can&#8217;t just give you the visualization you need.</p>
<h2><span style="color:#800000;">So what could be the alternative?</span></h2>
<p><strong>1)</strong> Use the Top Timed Events SQL (awr_topevents.sql) listed on the <span style="text-decoration:underline;"><a href="http://karlarao.wordpress.com/scripts-resources" target="_blank">Scripts Section</a></span> and focus on the <strong>AAS</strong> and <strong>wait class</strong> columns across SNAP_IDs<br />
<strong> 2)</strong> Or use the script together with <a href="http://blog.tanelpoder.com/2008/12/28/performance-visualization-made-easy-perfsheet-20-beta/#more-168" target="_blank">Perfsheet</a>! &#8230; a great tool for ad-hoc performance visualization (see some examples <a href="http://blog.tanelpoder.com/2009/06/09/using-perfsheet-and-tpt-scripts-for-solving-real-life-performance-problems/" target="_blank">here</a>, <a href="http://blog.tanelpoder.com/2010/02/03/oracle-peformance-visualization/" target="_blank">here</a>, <a href="http://www.pythian.com/news/2590/sydney-oracle-meetup-2-visualizing-oracle-performance/" target="_blank">here</a>, <a href="http://blog.tanelpoder.com/2008/12/28/performance-visualization-made-easy-perfsheet-20-beta/#more-168" target="_blank">here</a>)</p>
<p style="text-align:center;"><strong><em>IMPORTANT NOTE: </em></strong><span style="text-decoration:underline;"><strong><em>Diagnostic Pack License</em></strong></span><strong><em> is needed for the scripts</em></strong></p>
<h2><span style="color:#800000;">Now time for Perfsheet a la Enterprise Manager!</span></h2>
<p>We will focus on the sudden spike that happened around 6:20 to 7:01 AM (SNAP_ID 335-339) as shown on this <a href="http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/" target="_blank">previous blog post</a> or you could just check the highlighted black &amp; green output below where the AAS is on the <strong>range of 2.2 to 3.5</strong> (SNAP_ID 335-339) then on the right side of it is a <strong>stacked area chart</strong> of the <strong>awr_topevents.sql </strong>using <strong>Perfsheet</strong>. It&#8217;s clear from the image that there&#8217;s a big spike on the database load&#8230; but we want to know more about it by drilling down on the AAS components.</p>
<table border="0" cellspacing="1" cellpadding="1" align="center">
<tbody>
<tr>
<th>awr_genwl.sql output</th>
<th>Stacked area chart of AAS</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2hR6V8NjCI/AAAAAAAAAo0/YM_c7VhFKiI/dba_hist3.png"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2hR6V8NjCI/AAAAAAAAAo0/YM_c7VhFKiI/s400/dba_hist3.png" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TEvO9y15efI/AAAAAAAAAwY/LK1O0Ysuhmk/AAS%20area%20sum.png"><img src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TEvO9y15efI/AAAAAAAAAwY/LK1O0Ysuhmk/s400/AAS%20area%20sum.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<h2><span style="color:#800000;">Some more background</span></h2>
<p>On the Enterprise Manager <strong>Performance</strong> and <strong>Top Activity Page</strong> you&#8217;ll see the AAS components are sliced into different wait classes. <strong>But, did you know that their data sources are different?</strong></p>
<p>From the 2nd slide of this presentation <a href="http://www.perfvision.com/ftp/emea_2010_may/02_AAS.ppt" target="_blank">AAS (Average Active Sessions)</a> it says that there are two ways to calculate AAS&#8230;<br />
<strong>1</strong><strong>)</strong> Time Statistics<br />
<strong>2</strong><strong>)</strong> Sampling&#8230;</p>
<p>AAS <span style="text-decoration:underline;">on the Performance Page uses Time Statistics</span> and is actually from <strong>v$system_event + CPU from time model</strong>. This is also what the script <strong>awr_topevents.sql</strong> is doing&#8230; it unions the output of v$system_event and the CPU from time model and then filter only the top 5 and do this across the SNAP_IDs but for graphing purposes on the Perfsheet to make it look similar to the Enterprise Manager Performance Page I have to include all of the events so that all the AAS values will be counted. BTW, on 10g below the load chart is coming from v$system_event + v$sysstat &#8220;CPU used by this session&#8221;.</p>
<p>AAS <span style="text-decoration:underline;">on the Top Activity Page uses Sampling</span> and by default is taking advantage of ASH (samples) and does it on a 15sec refresh rate (you&#8217;ll see this proof on the Top Activity Perfsheet graph below)&#8230; but <strong>as I have observed</strong> when you switch from the <strong>Real Time 15 sec refresh</strong> to <strong>Historical</strong> then it also starts to behave like the Performance Page (pulls data from v$system_event + CPU from time model).</p>
<p><strong>So what&#8217;s the effect?</strong> mm&#8230; on a high CPU activity period you&#8217;ll notice that there will be a higher AAS on the <strong>Top Activity Page</strong> compared to <strong>Performance Page</strong>. Simply because ASH samples every second and it does that quickly on every active session (the only way to see CPU usage realtime) while the time model CPU although it updates quicker (5secs I think) than v$sysstat &#8220;CPU used by this session&#8221; there could still be some lag time and it will still be based on Time Statistics (one of two ways to calculate AAS) which could be affected by averages.</p>
<p>If you want more info about the stuff around the Performance and Top Activity page.. this is worth reading.. <a href="http://sites.google.com/site/youvisualize/active-session-history" target="_blank">History of Session Load</a></p>
<h2><span style="color:#800000;">Going back in time &#8211; Historical view</span></h2>
<table border="0" cellspacing="1" cellpadding="1" align="center">
<tbody>
<tr>
<th>Performance Page &#8211; Historical</th>
<th>Top Activity Page &#8211; Historical</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45qQX4aI/AAAAAAAAAoA/qPg_TrYxxlA/PerformancePage1.png"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45qQX4aI/AAAAAAAAAoA/qPg_TrYxxlA/s400/PerformancePage1.png" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45gvDB7I/AAAAAAAAAoI/LOv7qMAaOUo/TopActivity.png"><img src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45gvDB7I/AAAAAAAAAoI/LOv7qMAaOUo/s400/TopActivity.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Now back to the Perfsheet!  Check out the <strong>Top Activity Page &#8211; Historical</strong> above.. I have made a Perfsheet version of that graph which you could see below, on the left is broken down into <strong>wait class</strong> which really looks the same as the Top Activity Page (above) even their AAS values. While on the right is broken down into <strong>wait events</strong>.. aside from being more colorful it let&#8217;s you see what wait event is consuming the AAS.</p>
<table border="0" cellspacing="1" cellpadding="1" align="center">
<tbody>
<tr>
<th>Stacked area chart AAS components &#8211; wait class</th>
<th>Stacked area chart AAS components &#8211; wait events</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEvO-KQyeyI/AAAAAAAAAwc/ecq7eOtJfy0/AAS%20stacked%20area%20wait%20class.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEvO-KQyeyI/AAAAAAAAAwc/ecq7eOtJfy0/s400/AAS%20stacked%20area%20wait%20class.png" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEvS3Hh-GII/AAAAAAAAAwg/ynit1JVfgfY/AAS%20stacked%20area%20wait%20event.png"><img src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEvS3Hh-GII/AAAAAAAAAwg/ynit1JVfgfY/s400/AAS%20stacked%20area%20wait%20event.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Ooops, don&#8217;t get too excited.. important reminder&#8230; the 2-dimensional Stacked area chart that Enterprise Manager uses could hide important information and sometimes could be misleading.. and it really helps to have another view and see the data clearly separated into their respective components, rather than being stacked&#8230; As you compare the above and below charts, you&#8217;ll know what I mean.. Wait Class and Wait Events in <strong>3D area chart</strong> view could tell a more meaningful story.</p>
<p>Compare the <strong>wait class chart</strong>&#8230; above notice the blue (Other wait class) on the range of <strong>AAS of 1</strong> while below it&#8217;s on the range of <strong>0.11</strong> (hidden between CPU and System IO)&#8230; that&#8217;s a big difference!</p>
<p>Then compare the <strong>wait event chart</strong>&#8230; notice the big difference on the chart? above you can&#8217;t really tell what&#8217;s happening.. but on 3D you can see that only the <strong>db file sequential read</strong> and <strong>direct path read</strong> are on the AAS of 1.6 on SNAP_ID 335 and 336. Yes, you will also not be fooled when you look at the raw data&#8230; but visualization is much easier and the way to go but you must be able to sense and validate if it&#8217;s driving you to bad conclusions.</p>
<p>BTW, the Perfsheet and the raw data that I used are uploaded here <a href="https://docs.google.com/leaf?id=0B5H46jS7ZPdJZTQxN2ZmYWItZDVjZS00NWNiLWIzNDgtZDI4YzZhZTQxMjc4&amp;hl=en" target="_blank">Perfsheet-AAS.zip</a></p>
<table border="0" cellspacing="1" cellpadding="1" align="center">
<tbody>
<tr>
<th>3D area chart AAS components &#8211; wait class</th>
<th>3D area chart AAS components &#8211; wait events</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TEvS3LiNjbI/AAAAAAAAAwk/z1bszIZk8wQ/AAS%203D%20wait%20class.png"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TEvS3LiNjbI/AAAAAAAAAwk/z1bszIZk8wQ/s400/AAS%203D%20wait%20class.png" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TEvS3YJPSoI/AAAAAAAAAwo/tIiUbV8VJVw/AAS%203D%20wait%20event.png"><img src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TEvS3YJPSoI/AAAAAAAAAwo/tIiUbV8VJVw/s400/AAS%203D%20wait%20event.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<h2><span style="color:#800000;">AAS based on ASH &#8211; Real Time</span></h2>
<p>As I have mentioned above, the Top Activity page charts the ASH samples on 15sec refresh rate. You can see below that doing this on Perfsheet will give us the same visualization, yes I&#8217;m querying v$active_session_history <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and this was also mentioned <a href="http://oracleprof.blogspot.com/2010/07/oem-performance-tab-and-active-session.html" target="_blank">here</a></p>
<table border="0" cellspacing="1" cellpadding="1" align="center">
<tbody>
<tr>
<th>Top Activity Page &#8211; Real Time</th>
<th>Stacked area chart AAS wait class &#8211; Real Time</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TEvg3N7PzJI/AAAAAAAAAxE/HpJiSeixGas/AAS%20top%20activity%2015sec.png"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TEvg3N7PzJI/AAAAAAAAAxE/HpJiSeixGas/s400/AAS%20top%20activity%2015sec.png" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TEvh5KRNPgI/AAAAAAAAAxQ/CZ_XzkZqt8Q/AAS%20top%20activity%2015sec%20perfsheet.png"><img src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TEvh5KRNPgI/AAAAAAAAAxQ/CZ_XzkZqt8Q/s400/AAS%20top%20activity%2015sec%20perfsheet.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<h2><span style="color:#800000;">AAS throughout the AWR retention period!</span></h2>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TEvmJcNuUXI/AAAAAAAAAxU/nz4vwuobkE4/AAS%20ALL.PNG"><img class="aligncenter" title="RHEV" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TEvmJcNuUXI/AAAAAAAAAxU/nz4vwuobkE4/s800/AAS%20ALL.PNG" alt="RHEV" /></a></p>
<p>On my test machine I have 365 days retention period.. this enables me to have a data warehouse of performance data. You can see from the chart above (stacked area chart), that what we are focusing on (6:20 to 7:01 AM SNAP_ID 335-339) happens to be the <strong>highest load period</strong> from all the AAS samples for the lifetime of my test database. You could also see the period of shutdowns (negative value) and other time period where AAS went beyond my maximum CPU which could justify the drill down on the specific SNAP_IDs or time frame&#8230; from there you could either use ASH, run the AWR report, run ADDM, or make use of your high caliber scripts!</p>
<p>The good thing here is, you are not guessing!</p>
<p>Hope I&#8217;ve shared you some good stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2256&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/HOMF_yVGmPY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEuu_PDC2zI/AAAAAAAAAwQ/Kor4t07X3g8/s800/AAS_1.png" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2hR6V8NjCI/AAAAAAAAAo0/YM_c7VhFKiI/s400/dba_hist3.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TEvO9y15efI/AAAAAAAAAwY/LK1O0Ysuhmk/s400/AAS%20area%20sum.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45qQX4aI/AAAAAAAAAoA/qPg_TrYxxlA/s400/PerformancePage1.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45gvDB7I/AAAAAAAAAoI/LOv7qMAaOUo/s400/TopActivity.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEvO-KQyeyI/AAAAAAAAAwc/ecq7eOtJfy0/s400/AAS%20stacked%20area%20wait%20class.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/TEvS3Hh-GII/AAAAAAAAAwg/ynit1JVfgfY/s400/AAS%20stacked%20area%20wait%20event.png" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TEvS3LiNjbI/AAAAAAAAAwk/z1bszIZk8wQ/s400/AAS%203D%20wait%20class.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/TEvS3YJPSoI/AAAAAAAAAwo/tIiUbV8VJVw/s400/AAS%203D%20wait%20event.png" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TEvg3N7PzJI/AAAAAAAAAxE/HpJiSeixGas/s400/AAS%20top%20activity%2015sec.png" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/TEvh5KRNPgI/AAAAAAAAAxQ/CZ_XzkZqt8Q/s400/AAS%20top%20activity%2015sec%20perfsheet.png" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/TEvmJcNuUXI/AAAAAAAAAxU/nz4vwuobkE4/s800/AAS%20ALL.PNG" medium="image">
			<media:title type="html">RHEV</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/07/25/graphing-the-aas-with-perfsheet-a-la-enterprise-manager/</feedburner:origLink></item>
		<item>
		<title>Oracle datafile IO latency – Part 1</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/rRK0xaMCUXE/</link>
		<comments>http://karlarao.wordpress.com/2010/07/05/oracle-datafile-io-latency-part-1/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 07:13:08 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2228</guid>
		<description><![CDATA[On my post about observing the Exadata V1 I had an interesting comment posted by Mark Seger (author of collectl and collectl utilities) about the correlation of activities across a system, the sample and snap time, and seeing the state of the subsystem before and after&#8230; The comment made me curious about the effect of snap intervals on the performance numbers of the datafiles and block devices.. especially on the latency numbers.. so I made a few test cases and created some scripts that would give me 5 seconds, 10 minutes, and 60 minutes output <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/07/05/oracle-datafile-io-latency-part-1/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2228&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>On my post about <a href="http://karlarao.wordpress.com/2010/05/30/seeing-exadata-in-action" target="_blank">observing the Exadata V1</a> I had an interesting <a href="http://karlarao.wordpress.com/2010/05/30/seeing-exadata-in-action/#comment-753">comment</a> posted by Mark Seger (author of <a href="http://collectl.sourceforge.net">collectl</a> and <a href="http://collectl-utils.sourceforge.net" target="_blank">collectl utilities</a>) about the <strong>correlation of activities across a system</strong>, the <strong>sample</strong> and <strong>snap time</strong>, and seeing the <strong>state of the subsystem before and after</strong>&#8230;</p>
<p>The comment made me curious about the <strong>effect of snap intervals</strong> on the performance numbers of the <strong>datafiles and block devices</strong>.. especially on the <strong>latency numbers</strong>.. so I made a few test cases and created some scripts that would give me <strong>5 seconds, 10 minutes, and 60 minutes</strong> output of latency numbers on the database. Also running <strong>5 seconds interval of OSWatcher</strong> to give me a view on the block devices.</p>
<p><span id="more-2228"></span></p>
<p>As I was doing all of this, I had an interesting discovery about <strong>how the latency output of the datafiles are being computed</strong> and I was able to <strong>quantify</strong> by having the performance numbers how average could be <a href="http://jamesmorle.wordpress.com/2010/06/02/log-file-sync-and-awr-not-good-bedfellows" target="_blank">misleading and mask the problem</a> on the datafile IO latency.</p>
<p>I did a <strong>one-take</strong> (amateur <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) clip straight from my iPhone3gs to give you an overview about it..</p>
<span style="text-align:center; display: block;"><a href="http://karlarao.wordpress.com/2010/07/05/oracle-datafile-io-latency-part-1/"><img src="http://img.youtube.com/vi/ezlPsxiGIQw/2.jpg" alt="" /></a></span>
<p>On the next post I will detail on the following:<br />
<strong>- where and how to get datafile IO latency<br />
- how is it computed<br />
- how does the long average can affect the latency output<br />
- how does this affect performance tuning?<br />
- what can you do about it?</strong></p>
<p><span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2228&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/rRK0xaMCUXE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/07/05/oracle-datafile-io-latency-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/07/05/oracle-datafile-io-latency-part-1/</feedburner:origLink></item>
		<item>
		<title>The “Not a Problem” Problem and other related stuff</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/IGdYpxJdas8/</link>
		<comments>http://karlarao.wordpress.com/2010/06/28/the-not-a-problem-problem-and-other-related-stuff/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 05:43:09 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2186</guid>
		<description><![CDATA[It&#8217;s been a while since I visited the Sun Video RSS feed and I found some interesting videos related to performance that are worth sharing and something you could watch over a big cup of coffee.. First is titled Performance: The &#8220;Not a Problem&#8221; Problem which I could also relate when doing performance analysis for example&#8230; When a client instantly jump into conclusion that the performance degradation is caused by the database link well in reality when everything is measured/profiled it turned out that it&#8217;s because of the slow IO subsystem.. Or when the Data <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/06/28/the-not-a-problem-problem-and-other-related-stuff/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2186&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a while since I visited the <a href="http://blogs.sun.com/video/feed/entries/atom" target="_blank">Sun Video RSS feed</a> and I found some interesting videos related to performance that are worth sharing and something you could watch over a big cup of coffee..</p>
<p><span id="more-2186"></span></p>
<p><strong><span style="text-decoration:underline;">First</span></strong> is titled <strong>Performance: The &#8220;Not a Problem&#8221; Problem</strong> which I could also relate when doing performance analysis for example&#8230;</p>
<ul>
<li>When a client instantly jump into conclusion that the performance degradation is caused by the database link well in reality when everything is measured/profiled it turned out that it&#8217;s because of the slow IO subsystem..</li>
<li>Or when the Data Guard environment was being blamed because of the slow batch processing but when everything is measured/profiled it turned out that it&#8217;s the bad SQL..</li>
</ul>
<p>there are lots of interesting customer scenarios we could imagine.. but if there would be <strong>a systematic approach, a clear problem definition, and measuring the right stuff</strong>.. then things would be better..</p>
<script type="text/javascript" src="http://blip.tv/syndication/write_player?skin=js&posts_id=3742672&cross_post_destination=-1&view=full_js"></script>
<p><strong><span style="text-decoration:underline;">Second</span></strong> is titled <strong>Performance: Experimentation</strong> which highlights the importance of the <strong>test cases</strong> and <strong>isolating the problem</strong>.. and how this could make<strong> a good learning experience</strong> while also <strong>solving the problem</strong>..</p>
<script type="text/javascript" src="http://blip.tv/syndication/write_player?skin=js&posts_id=3740794&cross_post_destination=-1&view=full_js"></script>
<p><strong><span style="text-decoration:underline;">Third</span></strong> is the series of videos titled <strong>&#8220;Little Shop of Performance Horrors&#8221;</strong> posted on this <a href="http://blogs.sun.com/brendan/entry/frosug_perf_horrors" target="_blank">blog post</a> and tackled about these <strong>horrific topics</strong>:</p>
<ul>
<li><em>The worst perf issues I&#8217;ve ever seen!</em></li>
<li><em>Common misconfigurations</em></li>
<li><em>The encyclopedia of poor assumptions</em></li>
<li><em>Unbelievably bad perf analysis</em></li>
<li><em>Death by complexity</em></li>
<li><em>Bad benchmarking</em></li>
<li><em>Misleading analysis tools</em></li>
<li><em>Insane performance tuning</em></li>
<li><em>The curse of the unexpected</em></li>
</ul>
<p>I hope I’ve shared you some good stuff <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Enjoy!<br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2186&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/IGdYpxJdas8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/06/28/the-not-a-problem-problem-and-other-related-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/06/28/the-not-a-problem-problem-and-other-related-stuff/</feedburner:origLink></item>
		<item>
		<title>Oracle Mix – OOW 2010 Suggest-A-Session</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/-C-TjqXkLn4/</link>
		<comments>http://karlarao.wordpress.com/2010/06/18/oracle-mix-oow-2010-suggest-a-session/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 04:19:34 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2172</guid>
		<description><![CDATA[I hope it&#8217;s not too late. I just finished my Suggest-A-Session on Oracle Mix titled &#8220;Mining the Oracle Database AWR repository for Capacity Planning&#8220;, this might be of interest to you&#8230; below is the abstract: &#8220;New CPUs and storage arrays, they are getting faster but these resources are finite and come at a cost. Hence, capacity planning plays a very important role to ensure proper resources are available to handle expected and unexpected workloads. Another critical matter for the DBAs and IT managers is justifying the expense of adding resources on the system. With guesswork <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/06/18/oracle-mix-oow-2010-suggest-a-session/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2172&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">I hope it&#8217;s not too late.</span></strong> I just finished my Suggest-A-Session on Oracle Mix titled &#8220;<a title="Mining the Oracle Database AWR repository for Capacity Planning" href="https://mix.oracle.com/oow10/proposals/10770-mining-the-oracle-database-awr-repository-for-capacity-planning" target="_blank">Mining the Oracle Database AWR repository for Capacity Planning</a>&#8220;, this might be of interest to you&#8230; below is the abstract:</p>
<p><span id="more-2172"></span></p>
<p style="padding-left:30px;"><em>&#8220;New CPUs and storage arrays, they are getting faster but these resources are finite and come at a cost. Hence, capacity planning plays a very important role to ensure proper resources are available to handle expected and unexpected workloads. Another critical matter for the DBAs and IT managers is justifying the expense of adding resources on the system. With guesswork you’ll end up getting the most expensive hardware. With proper measurement, proper planning and management of growth, you’ll be able to get just the right hardware for your workload with allowance for a particular growth period. This will result to huge savings for the company and a happier IT shop.</em></p>
<p style="padding-left:30px;"><em>AWR is a built-in data store that started in 10gR1 and it’s very much like a “Statspack on steroids”. It has improved significantly in 11gR2. What’s exciting about 10g and higher versions is we could utilize the “Time Model” and the “OSSTAT” view and use them together with the “SYSTAT” view to have a far better workload information when going through all the AWR snapshots.</em></p>
<p style="padding-left:30px;"><em>From the AWR data samples, we could build amazing reports that will let us notice trends and makes it possible to visualize data and use statistical methods for analysis. Even more surprising about the AWR data samples is we are able to define the database server’s Capacity, Requirements, and Utilization in terms of CPU, IO, memory, and network which are very important key metrics for Capacity Planning.</em></p>
<p style="padding-left:30px;"><em>In this session, attendees will be able to learn how to make use of the AWR specifically the DBA_HIST tables to have a clear-cut measurement on resources to aid in Capacity Planning, Predictive Analysis, and Performance Firefighting.&#8221;</em></p>
<p><strong><span style="text-decoration:underline;">it is really cool</span></strong> I&#8217;m telling you&#8230; c&#8217;mon, just click on the <strong><span style="text-decoration:underline;"><a href="https://mix.oracle.com/oow10/proposals/10770-mining-the-oracle-database-awr-repository-for-capacity-planning" target="_blank">VOTE</a></span></strong> button <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2172&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/-C-TjqXkLn4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/06/18/oracle-mix-oow-2010-suggest-a-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/06/18/oracle-mix-oow-2010-suggest-a-session/</feedburner:origLink></item>
		<item>
		<title>Seeing Exadata in action</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/s-fGhPvRrbo/</link>
		<comments>http://karlarao.wordpress.com/2010/05/30/seeing-exadata-in-action/#comments</comments>
		<pubDate>Sun, 30 May 2010 11:34:52 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[RAC]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=2023</guid>
		<description><![CDATA[Last week I was able to attend a 3 day exadata workshop conducted by performance engineers from Singapore. It was supposed to be a 5 day workshop with hands on labs but everything was squeezed (unfortunately no hands on) and just the critical sections were tackled.. The workshop highlight was the demos and these are as follows: - loading large amount of data from an external table - cell offloading on a typical datawarehouse query - creation of a 400gb tablespace - linear scalability of storage cells Although all of these demos were done on <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/05/30/seeing-exadata-in-action/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2023&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span>Last week I was able to attend a 3 day exadata workshop conducted by performance engineers from Singapore. It was supposed to be a 5 day workshop with hands on labs but everything was squeezed (<em>unfortunately no hands on</em>) and just the critical sections were tackled.. The workshop highlight was the demos and these are as follows:<br />
<strong><br />
- loading large amount of data from an external table<br />
- cell offloading on a typical datawarehouse query<br />
- creation of a 400gb tablespace<br />
- linear scalability of storage cells<br />
</strong><br />
Although all of these demos were done on <strong>&#8220;<span style="text-decoration:underline;">Exadata Version 1</span>&#8220;</strong>.. and just <strong>13 of the storage servers were running</strong>..I can say that the performance is still stunning!!!</p>
<p><span id="more-2023"></span></p>
<p>But the real highligth for me is having my scripts run on the database machine <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>BTW, to get the scripts.. check out the <span style="text-decoration:underline;"><a href="http://karlarao.wordpress.com/scripts-resources" target="_blank">Scripts Section</a></span> for the file name and the most recent version of the script..</p>
<p><strong><em>IMPORTANT NOTE: </em></strong><span style="text-decoration:underline;"><strong><em>Diagnostic Pack License</em></strong></span><strong><em> is needed for the scripts</em></strong></td>
<td valign="top"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S_1yYtoWXBI/AAAAAAAAAvs/0wmqgeRVNO4/s288/exadata.jpg"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S_1yYtoWXBI/AAAAAAAAAvs/0wmqgeRVNO4/s288/exadata.jpg" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>All the time they were doing demos they were just showing some graphed output of V$SYSSTAT statistics related to <a href="http://karlarao.tiddlyspot.com/#%5B%5BExadata%20NOTES%5D%5D" target="_blank">Exadata cell effectiveness</a> and  a customized output of <a href="http://collectl.sourceforge.net" target="_blank">collectl</a> showing the storage servers and the RAC nodes stacked together on a putty session and from there we can see the IO, CPU, network statistics as they were hammering the full rack Exadata..</p>
<p>So I was also really curious about seeing the database performance numbers.. I&#8217;ve asked if we can see the Enterprise Manager as they were doing the demos.. Unfortunately it was not available..</p>
<p>With the spooled output of my scripts (executed on the node where the demo was done).. I was able to see the following <strong><span style="text-decoration:underline;">across</span></strong> SNAP_IDs:</p>
<p><strong>- Load (awr_genwl.sql)<br />
- Top Timed Events (awr_topevents.sql)<br />
- Tablespace and File IO statistics (awr_io_ts.sql, awr_io_file.sql)<br />
- Top SQLs (awr_topsql.sql, awr_topsqlx.sql)</strong></p>
<p>Below are the output:</p>
<h3><span style="color:#800000;"><span style="text-decoration:underline;">Load:</span></span></h3>
<p>I was interested on the period when the demo was run (May 20th afternoon)&#8230; the time that I saw the storage servers being hammered and giving <strong>1 GB/s</strong> throughput on each. I&#8217;d like to see CPU and IO numbers on the database side plus the <a href="http://www.perfvision.com/ftp/emea2010/02_AAS.ppt" target="_blank">AAS (Average Active Sessions)</a> and other metrics.. more like <a href="http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/" target="_blank">characterizing the workload</a>.. you can see on <strong>SNAP_ID 1211</strong> that there was a sudden surge on <strong>DB Time, IO read MB/s, and CPU utilization</strong>..</p>
<p>I was surprised to see that the utilization numbers (rightmost) are very low even for the whole AWR retention period (I did not include here), and take note that this is the output from one node only so I can&#8217;t really conclude what&#8217;s happening to the entire cluster..</p>
<p><pre class="brush: plain; highlight: [13]; wrap-lines: false;">

                                                                                                              AWR CPU and IO Workload Report

                         i                        ***                                                       ***                 ***
                         n                      Total                                                     Total               Total                                                                                                           U    S
       Snap              s       Snap   C         CPU                                             A      Oracle                  OS   Physical                                                                            Oracle RMAN   OS    S    Y    I
  Snap Start             t        Dur   P        Time         DB        DB        Bg     RMAN     A         CPU      OS         CPU     Memory      IOPs      IOPs      IOPs      IO r      IO w      Redo           Exec    CPU  CPU  CPU    R    S    O
    ID Time              #        (m)   U         (s)       Time       CPU       CPU      CPU     S         (s)    Load         (s)       (mb)         r         w      redo    (mb)/s    (mb)/s    (mb)/s Sess        /s      %    %    %    %    %    %
------ --------------- --- ---------- --- ----------- ---------- --------- --------- -------- ----- ----------- ------- ----------- ---------- --------- --------- --------- --------- --------- --------- ---- --------- ------ ---- ---- ---- ---- ----

  1208 10/05/20 08:00    2      60.25   8    28920.00      24.08      8.43     10.02     0.00   0.0       18.44    0.29      334.80   32189.62     0.000     0.082     0.050     0.000     0.001     0.000   40     1.549      0    0    1    1    0    0
  1209 10/05/20 09:00    2      59.89   8    28747.20      21.80      8.43     10.29     0.00   0.0       18.72    0.40      320.49   32189.62     0.003     0.078     0.034     0.000     0.002     0.000   40     1.490      0    0    1    1    0    0
  1210 10/05/20 10:00    2      59.87   8    28737.60      24.86      9.43      9.78     0.00   0.0       19.21    0.03      318.18   32189.62     0.006     0.080     0.039     0.000     0.002     0.000   40     1.539      0    0    1    1    0    0
  1211 10/05/20 11:00    2      60.00   8    28800.00    3211.59   1732.40     19.19     0.00   0.9     1751.59    0.39     2157.32   32189.62    56.584     4.423     0.453    55.847     0.477     0.008   41     3.404      6    0    7    7    0    0
  1212 10/05/20 12:00    2      60.02   8    28809.60     353.16     42.58     12.79     0.00   0.1       55.37    0.17      420.83   32189.62    10.901     0.210     0.145    10.734     0.004     0.001   49     2.263      0    0    1    1    0    0
  1213 10/05/20 13:00    2      60.25   8    28920.00    1415.78    465.06     18.32     0.00   0.4      483.38    0.37      839.79   32189.62     0.079     8.471     0.478     0.001     1.321     0.004   42     3.358      2    0    3    2    0    0
  1214 10/05/20 14:00    2      59.80   8    28704.00      20.56      8.60     10.49     0.00   0.0       19.09    0.03      318.41   32189.62     0.012     0.127     0.052     0.000     0.002     0.001   42     1.780      0    0    1    1    0    0
</pre></p>
<h3><span style="color:#800000;"><span style="text-decoration:underline;">Top Timed Events:</span></span></h3>
<p>Drilling down on the Top Events on the <strong>SNAP_ID 1211</strong>, I&#8217;m wondering if I&#8217;ll be seeing something different&#8230; you can see that half of the <strong>DB Time</strong> is attributed to <strong>&#8220;CPU time&#8221;</strong> but with just an <a href="http://karlarao.tiddlyspot.com/#AAS" target="_blank"><strong>AAS</strong></a><strong> of .5</strong> which means there&#8217;s still a lot of CPU available on the RAC node and the database is <strong>probably not blocked</strong>. You could also see that there&#8217;s some external table read going on (hmm that could be the 1st demo), and notice the event <a href="http://karlarao.tiddlyspot.com/#%5B%5BExadata%20NOTES%5D%5D" target="_blank">&#8220;cell smart table scan&#8221;</a>..</p>
<p><pre class="brush: plain; highlight: [24,25,26,27,28]; wrap-lines: false;">
                                                                                                                   AWR Top Events Report

                         i
                         n
       Snap              s       Snap                                                                                                    A
  Snap Start             t        Dur                                          Event                          Time    Avgwt DB Time      A
    ID Time              #        (m) Event                                     Rank          Waits            (s)     (ms)       %      S Wait Class
------ --------------- --- ---------- ---------------------------------------- ----- -------------- -------------- -------- ------- ------ ---------------
  1208 10/05/20 08:00    2      60.25 reliable message                             1        1674.00           8.80     5.26      37    0.0 Other
  1208 10/05/20 08:00    2      60.25 CPU time                                     2           0.00           8.43     0.00      35    0.0 CPU
  1208 10/05/20 08:00    2      60.25 PX Deq: Slave Session Stats                  3        3150.00           8.23     2.61      34    0.0 Other
  1208 10/05/20 08:00    2      60.25 control file sequential read                 4       11400.00           7.12     0.62      30    0.0 System I/O
  1208 10/05/20 08:00    2      60.25 enq: PS - contention                         5        8342.00           2.66     0.32      11    0.0 Other
  1209 10/05/20 09:00    2      59.89 CPU time                                     1           0.00           8.43     0.00      39    0.0 CPU
  1209 10/05/20 09:00    2      59.89 PX Deq: Slave Session Stats                  2        3130.00           7.27     2.32      33    0.0 Other
  1209 10/05/20 09:00    2      59.89 control file sequential read                 3       11330.00           6.68     0.59      31    0.0 System I/O
  1209 10/05/20 09:00    2      59.89 reliable message                             4        1608.00           4.14     2.58      19    0.0 Other
  1209 10/05/20 09:00    2      59.89 enq: PS - contention                         5        8347.00           2.38     0.28      11    0.0 Other
  1210 10/05/20 10:00    2      59.87 CPU time                                     1           0.00           9.43     0.00      38    0.0 CPU
  1210 10/05/20 10:00    2      59.87 control file sequential read                 2       11314.00           7.98     0.71      32    0.0 System I/O
  1210 10/05/20 10:00    2      59.87 PX Deq: Slave Session Stats                  3        3305.00           7.83     2.37      31    0.0 Other
  1210 10/05/20 10:00    2      59.87 reliable message                             4        1654.00           5.81     3.51      23    0.0 Other
  1210 10/05/20 10:00    2      59.87 enq: PS - contention                         5        8520.00           1.98     0.23       8    0.0 Other
  1211 10/05/20 11:00    2      60.00 CPU time                                     1           0.00        1732.40     0.00      54    0.5 CPU
  1211 10/05/20 11:00    2      60.00 external table read                          2       12567.00         410.76    32.69      13    0.1 User I/O
  1211 10/05/20 11:00    2      60.00 cell smart table scan                        3       86393.00         238.88     2.77       7    0.1 User I/O
  1211 10/05/20 11:00    2      60.00 gc buffer busy acquire                       4        4137.00         196.75    47.56       6    0.1 Cluster
  1211 10/05/20 11:00    2      60.00 external table misc IO                       5         119.00         119.18  1001.48       4    0.0 User I/O
  1212 10/05/20 12:00    2      60.02 cell smart table scan                        1       33606.00         197.91     5.89      56    0.1 User I/O
  1212 10/05/20 12:00    2      60.02 cell smart file creation                     2       92753.00          84.68     0.91      24    0.0 User I/O
  1212 10/05/20 12:00    2      60.02 ASM file metadata operation                  3         830.00          80.80    97.35      23    0.0 Other
  1212 10/05/20 12:00    2      60.02 control file sequential read                 4       11440.00          56.00     4.90      16    0.0 System I/O
  1212 10/05/20 12:00    2      60.02 CPU time                                     5           0.00          42.58     0.00      12    0.0 CPU
  1213 10/05/20 13:00    2      60.25 CPU time                                     1           0.00         465.06     0.00      33    0.1 CPU
  1213 10/05/20 13:00    2      60.25 gc buffer busy acquire                       2       15209.00         379.47    24.95      27    0.1 Cluster
  1213 10/05/20 13:00    2      60.25 external table read                          3        5706.00         211.29    37.03      15    0.1 User I/O
  1213 10/05/20 13:00    2      60.25 gc current block busy                        4        1091.00          94.23    86.37       7    0.0 Cluster
  1213 10/05/20 13:00    2      60.25 external table misc IO                       5          48.00          69.21  1441.82       5    0.0 User I/O
  1214 10/05/20 14:00    2      59.80 CPU time                                     1           0.00           8.60     0.00      42    0.0 CPU
  1214 10/05/20 14:00    2      59.80 PX Deq: Slave Session Stats                  2        3159.00           7.09     2.24      34    0.0 Other
  1214 10/05/20 14:00    2      59.80 control file sequential read                 3       11363.00           6.35     0.56      31    0.0 System I/O
  1214 10/05/20 14:00    2      59.80 reliable message                             4        1706.00           4.86     2.85      24    0.0 Other
  1214 10/05/20 14:00    2      59.80 enq: PS - contention                         5        8312.00           2.23     0.27      11    0.0 Other

</pre></p>
<h3><span style="color:#800000;"><span style="text-decoration:underline;">Tablespace IO statistics:</span></span></h3>
<p>Having seen the <strong>1 GB/s throughput</strong> on each storage server I&#8217;d like to know how it is with the tablespace and datafile latency.. As you can see below there are high reads on tablespace <strong>DG14D7</strong> and writes on <strong>DG14D1</strong></p>
<p><pre class="brush: plain; highlight: [18,19,20,21,22]; wrap-lines: false;">
                                                                                                                 AWR Tablespace IO Report

                         i
                         n
       Snap              s       Snap
  Snap Start             t        Dur                        IO                IOPS                                      IOPS                                              IOPS
    ID Time              #        (m) TS                   Rank    Reads Av Reads/s Av Rd(ms) Av Blks/Rd   Writes Av Writes/s Buffer Waits Av Buf Wt(ms) Total IO R+W Total R+W
------ --------------- --- ---------- -------------------- ---- -------- ---------- --------- ---------- -------- ----------- ------------ ------------- ------------ ---------
  1208 10/05/20 08:00    2      60.25 SYSAUX                  1        0          0       0.0        0.0      203           0            0           0.0          203         0
  1208 10/05/20 08:00    2      60.25 UNDOTBS2                2        0          0       0.0        0.0       90           0            0           0.0           90         0
  1208 10/05/20 08:00    2      60.25 SYSTEM                  3        0          0       0.0        0.0        2           0            0           0.0            2         0
  1209 10/05/20 09:00    2      59.89 SYSAUX                  1        7          0       1.4        1.0      185           0            0           0.0          192         0
  1209 10/05/20 09:00    2      59.89 UNDOTBS2                2        0          0       0.0        0.0       91           0            0           0.0           91         0
  1209 10/05/20 09:00    2      59.89 SYSTEM                  3        1          0       0.0        1.0        5           0            0           0.0            6         0
  1210 10/05/20 10:00    2      59.87 SYSAUX                  1       20          0       2.5        1.0      194           0            0           0.0          214         0
  1210 10/05/20 10:00    2      59.87 UNDOTBS2                2        0          0       0.0        0.0       88           0            0           0.0           88         0
  1210 10/05/20 10:00    2      59.87 SYSTEM                  3        0          0       0.0        0.0        4           0            0           0.0            4         0
  1211 10/05/20 11:00    2      60.00 DG14D7                  1   112984         31      21.0       63.5        0           0            0           0.0       112984        31
  1211 10/05/20 11:00    2      60.00 DG14D1                  2      382          0       5.8        1.0    15317           4         2257          37.0        15699         4
  1211 10/05/20 11:00    2      60.00 UNDOTBS2                3        0          0       0.0        0.0      263           0           44           0.0          263         0
  1211 10/05/20 11:00    2      60.00 SYSAUX                  4       12          0       1.7        1.0      239           0            0           0.0          251         0
  1211 10/05/20 11:00    2      60.00 SYSTEM                  5       44          0       2.0        1.0      101           0         1160         121.1          145         0
  1212 10/05/20 12:00    2      60.02 SYSAUX                  1       20          0      60.0        1.0      298           0            0           0.0          318         0
  1212 10/05/20 12:00    2      60.02 UNDOTBS2                2        0          0       0.0        0.0      176           0            0           0.0          176         0
  1212 10/05/20 12:00    2      60.02 SYSTEM                  3       41          0       3.9        1.0       27           0            0           0.0           68         0
  1213 10/05/20 13:00    2      60.25 DG14D1                  1      259          0       3.7        1.0    30061           8         1068          29.0        30320         8
  1213 10/05/20 13:00    2      60.25 SYSAUX                  2        9          0       2.2        1.0      265           0            0           0.0          274         0
  1213 10/05/20 13:00    2      60.25 UNDOTBS2                3        0          0       0.0        0.0      249           0            3          10.0          249         0
  1213 10/05/20 13:00    2      60.25 SYSTEM                  4       17          0     222.9        1.0       45           0         1881         192.4           62         0
  1214 10/05/20 14:00    2      59.80 SYSAUX                  1       44          0       4.1        1.0      285           0            0           0.0          329         0
  1214 10/05/20 14:00    2      59.80 UNDOTBS2                2        0          0       0.0        0.0      160           0            1           0.0          160         0
  1214 10/05/20 14:00    2      59.80 SYSTEM                  3        1          0      20.0        1.0       10           0            0           0.0           11         0
</pre></p>
<h3><span style="color:#800000;"><span style="text-decoration:underline;">Datafile IO statistics:</span></span></h3>
<p>Below are the datafiles with read/write activity across SNAP_IDs&#8230; You may notice that tablespaces <strong>DG14D7</strong> and <strong>DG14D1</strong> on disk group <strong>+DISKVOL1</strong> contains only user data while <strong>+DISKVOL3</strong> contains the SYSTEM, SYSAUX, UNDO tablespaces</p>
<p><pre class="brush: plain; highlight: [18,19,20,21,22]; wrap-lines: false;">
                                                                                                                    AWR File IO Report

                         i
                         n
       Snap              s       Snap
  Snap Start             t        Dur                                                                                           IO                IOPS                                      IOPS                                              IOPS
    ID Time              #        (m) TS                   File# Filename                                                     Rank    Reads Av Reads/s Av Rd(ms) Av Blks/Rd   Writes Av Writes/s Buffer Waits Av Buf Wt(ms) Total IO R+W Total R+W
------ --------------- --- ---------- -------------------- ----- ------------------------------------------------------------ ---- -------- ---------- --------- ---------- -------- ----------- ------------ ------------- ------------ ---------
  1208 10/05/20 08:00    2      60.25 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   1        0          0                           203           0            0           0.0          203         0
  1208 10/05/20 08:00    2      60.25 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 2        0          0                            90           0            0           0.0           90         0
  1208 10/05/20 08:00    2      60.25 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   3        0          0                             2           0            0           0.0            2         0
  1209 10/05/20 09:00    2      59.89 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   1        7          0       1.4        1.0      185           0            0           0.0          192         0
  1209 10/05/20 09:00    2      59.89 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 2        0          0                            91           0            0           0.0           91         0
  1209 10/05/20 09:00    2      59.89 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   3        1          0       0.0        1.0        5           0            0           0.0            6         0
  1210 10/05/20 10:00    2      59.87 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   1       20          0       2.5        1.0      194           0            0           0.0          214         0
  1210 10/05/20 10:00    2      59.87 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 2        0          0                            88           0            0           0.0           88         0
  1210 10/05/20 10:00    2      59.87 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   3        0          0                             4           0            0           0.0            4         0
  1211 10/05/20 11:00    2      60.00 DG14D7                  15 +DISKVOL1/rtldb/datafile/dg14d7.501.714759895                   1   112984        187      21.0       63.5        0           0            0           0.0       112984        31
  1211 10/05/20 11:00    2      60.00 DG14D1                  13 +DISKVOL1/rtldb/datafile/dg14d1.500.714758119                   2      382          1       5.8        1.0    15317          25         2257          37.0        15699         4
  1211 10/05/20 11:00    2      60.00 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 3        0          0                           263           0           44           0.0          263         0
  1211 10/05/20 11:00    2      60.00 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   4       12          0       1.7        1.0      239           0            0           0.0          251         0
  1211 10/05/20 11:00    2      60.00 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   5       44          0       2.0        1.0      101           0         1160         121.1          145         0
  1212 10/05/20 12:00    2      60.02 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   1       20          0      60.0        1.0      298           0            0           0.0          318         0
  1212 10/05/20 12:00    2      60.02 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 2        0          0                           176           0            0           0.0          176         0
  1212 10/05/20 12:00    2      60.02 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   3       41          0       3.9        1.0       27           0            0           0.0           68         0
  1213 10/05/20 13:00    2      60.25 DG14D1                  13 +DISKVOL1/rtldb/datafile/dg14d1.500.714758119                   1      259          0       3.7        1.0    30061          50         1068          29.0        30320         8
  1213 10/05/20 13:00    2      60.25 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   2        9          0       2.2        1.0      265           0            0           0.0          274         0
  1213 10/05/20 13:00    2      60.25 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 3        0          0                           249           0            3          10.0          249         0
  1213 10/05/20 13:00    2      60.25 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   4       17          0     222.9        1.0       45           0         1881         192.4           62         0
  1214 10/05/20 14:00    2      59.80 SYSAUX                   2 +DISKVOL3/rtldb/datafile/sysaux.299.714681829                   1       44          0       4.1        1.0      285           0            0           0.0          329         0
  1214 10/05/20 14:00    2      59.80 UNDOTBS2                 4 +DISKVOL3/rtldb/datafile/undotbs2.260.714681979                 2        0          0                           160           0            1           0.0          160         0
  1214 10/05/20 14:00    2      59.80 SYSTEM                   1 +DISKVOL3/rtldb/datafile/system.300.714681827                   3        1          0      20.0        1.0       10           0            0           0.0           11         0
</pre></p>
<h3><span style="color:#800000;"><span style="text-decoration:underline;">Top SQLs:</span></span></h3>
<p>I&#8217;d like to know the top SQLs running on the server, to my surprise  as I was investigating on the output&#8230; the <strong>number 1 SQL</strong> was the massive data load executed on the demo (<strong>SNAP_ID 1211</strong>)&#8230;</p>
<p>This direct-path load (INSERT /*+ APPEND */) was using an <strong>external table</strong> with flat files (<em>multiple small files in similar size with total size roughly around 50GB</em>) <strong>staged on a DBFS </strong>(database filesystem) and loading it to a <strong>compressed table</strong>&#8230; This is very similar to the Data Warehouse data loading best practice mentioned <a href="http://link.brightcove.com/services/player/bcpid62612523001?bctid=83113426001" target="_blank"><strong>here</strong></a></p>
<p>What&#8217;s interesting about this it was able to process the <strong>199million rows</strong> in just <strong>27mins</strong>! and take note of the low AAS (<strong>0.39</strong>) doing this operation&#8230; and it would be nice to see the SQL Monitor Report for this execution as well as the output of my AWR scripts on other RAC nodes.. and yes the final &#8220;select count(*)&#8230;&#8221; on the target table&#8230;</p>
<p>BTW, I&#8217;ve briefly explained the output of the AWR Top SQL script on this reply to <a href="http://www.freelists.org/post/oracle-l/SQLs-run-in-any-period,6" target="_blank">Oralce-l</a></p>
<p><pre class="brush: plain; highlight: [9]; wrap-lines: false;">
                                                                                                                    AWR Top SQL Report

                         i                                                                 Ela
                         n                                                                Time
       Snap              s    Snap                         Plan                 Ela        per        CPU         IO        App        Ccr    Cluster                                                                               PX       A
  Snap Start             t     Dur SQL                     Hash                Time       exec       Time       Wait       Wait       Wait       Wait                                 Direct                            Parse   Server       A Time SQL
    ID Time              #     (m) ID                     Value Module          (s)        (s)        (s)        (s)        (s)        (s)        (s)          LIO          PIO       Writes         Rows     Exec      Count     Exec       S Rank Text
------ --------------- --- ------- --------------- ------------ -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ------------ ------------ ------------ ------------ -------- ---------- -------- ------- ---- ------
  1211 10/05/20 11:00    2   60.00 gz90qgc3f72fa     1967845001 SQL*Plus    1411.13    1411.13     565.92     305.14       0.00      64.05     347.28       536400           93        99690    199553620        1         17       16    0.39    1 INSERT
  1213 10/05/20 13:00    2   60.25 gz90qgc3f72fa     1967845001 SQL*Plus    1359.58    1359.58     443.98     291.29       0.00      16.64     518.73       466179           17       292337    198131707        1         17       16    0.38    1 INSERT
  1211 10/05/20 11:00    2   60.00 4tb00t5k8jc41     3807662380 SQL*Plus    1306.22     326.56     999.78     307.32       0.00       0.00       0.00     13140180     13107338            0            3        4         20       12    0.36    2 select
  1050 10/05/13 18:00    2   59.94 g2cd0wdckd7rn     3807662380 SQL*Plus     785.48                575.09     210.45       0.00       0.00       0.00      7226484      7208526            0            0        0          8        8    0.22    1 select
  1049 10/05/13 17:00    2   59.93 g2cd0wdckd7rn     3807662380 SQL*Plus     785.42                577.15     208.40       0.00       0.00       0.00      7191030      7173160            0            0        0          8        8    0.22    1 select
  1213 10/05/20 13:00    2   60.25 0kkhhb2w93cx0     2170058777              469.05       0.29       3.21       0.00       0.00      11.60     452.32        32076            0            0         1610     1610       1609        0    0.13    2 update
  1211 10/05/20 11:00    2   60.00 2nszgcfgcgvts      666733144 SQL*Plus     418.08     418.08     151.28     233.01       0.00       0.03       0.00         1782           17            0            1        1         17       16    0.12    3 select
  1211 10/05/20 11:00    2   60.00 0kkhhb2w93cx0     2170058777              215.14       0.17       1.37       0.00       0.00       4.70     208.65        12228            0            0         1263     1263       1263        0    0.06    4 update
  1212 10/05/20 12:00    2   60.02 4tb00t5k8jc41      597344198 SQL*Plus     125.51     125.51       1.75     123.71       0.00       0.00       0.00       519885       518076            0            1        1          5        4    0.03    1 select
</pre></p>
<p>Well this is really different from what <a href="http://structureddata.org" target="_blank">Greg Rahn</a> has done on the <strong>Exadata V2</strong> loading <a href="http://structureddata.org/2010/04/23/the-core-performance-fundamentals-of-oracle-data-warehousing-data-loading" target="_blank"><strong>7.8 billion rows in 275 seconds!</strong></a> hmmm because of a whole lot of factors.. bigger bandwidth, faster CPUs, the Sun machines, new cool stuff on the V2, compression, table definition, # of columns, data type, etc. etc. etc. etc.</p>
<p>But this is astounding compared to the data load rate I&#8217;m seeing on other Data Warehouse environments&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And this is where the importance of having a <strong>balanced configuration</strong> kicks in.. On some environments I see <strong>storage saturation</strong> (worst is seeing the disks 100% busy with high service times and queue) and <strong>low storage bandwidth</strong> causing low data load rate and longer response times affecting the whole ETL process&#8230; as an example you can see from the figures below that even if you have the right amount of CPU (16 powerful CPUs) but if the IO subsystem can&#8217;t cope with the application requirements you clearly have a bottleneck.. This is a linear regression I made on IO read and write MB/s on Direct Path Read and Large Writes respectively in relation to the scheduled ETL run times and daily workload patterns.</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<th>IO read</th>
<th>IO write</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S_qY9DzBDTI/AAAAAAAAAvQ/hEqD4p_0tSs/linear-ior.png"><img class="aligncenter" title="Tony Buzan" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S_qY9DzBDTI/AAAAAAAAAvQ/hEqD4p_0tSs/s288/linear-ior.png" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S_qY9d0V1jI/AAAAAAAAAvU/gmYOwk0lxas/linear-iow.png"><img title="http://agutie.homestead.com/files/mindmap/oracle_database_mind_map.html" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S_qY9d0V1jI/AAAAAAAAAvU/gmYOwk0lxas/s288/linear-iow.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Having seen how Exadata behaves and learning about the architecture, administration, IORM (IO Resource Management), monitoring, and migration paths&#8230; although lacking hands-on experience and there are more things I still have to learn! I can say that it&#8217;s <strong>no longer a black box</strong>&#8230; it has already been <strong>demystified</strong>..  ;)  I have to say.. hands-down to the <strong>Exadata Storage Server Software</strong> without it all the storage servers will just behave as a <strong>traditional storage server</strong> and it&#8217;s the cool stuff that makes each of them able to run on its full speed given the bandwidth limits..</p>
<h3><span style="color:#800000;"><span style="text-decoration:underline;">Also there are some stuff I am curious about in Exadata V2 or V1&#8230;</span></span></h3>
<p>1) Having most of the work done underneath, I wonder what&#8217;s the <strong>saturation point</strong> of the Storage Servers and when will be the trigger that I have to <strong>add another</strong> storage server or Exadata rack..</p>
<p>2) And how is it going to be if applied with <strong>IORM (IO Resource Management)</strong> and production and test databases are sharing Exadata Storage Servers&#8230; more like <strong>large scale consolidation of databases</strong>&#8230; hmm..</p>
<p>3) I wonder how this will change the <strong>capacity planning space</strong>.. because you now have Storage Servers that could <strong>work smart</strong> and <strong>work hard</strong> making the difference for the leap in performance.. hmm..</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/2023/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/2023/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=2023&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/s-fGhPvRrbo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/05/30/seeing-exadata-in-action/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S_1yYtoWXBI/AAAAAAAAAvs/0wmqgeRVNO4/s288/exadata.jpg" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S_qY9DzBDTI/AAAAAAAAAvQ/hEqD4p_0tSs/s288/linear-ior.png" medium="image">
			<media:title type="html">Tony Buzan</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S_qY9d0V1jI/AAAAAAAAAvU/gmYOwk0lxas/s288/linear-iow.png" medium="image">
			<media:title type="html">http://agutie.homestead.com/files/mindmap/oracle_database_mind_map.html</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/05/30/seeing-exadata-in-action/</feedburner:origLink></item>
		<item>
		<title>My Personal Wiki – karlarao.tiddlyspot.com</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/0z_FOXerYYE/</link>
		<comments>http://karlarao.wordpress.com/2010/04/10/my-personal-wiki-karlarao-tiddlyspot-com/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 18:04:11 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1792</guid>
		<description><![CDATA[Our brain does not work in a linear or list-like manner (yeah.. not like the guy on the right). From the textbooks and blogs that we read everyday we are all aware that print is laid out in a series of lines or rows&#8230; but our brain is multidimensional&#8230; the information as it is being absorbed could be travelling sequentially to our brain, but internally it is not being serviced in simple lists and lines. There is a complex process of sorting and selecting and the whole network of words and ideas are being juggled <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/04/10/my-personal-wiki-karlarao-tiddlyspot-com/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1792&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<table border="0" cellpadding="5" width="100%" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
Our brain <strong>does not</strong> work in a linear or list-like manner (yeah.. not like the guy on the right). From the textbooks and blogs that we read everyday we are all aware that print is laid out in a series of lines or rows&#8230;</p>
<p>but our brain is multidimensional&#8230;</p>
<p><span id="more-1792"></span></p>
<p>the information as it is being absorbed could be travelling sequentially to our brain, but internally it is not being serviced in simple lists and lines. There is a complex process of sorting and selecting and the whole network of words and ideas are being juggled and interlinked in order to have a far better meaning.</p>
<p>We also receive each word that we read in the context of the words that surround it and also basing it on our own special interpretation as dictated by our experiences and personal information patterns.</td>
<td valign="top"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77KftKjjgI/AAAAAAAAArw/XItfKA2lkq8/think_linear_linear_regression.jpg"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77KftKjjgI/AAAAAAAAArw/XItfKA2lkq8/s288/think_linear_linear_regression.jpg" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>You can see from the illustrations below, that just by looking at them particularly on the <strong>key words</strong> and <strong>connections</strong> we could easily get the whole idea about the topic&#8230;</p>
<table border="0" cellspacing="20" cellpadding="5" align="center">
<tbody>
<tr>
<th>Tony Buzan&#8217;s mind map of his bio</th>
<th>Mind map of Oracle Products (not updated)</th>
</tr>
<tr>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77KfqCLdJI/AAAAAAAAArs/zmy4EvoWYBM/TonyBuzan.jpg"><img class="aligncenter" title="Tony Buzan" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77KfqCLdJI/AAAAAAAAArs/zmy4EvoWYBM/s288/TonyBuzan.jpg" alt="" /></a></td>
<td style="border:solid gray 3px;background:white;" valign="center"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S77KfqF045I/AAAAAAAAAro/YJqkfuoLx-Q/OracleMindMap.png"><img title="http://agutie.homestead.com/files/mindmap/oracle_database_mind_map.html" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S77KfqF045I/AAAAAAAAAro/YJqkfuoLx-Q/s288/OracleMindMap.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>And this is where the Mind Map is very useful.. the <strong>non-linear structure</strong> of words and topics and interconnections makes us easy to &#8220;slot in&#8221; and relate to the main idea and branch out as dictated by the individual ideas and general form of the central theme. </p>
<p>I also do this when reading books and important articles, on the meetings, and doing presentations. Which is also very helpful for recall and retention and going back to the state of my mind when I&#8217;m studying that particular topic or idea. Yes.. there are really moments that I become very forgetful about stuffs on the time that I really need it, and I just get back on my notes/sketches to refresh and get things done <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As for my files I also file and organize them on my &#8220;knowledge folders&#8221;. As an Oracle database consultant, I need to learn and read a lot of stuff (whitepapers,presentations,howto,etc.) about Oracle and related technologies&#8230; as time goes on, I&#8217;ll be reading more and more and will add up to my body of knowledge&#8230; just like the concept of Mind Map, these <strong>folders</strong> and the <strong>documents</strong> in it are well organized and very useful to get things done <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77N7GFtwYI/AAAAAAAAAr0/Ftx9qzranig/KnowledgeFolders.png"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77N7GFtwYI/AAAAAAAAAr0/Ftx9qzranig/s400/KnowledgeFolders.png" alt="" /></a></p>
<table border="0" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
Then, a friend of mine, <a href="http://www.facebook.com/tommy.c.lim" target="_blank">Tommy Lim</a> mentioned something about a personal wiki his friend shared him that is very useful for his Java development work, all of his useful stuffs are there all on one single file and could even be stored on a USB and shared to others&#8230; </p>
<p>Yes.. this is the <strong><a href="http://tiddlywiki.org" target="_blank">TiddlyWiki</a>, a self-contained wiki</strong> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So I tried it, I first got the empty TiddlyWiki file <a href="http://tiddlywiki.org/wiki/Downloading_TiddlyWiki" target="_blank">here</a> (from TiddlyWiki.org) and started playing with it and put some contents. Yes, it was just one file.. see the image on the right &#8212;&gt;</p>
</td>
<td valign="center">
<a href="http://tiddlywiki.org" target="_blank"><img class="alignleft" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S8BLBK4AC7I/AAAAAAAAAsU/Jq3Wm21SlAQ/tiddlywikilogo.png" alt="" /></a></p>
<p><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S77Kfb5WQ8I/AAAAAAAAArk/z1e_bDSJ-Vw/TiddlyWikiFolder.png"><img class="alignleft" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S77Kfb5WQ8I/AAAAAAAAArk/z1e_bDSJ-Vw/s288/TiddlyWikiFolder.png" alt="" /></a></p>
</td>
</tr>
</tbody>
</table>
<p><span style="color:white;"> </span></p>
<table border="0" cellpadding="5" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
And then I realized that I wanted something <strong>hosted</strong> so people can make use of my TiddlyWiki and also I will be able to access my useful stuffs and cheat sheets anywhere that has a browser and internet connection.. so I made use of <a href="http://tiddlyspot.com/" target="_blank">Tiddlyspot</a> <strong>(FREE!)</strong></p>
<p>BTW, I made use of the <a href="http://mptw.tiddlyspot.com/" target="_blank">MonkeyPirateTiddlyWiki (MPTW)</a> flavour for its powerful <strong>TagglyTagging</strong> feature for organizing the TiddlyWiki data (to avoid hand maintaining &#8220;index&#8221; pages of the tiddlers). </p>
<p>Still not convinced? Check <a href="http://mptw.tiddlyspot.com/#%5B%5B3.%20Why%20use%20TagglyTagging%3F%5D%5D" target="_blank">here</a> for more info..
</td>
<td valign="center">
<a href="http://tiddlyspot.com/" target="_blank"><img class="alignleft" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S8BLBVbTmsI/AAAAAAAAAsY/nywCRgqbOO4/tiddlyspotlogo.png" alt="" /></a></p>
<p><a href="http://karlarao.tiddlyspot.com" target="_blank"><img class="alignleft" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S77uum-q85I/AAAAAAAAAr4/_x-5BbxHY8A/s400/Tiddlyspot.png" alt="" /></a></p>
</td>
</tr>
</tbody>
</table>
<p><span style="color:white;"> </span></p>
<h3><span style="color:#800000;">So will I still be blogging? &#8230;<br />
what can you get from my TiddlyWiki?</span></h3>
<p><strong>YES I will still blog!</strong> For me, each blog post has its own <strong>story and experience</strong> just like what I&#8217;ve shared on my <a href="http://karlarao.wordpress.com/index-of-my-posts/" target="_blank">past entries</a> that will be very useful for people who have not yet been on a similar problem or scenario.. (yeah, still more to come <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<p>But the sequential nature of the blog makes it difficult to organize things just like the concept of the Mind Map.. So expect my TiddlyWiki to contain more cheat sheets, howtos, guides, scripts, test cases, notes, and links to important documents or sites. </p>
<p>In short, more on <strong>my body of knowledge</strong>.. BTW, <a href="http://feeds.feedburner.com/KarlAraoTiddlyWiki" target="_blank">RSS</a> is also available <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>You can start making your own hosted TiddlyWiki by following this video: </strong></p>
<span style="text-align:center; display: block;"><a href="http://karlarao.wordpress.com/2010/04/10/my-personal-wiki-karlarao-tiddlyspot-com/"><img src="http://img.youtube.com/vi/sgQqP1_lZG4/2.jpg" alt="" /></a></span>
<p>Below are some links for further reading about TiddlyWiki:</p>
<h3><span style="color:#800000;">Reviews:</span></h3>
<p><a href="http://jaybyjayfresh.com/2008/01/23/tiddlytemplating-using-tiddlywiki-to-create-webpages/" target="_blank">http://jaybyjayfresh.com/2008/01/23/tiddlytemplating-using-tiddlywiki-to-create-webpages/</a></p>
<h3><span style="color:#800000;">Howto:</span></h3>
<p><a href="http://faq.tiddlyspot.com/" target="_blank">http://faq.tiddlyspot.com/</a><br />
<a href="http://www.giffmex.org/twfortherestofus.html" target="_blank">http://www.giffmex.org/twfortherestofus.html</a><br />
<a href="http://tiddlywiki.org/wiki/TiddlyWiki_Resources" target="_blank">http://tiddlywiki.org/wiki/TiddlyWiki_Resources</a><br />
<a href="http://tiddlythemes.com/#Home" target="_blank">http://tiddlythemes.com/#Home</a><br />
<a href="http://tiddlyspot.blogspot.com/2007/09/tiddlythemes-images-now-work-on-your.html" target="_blank">http://tiddlyspot.blogspot.com/2007/09/tiddlythemes-images-now-work-on-your.html</a><br />
<a href="http://tiddlywiki.org/wiki/How_To/Setting_Up_TiddlyWiki_As_a_Website" target="_blank">http://tiddlywiki.org/wiki/How_To/Setting_Up_TiddlyWiki_As_a_Website</a><br />
<a href="http://parand.com/say/index.php/2006/01/06/howto-using-tiddlywiki/" target="_blank">http://parand.com/say/index.php/2006/01/06/howto-using-tiddlywiki/</a><br />
<a href="https://docs.google.com/fileview?id=0B5H46jS7ZPdJYTBhOGNkNDctOTJlNC00ZDVkLWExMTQtY2NhODZjMTAzMTAz&amp;hl=en" target="_blank">Tiddlywiki Formatting Guide</a><br />
<a href="https://docs.google.com/fileview?id=0B5H46jS7ZPdJODVmMDE2OTItOTdjNS00ODYzLWFjYzEtZjZlYzRlOWEwZmJm&amp;hl=en" target="_blank">Intro to TiddlyWiki</a></p>
<h3><span style="color:#800000;">Facts:</span></h3>
<p><a href="http://en.wikipedia.org/wiki/TiddlyWiki" target="_blank">http://en.wikipedia.org/wiki/TiddlyWiki</a><br />
<a href="http://en.wikipedia.org/wiki/Personal_wiki" target="_blank">http://en.wikipedia.org/wiki/Personal_wiki</a><br />
<a href="http://en.wikipedia.org/wiki/Getting_Things_Done" target="_blank">http://en.wikipedia.org/wiki/Getting_Things_Done</a><br />
<a href="http://en.wikipedia.org/wiki/Comparison_of_wiki_software" target="_blank">http://en.wikipedia.org/wiki/Comparison_of_wiki_software</a><br />
<a href="http://en.wikipedia.org/wiki/List_of_wiki_software" target="_blank">http://en.wikipedia.org/wiki/List_of_wiki_software</a></p>
<p>I hope I&#8217;ve shared you some good stuff <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Enjoy!</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1792/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1792&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/0z_FOXerYYE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/04/10/my-personal-wiki-karlarao-tiddlyspot-com/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77KftKjjgI/AAAAAAAAArw/XItfKA2lkq8/s288/think_linear_linear_regression.jpg" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77KfqCLdJI/AAAAAAAAArs/zmy4EvoWYBM/s288/TonyBuzan.jpg" medium="image">
			<media:title type="html">Tony Buzan</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S77KfqF045I/AAAAAAAAAro/YJqkfuoLx-Q/s288/OracleMindMap.png" medium="image">
			<media:title type="html">http://agutie.homestead.com/files/mindmap/oracle_database_mind_map.html</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S77N7GFtwYI/AAAAAAAAAr0/Ftx9qzranig/s400/KnowledgeFolders.png" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S8BLBK4AC7I/AAAAAAAAAsU/Jq3Wm21SlAQ/tiddlywikilogo.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S77Kfb5WQ8I/AAAAAAAAArk/z1e_bDSJ-Vw/s288/TiddlyWikiFolder.png" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S8BLBVbTmsI/AAAAAAAAAsY/nywCRgqbOO4/tiddlyspotlogo.png" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S77uum-q85I/AAAAAAAAAr4/_x-5BbxHY8A/s400/Tiddlyspot.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/04/10/my-personal-wiki-karlarao-tiddlyspot-com/</feedburner:origLink></item>
		<item>
		<title>“Ideas build off ideas”… making use of Social Networking sites</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/g4pvfwZlNi4/</link>
		<comments>http://karlarao.wordpress.com/2010/03/27/ideas-build-off-ideas-making-use-of-social-networking-sites/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 11:50:14 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=776</guid>
		<description><![CDATA[In this post (which has been looong overdue :p ) I&#8217;ll show you how you could make use of Social Networking Sites to make knowledge sharing and meeting people more fun. As you can see from the illustration above, I&#8217;ve made use of the following sites/services to build a dynamic and multidimensional means of communication: Facebook Twitter FeedBurner RSS FeedBurner Mail Subscription Google Sites LinkedIn The story behind it&#8230; I am a DBA for 4years+, and started with zero knowledge about Oracle. I joined SQL*Wizard, which has a great training program and exposed me to <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/03/27/ideas-build-off-ideas-making-use-of-social-networking-sites/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=776&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter" title="OracleUsersPh" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Sus4aufKcHI/AAAAAAAAAW4/avT_o2R5MLw/OracleUsersPhModel-800.png" alt="OracleUsersPh" /></p>
<p>In this post (<strong>which has been looong overdue :p</strong> ) I&#8217;ll show you how you could make use of Social Networking Sites to make knowledge sharing and meeting people more fun. As you can see from the illustration above, I&#8217;ve made use of the following sites/services to build a dynamic and multidimensional means of communication:</p>
<p><strong> </strong></p>
<ul>
<li><strong>Facebook</strong></li>
<li><strong>Twitter</strong></li>
<li><strong>FeedBurner RSS</strong></li>
<li><strong>FeedBurner Mail Subscription</strong></li>
<li><strong>Google Sites</strong></li>
<li><strong>LinkedIn</strong></li>
</ul>
<p><strong> </strong></p>
<p><span id="more-776"></span></p>
<h3><span style="color:#800000;">The story behind it&#8230;</span></h3>
<p>I am a DBA for 4years+, and started with <strong>zero</strong> knowledge about Oracle. I joined SQL*Wizard, which has a great training program and exposed me to a lot of difficult DBA situations. After a while I got my OCA and OCP then got interested on Linux and got my RHCT&#8230; well, hopefully RHCE soon. All of my accumulated knowledge came from three things. <strong>First:</strong> lots of reading/research <strong>Second:</strong> doing test cases&#8230;.. <strong>Third:</strong>&#8230;..guess what&#8230;.</p>
<p>it&#8217;s the <strong>community.</strong></p>
<p>And speaking of community, we have our local users group here, called <strong>Philippine Oracle Users Group (POUG)</strong> which has been inactive for a long time (speaking based on my experience)  I joined the POUG Yahoo Group last November 2007, ever since I joined there was no activity&#8230; then months have passed I was able to gain more knowledge and experience as a DBA, joined other forums, participated on online communities, mailing list, and even follow other Users Group activities. Then one day, I was checking on some of the Yahoo Groups that I&#8217;ve joined and a couple of mouse clicks brought me again to POUG Yahoo Group and noticed the last message was still year 2007&#8230;. yes I felt bad&#8230;. I think the community spirit among technology groups in the US or other countries seems to be stronger&#8230; I admire these guys, and I want to have one here, locally. It&#8217;s just difficult to motivate people to share ideas and help each other.</p>
<p>BTW the latest news about POUG&#8230; it is closing down as a corporation. There could be a number of reasons and one of them could be the inactive status. Whatever are the reasons for closing it, I am sure I&#8217;m not alone wanting to have a local community&#8230;</p>
<p>It got me thinking, why not do some social experiment? &#8230; If I could pool a number of Oracle Users (DBA/Developers), feed them updates about the latest in Oracle, give helpful articles, links, blogs, videos, or any technical info that would be useful on their everyday tasks will stir up the curiosity and I may find like minded people that could help me build (or revive) the local Users Group/community. Well, I&#8217;d like to have an environment similar to Oracle-L (<a href="http://www.freelists.org/list/oracle-l" target="_blank">http://www.freelists.org/list/oracle-l</a>) or China&#8217;s ITPUB (<a href="http://www.itpub.net" target="_blank">http://www.itpub.net</a>), where you can find lots of good stuff, good questions, good replies, no one is ranting about something (<em>but this can&#8217;t be completely avoided</em>), somebody is sharing of a problem then the other guy (expert or a newbie) shares his solution, nobody thinks of competition (company A vs. company B, or consultant A or B vs C)&#8230;</p>
<p><strong>just pure technology</strong>&#8230;(but yes, preferably there should be real interaction)</p>
<p>All of these <strong>inspired</strong> me to create a Facebook page, and called it <strong>“Oracle Users – Philippines” </strong>(sorry I can&#8217;t think of a better name <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) &#8230; One service/site followed after the other (<strong>LinkedIn</strong>, <strong>Twitter</strong>, <strong>RSS Feed</strong> and <strong>Mail Subscription</strong>)&#8230;. and somehow I managed to create a useful link between them. But the primary objective for putting up these networking accounts is to have a pool of professionals &amp; newbies sharing knowledge, experiences, and helping each other.</p>
<p>Since it was created last year (latter part of 2009), it has now grown to <strong>300+ members</strong>! (and still increasing) you can see the demographics below:</p>
<p style="text-align:center;"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S63Ut5TAWXI/AAAAAAAAAq4/OY56-1LsJtE/OracleUsersPhilippinesFacebook1.png"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S63Ut5TAWXI/AAAAAAAAAq4/OY56-1LsJtE/s800/OracleUsersPhilippinesFacebook1.png" alt="" /></a></p>
<p>And you can see the rate of page views over the period of October to March which is a proof that there are people reading the daily entries <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:center;"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S63UuKXh-BI/AAAAAAAAAq8/1KcIGk3EzCY/OracleUsersPhilippinesFacebook2.png"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S63UuKXh-BI/AAAAAAAAAq8/1KcIGk3EzCY/s800/OracleUsersPhilippinesFacebook2.png" alt="" /></a></p>
<h3><span style="color:#800000;">So what&#8217;s happening?</span></h3>
<p>Also, we&#8217;ve been using these networking accounts to spread the news about the periodic DBA round table, technical sessions, enablement and workshops. See a sample post from Shaheen (from Oracle Singapore) below. She&#8217;s on the same team as <a href="http://blogs.oracle.com/blayton" target="_blank">Blair Layton</a>, and they&#8217;ve been doing good on putting up community programs here in the Philippines. Thanks for them for giving me the chance to present twice on the DBA round table.</p>
<p style="text-align:center;"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S63iftDWtjI/AAAAAAAAArA/z8nER7csu1g/OracleUsersPhilippinesFacebook3.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S63iftDWtjI/AAAAAAAAArA/z8nER7csu1g/OracleUsersPhilippinesFacebook3.png" alt="" /></a></p>
<p>Also, just recently the Upgrade Guys were here in Manila (<a href="http://blogs.oracle.com/UPGRADE/2010/03/workshop_in_manila_philppines.html" target="_blank">see the blog post here</a>) for a one day 11gR2 upgrade seminar. There were a lot of attendees! .. roughly around 70+..  composed of customers, partners, and even Oracle employees&#8230; and I was happy to meet new friends and see a comment like the one below after the event </p>
<p style="text-align:center;"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S63ifqyb9rI/AAAAAAAAArE/6k8vYg6lBok/OracleUsersPhilippinesFacebook4.png"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S63ifqyb9rI/AAAAAAAAArE/6k8vYg6lBok/OracleUsersPhilippinesFacebook4.png" alt="" /></a></p>
<p>&#8230;.So even if I don&#8217;t frequently post on this blog, I <strong>microblog</strong> a lot of useful stuff on these networking sites <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And I think connecting people within these networking sites is a good place to start&#8230;. so let&#8217;s see what happens next <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/776/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/776/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=776&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/g4pvfwZlNi4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/03/27/ideas-build-off-ideas-making-use-of-social-networking-sites/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Sus4aufKcHI/AAAAAAAAAW4/avT_o2R5MLw/OracleUsersPhModel-800.png" medium="image">
			<media:title type="html">OracleUsersPh</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S63Ut5TAWXI/AAAAAAAAAq4/OY56-1LsJtE/s800/OracleUsersPhilippinesFacebook1.png" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S63UuKXh-BI/AAAAAAAAAq8/1KcIGk3EzCY/s800/OracleUsersPhilippinesFacebook2.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S63iftDWtjI/AAAAAAAAArA/z8nER7csu1g/OracleUsersPhilippinesFacebook3.png" medium="image" />

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S63ifqyb9rI/AAAAAAAAArE/6k8vYg6lBok/OracleUsersPhilippinesFacebook4.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/03/27/ideas-build-off-ideas-making-use-of-social-networking-sites/</feedburner:origLink></item>
		<item>
		<title>DEVCON Luzon 2010</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/vJpIuoBSitU/</link>
		<comments>http://karlarao.wordpress.com/2010/02/04/devcon-luzon-2010/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 01:16:37 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1662</guid>
		<description><![CDATA[I just recently I became a member of the PSIA Tech Council&#8230; The company I&#8217;m working for is a member of PSIA which makes up 90% of the country&#8217;s software sector promoting the growth and global competitiveness of the Philippine software industry, also an active partner of the government and academe in implementing programs that benefit the industry. The PSIA, PSIA Tech Council, together with the Awesome and Cool sponsors will be having the Luzon leg of DEVCON here in Manila! Below are the details of this awesome event: 09 February 2010, 4-9pm, SMX Convention <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/02/04/devcon-luzon-2010/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1662&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I just recently I became a member of the <a href="http://psia.org.ph/tech" target="_blank">PSIA Tech Council</a>&#8230; The company I&#8217;m working <a href="http://sqlwizard.com" target="_blank">for</a> is a member of <a href="http://psia.org.ph" target="_blank">PSIA</a> which makes up 90% of the country&#8217;s software sector promoting the growth and global competitiveness of the Philippine software industry, also an active partner of the government and academe in implementing programs that benefit the industry.</p>
<p><span id="more-1662"></span></p>
<p>The <strong>PSIA</strong>, <strong>PSIA Tech Council</strong>, together with the <strong>Awesome</strong> and <strong>Cool sponsors</strong> will be having the <strong>Luzon leg of DEVCON</strong> here in <strong>Manila</strong>!</p>
<p><span style="text-decoration:underline;">Below are the details of this <em>awesome</em> event:</span><br />
<span style="color:white;"> </span></p>
<p style="padding-left:30px;"><em><strong>09 February 2010, 4-9pm, SMX Convention Center Function Room 1</strong></em></p>
<h3 style="padding-left:30px;"><strong><span style="color:#008000;">Sync. Support. Succeed.</span></strong></h3>
<p style="padding-left:30px;">Get together to be connected, enhance skills and support each other to achieve success!</p>
<p style="padding-left:30px;">Designed to be a premier gathering of all Filipino software engineers, DEVCON facilitates collaboration, interaction and mentoring among leading practitioners of the Philippine software industry. DEVCON adapts global best practices for skills improvement and professional advancement among Filipino software engineers. It features three main elements which has successful formats used in international technology gatherings:</p>
<p style="padding-left:60px;">&gt; <strong>Lightning Talks</strong> &#8211; a fast-paced presentation on any topic of interest<br />
&gt; <strong>Birds of a Feather</strong> &#8211; a dynamic discussion of opposing perspectives on mutual topics<br />
&gt; <strong>Hackathon</strong> &#8211; providing rapid learning of a new technology through hands-on demonstration or joint coding onsite</p>
<p style="padding-left:30px;"><a title="Register Now!" href="http://devcon.ph/DevCon.ph/Registration.html" target="_blank">Register</a> online for your <strong>FREE</strong> seat. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="padding-left:30px;"><a href="http://devcon.ph" target="_blank">http://devcon.ph</a><br />
Check us out on <a href="http://www.facebook.com/event.php?eid=266950812981&amp;ref=mf" target="_blank">Facebook</a>.</p>
<p style="padding-left:30px;"><em>DEVCON is a pioneering event of the Philippine Software Industry Association.</em></p>
<table border="0" cellpadding="2" align="center">
<tbody>
<tr>
<td valign="top"><span style="color:white;"> </span><br />
<a title="Register Now!" href="http://devcon.ph/DevCon.ph/Registration.html" target="_blank">Registration</a></p>
<p><a title="Volunteer Now!" href="http://devcon.ph/DevCon.ph/Volunteers.html" target="_blank">Volunteer</a></p>
<p><a title="DEVCON Luzon" href="http://devcon.ph/DevCon.ph/Luzon.html" target="_blank">Luzon</a></p>
<p><a title="DEVCON Visayas" href="http://devcon.ph/DevCon.ph/Visayas.html" target="_blank">Visayas</a></p>
<p><a title="DEVCON Mindanao" href="http://devcon.ph/DevCon.ph/Mindanao.html" target="_blank">Mindanao</a></td>
<td valign="top"><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2oZlrVuaZI/AAAAAAAAApg/yKU-FGQcZp8/metromanilamap.gif"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2oZlrVuaZI/AAAAAAAAApg/yKU-FGQcZp8/s144/metromanilamap.gif" alt="" /></a></td>
</tr>
</tbody>
</table>
<p><span style="color:white;"> </span></p>
<p><a href="http://devcon.ph/DevCon.ph/Home.html" target="_blank"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S2n_p_3sFGI/AAAAAAAAApQ/LWmws14dkcw/s800/DevCon%20eVite%20-%20Luzon.jpg" alt="" /></a></p>
<p style="text-align:center;"><span style="text-decoration:underline;"><br />
</span></p>
<p><a title="http://www.wowpinoy.net/travelexplore/image/smxc.jpg" href="http://www.smxconventioncenter.com" target="_blank"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2oCEpif9PI/AAAAAAAAApU/i_B154NeSF4/s800/smx1.jpg" alt="" /></a></p>
<p style="text-align:center;"><span style="text-decoration:underline;">The <em>awesome</em> venue</span></p>
<p><a href="http://maps.google.com/maps?ie=UTF8&amp;q=smx+convention+center&amp;fb=1&amp;gl=ph&amp;hq=smx+convention+center&amp;hnear=Manila&amp;hl=en&amp;view=map&amp;cid=11800865120342890793&amp;iwloc=A&amp;ved=0CBcQpQY&amp;sa=X&amp;ei=7_9pS7LMBI36tQOevY3MBA" target="_blank"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2oCEvQVhqI/AAAAAAAAApY/Vt4-fGkZAkE/s400/smx2.jpg" alt="" /></a></p>
<p style="text-align:center;"><span style="color:white;"> </span><span style="text-decoration:underline;">Map of the venue</span><br />
<span style="color:white;"> </span></p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
BTW, the <a title="DEVCON Luzon" href="http://devcon.ph/DevCon.ph/Luzon.html" target="_blank"><em>program</em></a> mentioned the words <strong>Pizza</strong> and <strong>Beer</strong> (twice). That would be cool <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  See you there!</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<em><strong>Update (20100319):</strong></em><br />
We were invited by <a href="http://www.apc.edu.ph" target="_blank">Asia Pacific College</a> to host a DEVCON on their College Week. I did a Lightning Talk (10-15mins presentation) about <strong>Virtualization</strong> giving the students a historical background (mainframe days) and moving forward to x86 architecture (xen,kvm,etc.). I also explained to them the comparison of different methods to do x86 Virtualization. These are very useful info when they start to apply or try these technologies on the real world. Overall the event was great <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and we had a very interesting Q&amp;A/discussion about career matters.</p>
<p>Check out my presentation here <a href="https://docs.google.com/fileview?id=0B5H46jS7ZPdJMjczNTJiZWEtYjhlOS00Y2QwLThjZmMtZDA0NjIwODkwOGQz&amp;hl=en" target="_blank">(pdf)</a> &#8211; DEVCON Event@Asia Pacific College, 03/19/2010</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1662&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/vJpIuoBSitU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/02/04/devcon-luzon-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2oZlrVuaZI/AAAAAAAAApg/yKU-FGQcZp8/s144/metromanilamap.gif" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S2n_p_3sFGI/AAAAAAAAApQ/LWmws14dkcw/s800/DevCon%20eVite%20-%20Luzon.jpg" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2oCEpif9PI/AAAAAAAAApU/i_B154NeSF4/s800/smx1.jpg" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2oCEvQVhqI/AAAAAAAAApY/Vt4-fGkZAkE/s400/smx2.jpg" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/02/04/devcon-luzon-2010/</feedburner:origLink></item>
		<item>
		<title>Craig Shallahamer is now blogging!</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/D2AI8SJEvyM/</link>
		<comments>http://karlarao.wordpress.com/2010/02/01/craig-shallahamer-is-now-blogging/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 01:45:25 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1624</guid>
		<description><![CDATA[Craig Shallahamer is now blogging&#8230; check out his initial post here! Earlier I had a few mail exchanges with him and got to check his new work.. called the Stress Identifier. Hmm.. so how it will be helpful? Well if you have already characterized your workload, you may want to definitively determine which internal database activity is stressing your CPU, IO, and network subsystems. So this tool will avoid the guess work of selecting that &#8220;unit of work&#8221;&#8230; check out the link for more details&#8230; And most of all.. grab a copy of his new <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/02/01/craig-shallahamer-is-now-blogging/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1624&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Craig Shallahamer is now blogging&#8230; check out his initial post <a title="Orapub - Oracle Performance Firefighting" href="http://shallahamer-orapub.blogspot.com/2010/01/mystery-surrounding-11g-and-direct.html" target="_blank">here</a>!</p>
<p>Earlier I had a few mail exchanges with him and got to check his new work.. called the <a title="Orapub - Oracle Stress Identifier" href="http://resources.orapub.com/product_p/Stress_Identifier.html" target="_blank">Stress Identifier</a>. Hmm.. so how it will be helpful? Well if you have already characterized your <a href="http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/" target="_blank">workload</a>, you may want to definitively determine which internal database activity is stressing your CPU, IO, and network subsystems. So this tool will avoid the guess work of selecting that &#8220;unit of work&#8221;&#8230; check out the link for more details&#8230;</p>
<p><span id="more-1624"></span></p>
<p>And most of all.. grab a copy of his new book <a title="Orapub - Oracle Performance Firefighting" href="http://resources.orapub.com/?Click=35884" target="_blank">Oracle Performance Firefighting</a>&#8230; which got lots of good stuff on performance <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1624/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1624&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/D2AI8SJEvyM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/02/01/craig-shallahamer-is-now-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2010/02/01/craig-shallahamer-is-now-blogging/</feedburner:origLink></item>
		<item>
		<title>Workload characterization using DBA_HIST tables and kSar</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/b_mF4Jkt-Kw/</link>
		<comments>http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 15:37:52 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1583</guid>
		<description><![CDATA[Been busy these past few days.. Well, this post is about taking advantage of the built in data store that started in 10gR1.. yeah it&#8217;s AWR, and it&#8217;s very much like a &#8220;Statspack on steroids&#8221; (got that from Kyle Hailey&#8217;s modules). What&#8217;s exciting about 10g and above is we could utilize the &#8220;Time Model&#8221; and the OSSTAT view and use them together with the SYSTAT view to have a far better workload information when going through all the SNAP_IDs. I have this &#8220;little&#8221; issue before of getting lazy when generating multiple AWR reports&#8230; yeah it&#8217;s just <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1583&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Been busy these past few days..</p>
<p>Well, this post is about taking advantage of the built in data store that started in 10gR1.. yeah it&#8217;s AWR, and it&#8217;s very much like a &#8220;Statspack on steroids&#8221; (got that from Kyle Hailey&#8217;s modules). What&#8217;s exciting about 10g and above is we could utilize the &#8220;Time Model&#8221; and the OSSTAT view and use them together with the SYSTAT view to have a far better workload information when going through all the SNAP_IDs.</p>
<p><span id="more-1583"></span></p>
<p>I have this &#8220;little&#8221; issue before of getting lazy when generating multiple AWR reports&#8230; yeah it&#8217;s just so daunting, you&#8217;ll get tired just by generating those reports by hand and the catch is&#8230; you&#8217;ve not yet analyzed anything yet.. :p   (but yeah, you&#8217;re lucky if you&#8217;ve got access to the OEM performance page)</p>
<p>So.. I was thinking, if I get to see all the relevant workload info across SNAP_IDs it would be easier for me to notice trends and even possible for me to visualize the data, or even possible to do some statistics out of it.</p>
<p>On the Chapter 9 of Craig Shallahamer&#8217;s book (<a title="Orapub - Oracle Performance Firefighting" href="http://resources.orapub.com/?Click=35884" target="_blank">Oracle Performance Firefighting</a>)&#8230; there he explained in detail what information you need to get for you to be able to define the Database Server&#8217;s <strong>Capacity, Requirements, and Utilization</strong> (U=R/C)&#8230;<br />
I&#8217;ve outline some of the points <a title="Oracle Metrics" href="https://spreadsheets.google.com/ccc?key=0ApH46jS7ZPdJdFdqZmtmRVRUQWFQZUk1Zi1DT0dwNWc&amp;hl=en" target="_blank">here</a> (see the Firefighting tab)</p>
<p>&#8230;. since the AWR report is based on DBA_HIST tables, I was able to make a script that shows the following:</p>
<p><strong>1) CPU capacity</strong> &#8211; see image below, column 4 to 6<br />
<strong>2) CPU requirements</strong> &#8211; see image below, column 7 to 14<br />
<strong>3) Memory requirements</strong> &#8211; see image below, column 15<br />
<strong>4) IO requirements</strong> &#8211; see image below, column 16 to 21<br />
<strong>5) some SYSSTAT delta values</strong> &#8211; see image 22 to 23<br />
<strong>6) Utilization</strong> &#8211; see image below, the last 6 columns</p>
<p>&#8230;. I&#8217;ve used the tables below for the query:</p>
<p>- dba_hist_snapshot<br />
- dba_hist_osstat<br />
- dba_hist_sys_time_model<br />
- dba_hist_sysstat</p>
<p>Check out the scripts here:<br />
<strong>For Linux/Unix:</strong> <a title="awr_genwl.sql" href="https://docs.google.com/leaf?id=0B5H46jS7ZPdJNmIzZTRlYjMtZWQwNi00YzhmLTk0MTctMWMzNTEzY2NjZjMx&amp;hl=en" target="_blank">awr_genwl.sql</a><br />
<strong>For Windows:</strong> <a title="awr_genwl_win.sql" href="https://docs.google.com/leaf?id=0B5H46jS7ZPdJZmI5YzJiNmItYWQ1OC00NDIyLWFhOTktNjllZmU1OWI3YTg3&amp;hl=en" target="_blank">awr_genwl_win.sql</a></p>
<p><em><strong>IMPORTANT NOTE: <span style="text-decoration:underline;">Diagnostic Pack License</span> is needed for the scripts, I&#8217;m updating my scripts frequently.. if the download link is not working here.. check out the <span style="text-decoration:underline;"><a href="http://karlarao.wordpress.com/scripts-resources" target="_blank">Scripts Section</a></span> for the file name and the most recent version of the script</strong></em></p>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2hR6V8NjCI/AAAAAAAAAo0/YM_c7VhFKiI/dba_hist3.png"><img class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2hR6V8NjCI/AAAAAAAAAo0/YM_c7VhFKiI/s800/dba_hist3.png" alt="" /></a></p>
<p>Now time for some action! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As you can see from above.. there is a highlighted portion (in green). By running the script, we have identified that there was a sudden spike on the following:</p>
<p>- <strong>&#8220;DB Time&#8221; (7th column)</strong>.. which means there is some significant user level activity going on!<br />
- <strong>IOPs read (16th column) and IO read MB/s (19th column)</strong>.. which means that the stresser is possibly more on SELECT operations<br />
- <strong>Oracle and OS CPU% utilization (last 6 columns)</strong>&#8230; which means the spike on activity is attributed by Oracle and not other operations on the OS, also you could see that it is not attributed by an RMAN activity (because it&#8217;s zero!)<br />
- Plus the <strong>Average Active Sessions (AAS) (11th column)</strong> and the <strong>OS Load </strong><strong>(13th column)</strong> increased&#8230; which correlates to the high CPU%</p>
<p>The sudden spike happened around 6:20 to 7:01 (SNAP_ID 335-339)</p>
<p>If you are a fan of AAS (Average Active Sessions) see below how I was able to derive the value (example for SNAP_ID 335):</p>
<p>AAS = DB Time/Elapsed Time<br />
= (1871.36/60)/10.06<br />
<strong>= 3.100331345</strong></p>
<p>BTW, I only have 1 CPU (see column 5)&#8230;</p>
<p>So you have a lot of info (facts, numbers, figures) to justify the drill down on specific SNAP_IDs or time frame. From here you could either use ASH, run the AWR report, run ADDM, or use OEM. The good thing here is, you are not guessing! and you&#8217;ve done some quick correlation on the OS and the database before drilling down further&#8230;</p>
<p>Now&#8230;</p>
<p>Let&#8217;s see if we could correlate the output of the script with the SAR data.. from the image below, you can see that the spike on load happened around 6:20 and ended around 7:30. And yes, attributed by wait on IO (see the red color).</p>
<p>BTW, I&#8217;m using <a title="kSar" href="http://ksar.atomique.net" target="_blank">kSar</a> for visualizing the SAR data.</p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2WdQ-v_hxI/AAAAAAAAAnQ/DwfXAlbyWPg/ksar1.png"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2WdQ-v_hxI/AAAAAAAAAnQ/DwfXAlbyWPg/s400/ksar1.png" alt="" /></a></p>
<p>Also you&#8217;ll see the Load Average, which is the same from the output of the AWR script above.</p>
<p><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdQ-oJbBI/AAAAAAAAAnU/9oqBrfLGNfc/loadaverage1.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdQ-oJbBI/AAAAAAAAAnU/9oqBrfLGNfc/s400/loadaverage1.png" alt="" /></a></p>
<p>Now, let&#8217;s check out the IO devices&#8230; the database is using ASM with 3 ASM disks, I would get the major and minor numbers and correlate these with the SAR data&#8230;</p>
<p><pre class="brush: css;">
GROUP_NUMBER NAME		  HEADER_STATU MOUNT_S STATE	  TOTAL_MB    FREE_MB LABEL		   PATH 		REDUNDANCY
------------ -------------------- ------------ ------- -------- ---------- ---------- -------------------- -------------------- --------------------
	   1 DATA_1_0000	  UNKNOWN      OPENED  NORMAL	      3067	    0			   /dev/sdc1		UNKNOWN
	   1 DATA_1_0001	  UNKNOWN      OPENED  NORMAL	      3067	    0			   /dev/sdd1		UNKNOWN
	   1 DATA_1_0002	  UNKNOWN      OPENED  NORMAL	      3067	    0			   /dev/sdf1		UNKNOWN

[oracle@dbrocaix01 osm]$ ls -l /dev/sd[c,d,f]
brw-rw----  1 root disk 8, 32 Jan 17  2010 /dev/sdc
brw-rw----  1 root disk 8, 48 Jan 17  2010 /dev/sdd
brw-rw----  1 root disk 8, 80 Jan 17  2010 /dev/sdf
</pre></p>
<p>You can see from the images of the block devices below that they are mainly on Read Activity.. which<br />
validates the output of <strong>IOPs read (16th column) and IO read MB/s (19th column)</strong> of the AWR script&#8230; cool!</p>
<table border="0" cellpadding="5" align="center">
<tbody>
<tr>
<td style="text-align:center;" valign="top"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdRDdc4gI/AAAAAAAAAnY/N2z2ZTOSeko/dev8-32.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdRDdc4gI/AAAAAAAAAnY/N2z2ZTOSeko/s144/dev8-32.png" alt="" /></a></td>
<td valign="center">
<h2><span style="color:#0000ff;"> </span></h2>
</td>
<td style="text-align:center;" valign="top"><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S2WdRJb_7UI/AAAAAAAAAnc/wVH42EOo4-8/dev8-48.png"><img class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S2WdRJb_7UI/AAAAAAAAAnc/wVH42EOo4-8/s144/dev8-48.png" alt="" /></a></td>
<td valign="center">
<h2><span style="color:#0000ff;"> </span></h2>
</td>
<td style="text-align:center;" valign="center"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdaPSE5RI/AAAAAAAAAng/gsQIGeSqZY8/dev8-80.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdaPSE5RI/AAAAAAAAAng/gsQIGeSqZY8/s144/dev8-80.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>Another thing&#8230; When you get to run the script on your environment also try to generate AWR report on particular SNAP_IDs&#8230; you&#8217;ll notice that the values you got from the query will be the same on the AWR report&#8230;</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<em><strong>Update (20100201):</strong></em></p>
<p>&#8230; I&#8217;d like you to see the output of the <strong>Enterprise Manager Performance Page</strong> on the time when the sudden workload spike happened.</p>
<table border="0" cellpadding="5" align="center">
<tbody>
<tr>
<td style="text-align:center;" valign="top"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45qQX4aI/AAAAAAAAAoA/qPg_TrYxxlA/PerformancePage1.png"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45qQX4aI/AAAAAAAAAoA/qPg_TrYxxlA/s144/PerformancePage1.png" alt="" /></a></td>
<td valign="center">
<h2><span style="color:#0000ff;"> </span></h2>
</td>
<td style="text-align:center;" valign="top"><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2a45hDdpJI/AAAAAAAAAoE/zUzo6tLbOE8/PerformancePage2.png"><img class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2a45hDdpJI/AAAAAAAAAoE/zUzo6tLbOE8/s144/PerformancePage2.png" alt="" /></a></td>
<td valign="center">
<h2><span style="color:#0000ff;"> </span></h2>
</td>
<td style="text-align:center;" valign="center"><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45gvDB7I/AAAAAAAAAoI/LOv7qMAaOUo/TopActivity.png"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45gvDB7I/AAAAAAAAAoI/LOv7qMAaOUo/s144/TopActivity.png" alt="" /></a></td>
</tr>
</tbody>
</table>
<p>The <em><strong>first</strong></em> and <em><strong>second</strong></em> images above came from the root page, you&#8217;ll see the following similarities on the AWR script output:</p>
<p>- <strong>Load Average</strong>, which is on the <strong>range of 3.2 to 4.4</strong><br />
- <strong>Average Active Sessions (AAS)</strong>, which is on the <strong>range of 2.2 to 3.5</strong><br />
- <strong>Disk IO read MB/s</strong>&#8230; see that the graph is reaching the <strong>80000 Physical Reads KB/s</strong>.. check the SNAP_ID 338 (Time &#8211; 6:50) from the AWR script output you&#8217;ll see that it generated <strong>73.372 MB/s</strong>! Also, see the output of the ADDM run below&#8230; which further validates the output of the script:</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">FINDING 2: 18% impact (236 seconds)
-----------------------------------
The throughput of the I/O subsystem was significantly lower than expected.

   RECOMMENDATION 1: Host Configuration, 18% benefit (236 seconds)
      ACTION: Consider increasing the throughput of the I/O subsystem.
         Oracle's recommended solution is to stripe all data file using the
         SAME methodology. You might also need to increase the number of disks
         for better performance. Alternatively, consider using Oracle's
         Automatic Storage Management solution.
      <strong>RATIONALE: During the analysis period, the average data files' I/O
         throughput was 74 M per second for reads and 102 K per second for
         writes. The average response time for single block reads was 13
         milliseconds.</strong>

   SYMPTOMS THAT LED TO THE FINDING:
      SYMPTOM: Wait class "User I/O" was consuming significant database time.
               (37% impact [488 seconds])</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;"> </span></p>
<p>The <em><strong>third</strong></em> image is the Top Activity section&#8230; you can see that most of the activity are SELECTs and the database is waiting on User and System I/O&#8230; (see the Top SQLs and Top Sessions)</p>
<p><em>BTW, this script could also be used on a RAC environment&#8230; you have to <strong>run it on each node</strong>. I&#8217;ve made it pull the DBID and instance_number automatically.. </em></p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<em><strong>Update (20100202):</strong></em></p>
<p>On Windows environment for the DBA_HIST_OSSTAT view it does not contain the <strong>LOAD</strong> and <strong>IOWAIT_TIME</strong> stat_name so I removed these columns from the query. See the sample output below:</p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2hR6URKt1I/AAAAAAAAAow/HgTEtkuD4sU/dba_hist_windows.png"><img class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2hR6URKt1I/AAAAAAAAAow/HgTEtkuD4sU/s800/dba_hist_windows.png" alt="" /></a></p>
<p>That&#8217;s all for this post!  Now you&#8217;ll know better about the workload of your environment <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1583/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1583&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/b_mF4Jkt-Kw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/S2hR6V8NjCI/AAAAAAAAAo0/YM_c7VhFKiI/s800/dba_hist3.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2WdQ-v_hxI/AAAAAAAAAnQ/DwfXAlbyWPg/s400/ksar1.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdQ-oJbBI/AAAAAAAAAnU/9oqBrfLGNfc/s400/loadaverage1.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdRDdc4gI/AAAAAAAAAnY/N2z2ZTOSeko/s144/dev8-32.png" medium="image" />

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/S2WdRJb_7UI/AAAAAAAAAnc/wVH42EOo4-8/s144/dev8-48.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2WdaPSE5RI/AAAAAAAAAng/gsQIGeSqZY8/s144/dev8-80.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45qQX4aI/AAAAAAAAAoA/qPg_TrYxxlA/s144/PerformancePage1.png" medium="image" />

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/S2a45hDdpJI/AAAAAAAAAoE/zUzo6tLbOE8/s144/PerformancePage2.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2a45gvDB7I/AAAAAAAAAoI/LOv7qMAaOUo/s144/TopActivity.png" medium="image" />

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/S2hR6URKt1I/AAAAAAAAAow/HgTEtkuD4sU/s800/dba_hist_windows.png" medium="image" />
	<feedburner:origLink>http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/</feedburner:origLink></item>
		<item>
		<title>50+ SQL Performance Optimization scenarios</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/6YInLLN9Vt0/</link>
		<comments>http://karlarao.wordpress.com/2009/12/31/50-sql-performance-optimization-scenarios/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 07:18:53 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL_Tuning]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1517</guid>
		<description><![CDATA[Before the year ends I&#8217;d like to share some good stuff&#8230; I have never seen a huge compilation of SQL tuning tips or rewrite scenarios (with test cases) and got them only on OracleFans forum&#8230; ooops&#8230; so you can&#8217;t read Chinese? try this translated version, whew.. good thing Google has this translate service that I am able to read in Chinese.. So how did I end up on this forum? mm&#8230; I can&#8217;t really remember&#8230; I&#8217;m a curious wayward Googler, either I was having problems on a particular SQL on a client or I&#8217;m getting <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/12/31/50-sql-performance-optimization-scenarios/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1517&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Before the year ends I&#8217;d like to share some good stuff&#8230; </p>
<p>I have never seen a huge compilation of SQL tuning tips or rewrite scenarios (with test cases) and got them only on <a href="http://www.oraclefans.cn" target="_blank"><span style="text-decoration:underline;">OracleFans</span></a> forum&#8230; ooops&#8230; so you can&#8217;t read Chinese? try this <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">translated version</span></a>, whew.. good thing Google has this translate service that I am able to read in Chinese..  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-1517"></span></p>
<p>So how did I end up on this forum? mm&#8230; I can&#8217;t really remember&#8230; I&#8217;m a curious wayward Googler, either I was having problems on a particular SQL on a client or I&#8217;m getting really curious about SQL Tuning and trying to get the whole idea (building up a mind map) by doing multiple reads.. </p>
<p>Even the language barrier (Chinese) does not even stop me from digging good knowledge and I even subscribed &amp; created accounts on some other similar forums.. Then luckily&#8230; I&#8217;ve stumbled upon this series! A guy named David wrote it.. I&#8217;ve already mailed him &amp; thanked him for compiling this very useful good stuff but I did not get any response yet.. maybe I should translate my English to Chinese :p  .. I&#8217;m just kidding.. </p>
<p>So here it goes&#8230; just click on the links and you&#8217;ll be redirected to the translated version!<br />
well regarding the accuracy of his findings&#8230; as a reader, I don&#8217;t believe instantly on all what he wrote&#8230; before you take in something there has to be some form of validation (you have to be some kinda scientist yourself)&#8230; </p>
<p>For those who have objections or if you feel that some claims are inaccurate or if you have done your own validation but the results are different from what is written, please do post your comment on that particular item or topic.. Your feedback is very valuable and it would be useful for other viewers too <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you are having problems with the links, you can check all the URL <a href="http://docs.google.com/Doc?docid=0AZH46jS7ZPdJZGY5NjQ2dDNfMjNmZnR0em1xNw&amp;hl=en" target="_blank"><span style="text-decoration:underline;">here</span></a> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D56&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(1)</span></a> </p>
<p style="padding-left:60px;">
<strong>1. The types of ORACLE optimizer<br />
2. The way to visit Table<br />
3. Shared SQL statement</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D57&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(2)</span></a></p>
<p style="padding-left:60px;">
<strong>4. Select the table name of the most efficient order (only in the effective rule-based optimizer)<br />
5. WHERE clause in the order of the connections<br />
6. SELECT clause to avoid using &#8216;*&#8217;<br />
7. Access to the database to reduce the number of</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D58&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(3)</span></a></p>
<p style="padding-left:60px;">
<strong>8. Using the DECODE function to reduce the processing time<br />
9. Integration of simple, non-associated database access<br />
10. Remove duplicate records<br />
11. Alternative DELETE with TRUNCATE<br />
12. As much as possible the use of COMMIT</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D59&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(4)</span></a></p>
<p style="padding-left:60px;">
<strong>13. Calculate the number of records<br />
14. Where clause with the HAVING clause to replace<br />
15. To reduce the query table<br />
16. Through an internal function to improve SQL efficiency</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D60&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(5)</span></a></p>
<p style="padding-left:60px;">
<strong>17. Use the table alias (Alias)<br />
18. Replace IN with EXISTS<br />
19. Replace NOT IN with NOT EXISTS</strong>
</p>
<p>ORACLE SQL performance optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D61&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(6)</span></a></p>
<p style="padding-left:60px;">
<strong>20. Connect with the table to replace EXISTS<br />
21. Replace DISTINCT with EXISTS<br />
22. Recognition &#8216;inefficient implementation of the&#8217; in SQL statements<br />
23. Use TKPROF tool to query SQL Performance Status</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D62&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(7)</span></a></p>
<p style="padding-left:60px;">
<strong>24. Analysis of SQL statements with EXPLAIN PLAN</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D63&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(8)</span></a></p>
<p style="padding-left:60px;">
<strong>25. With the index to improve efficiency<br />
26. Operation index</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D64&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(9)</span></a></p>
<p style="padding-left:60px;">
<strong>27. The choice of the basis of the table<br />
28. Number of equal index<br />
29. Comparing and scope of the comparison equation<br />
30. The index level is not clear</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D65&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(10)</span></a></p>
<p style="padding-left:60px;">
<strong>31. Force index failure<br />
32. Avoid the use of columns in the index calculation.<br />
33. Auto Select Index<br />
34. Avoid the use of NOT in the index column<br />
35. With &#8220;= substitute&#8221;</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D66&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(11)</span></a></p>
<p style="padding-left:60px;">
<strong>36. UNION replaced with the OR (for the index column)<br />
37. To replace the OR with the IN<br />
38. Avoid the use of columns in the index IS NULL and IS NOT NULL</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D67&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(12)</span></a></p>
<p style="padding-left:60px;">
<strong>39. Always use the first column index<br />
40. ORACLE internal operations<br />
41. With the UNION-ALL replaced UNION (if possible)<br />
42. Usage Tips (Hints)</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D68&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(13)</span></a></p>
<p style="padding-left:60px;">
<strong>43. WHERE replaced with ORDER BY<br />
44. Avoid changing the index of the column type<br />
45. Need to be careful of the WHERE clause</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D69&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(14)</span></a></p>
<p style="padding-left:60px;">
<strong>46. Connect multiple scan<br />
47. CBO to use a more selective index of<br />
48. Avoid the use of resource-intensive operations<br />
49. GROUP BY Optimization<br />
50. Use Date<br />
51. Use explicit cursor (CURSORs)<br />
52. Optimization EXPORT and IMPORT<br />
53. Separate tables and indexes</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D70&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(15)</span></a></p>
<p style="padding-left:60px;">
<strong>EXISTS / NOT EXISTS must be better than IN / NOT IN the efficiency of high?</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D71&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(16)</span></a></p>
<p style="padding-left:60px;">
<strong>I used the view of how query results are wrong?</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D72&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(17)</span></a></p>
<p style="padding-left:60px;">
<strong>Page Which writing efficient SQL?</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D73&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(18)</span></a></p>
<p style="padding-left:60px;">
<strong>COUNT (rowid) / COUNT (pk) the efficiency of high?</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D74&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(19)</span></a></p>
<p style="padding-left:60px;">
<strong>ORACLE data type implicit conversions</strong>
</p>
<p>ORACLE SQL Performance Optimization Series <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D75&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(20)</span></a></p>
<p style="padding-left:60px;">
<strong>The use of INDEX should pay attention to the three questions</strong><br />
<strong>Includes date range example</strong>
</p>
<p>ORACLE Tips (HINT) use (Part 1) <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D54&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(21)</span></a></p>
<p>ORACLE Tips (HINT) use (Part 2) <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http://www.oraclefans.cn/forum/showtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D641%26rootid%3D55&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(22)</span></a></p>
<p>Analysis of function-based index (Part 1) <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fwww.oraclefans.cn%2Fforum%2Fshowtopic_tree.jsp%3Fboardcode%3Do2%26hit%3D594%26rootid%3D80&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(23)</span></a></p>
<p style="padding-left:60px;">
<strong>Includes date range example</strong>
</p>
<p>Analysis of function-based index (Part 2) <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fwww.oraclefans.cn%2Fforum%2Fshowtopic_tree.jsp%3Fboardcode%3Do2%26hit%3D594%26rootid%3D81&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(24)</span></a></p>
<p>How to achieve efficient paging query <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fwww.oraclefans.cn%2Fforum%2Fshowtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D761%26rootid%3D83&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(25)</span></a></p>
<p>ORACLE achieved in the SELECT TOP N method <a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fwww.oraclefans.cn%2Fforum%2Fshowtopic_tree.jsp%3Fboardcode%3Do3%26hit%3D691%26rootid%3D108&amp;sl=auto&amp;tl=en" target="_blank"><span style="text-decoration:underline;">(26)</span></a></p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1517/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1517&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/6YInLLN9Vt0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/12/31/50-sql-performance-optimization-scenarios/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/12/31/50-sql-performance-optimization-scenarios/</feedburner:origLink></item>
		<item>
		<title>RAC system load testing and test plan</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/62pQC9Ifodw/</link>
		<comments>http://karlarao.wordpress.com/2009/11/21/rac-system-load-testing-and-test-plan/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 05:38:11 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[RAC]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1068</guid>
		<description><![CDATA[Yesterday I was browsing through some docs in Metalink regarding RAC on Windows&#8230; then again came across the &#8220;RAC Starter Kit and Best Practices&#8221; notes&#8230; RAC Assurance Support Team: RAC Starter Kit and Best Practices (Generic) (Doc ID 810394.1) RAC Assurance Support Team: RAC Starter Kit and Best Practices (Windows) (Doc ID 811271.1) On the Generic note, just recently they&#8217;ve uploaded a new version of the RAC System Load Testing white paper&#8230; you can also find on the attached docs the RAC System Test Plan&#8230; Both of these docs are good stuff.. we all know <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/11/21/rac-system-load-testing-and-test-plan/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1068&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Yesterday I was browsing through some docs in Metalink regarding RAC on Windows&#8230; then again came across the<strong> &#8220;RAC Starter Kit and Best Practices&#8221;</strong> notes&#8230;</p>
<p><em>RAC Assurance Support Team: RAC Starter Kit and Best Practices (Generic) (Doc ID 810394.1)<br />
RAC Assurance Support Team: RAC Starter Kit and Best Practices (Windows) (Doc ID 811271.1)</em></p>
<p><span id="more-1068"></span></p>
<p>On the Generic note, just recently they&#8217;ve uploaded a new version of the <a href="https://supporthtml.oracle.com/ep/faces/secure/km/DownloadAttachment.jspx?attachid=810394.1:RACSYSTEMLOADTESTING" target="_blank"><strong>RAC System Load Testing</strong></a> white paper&#8230; you can also find on the attached docs the <a href="https://supporthtml.oracle.com/ep/faces/secure/km/DownloadAttachment.jspx?attachid=810394.1:RAC_SYSTEM_TEST_PLAN" target="_blank"><strong>RAC System Test Plan</strong></a>&#8230;</p>
<p>Both of these docs are good stuff.. we all know that critical to the RAC install is testing the right components in the stack, either from the perspective of <strong>Performance, Scalability, or Reliability</strong>..</p>
<p>so these docs will guide you through the tools (yes you&#8217;ll have choices), steps, and structure on how to ensure a highly available RAC setup&#8230;</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1068/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1068/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1068&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/62pQC9Ifodw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/11/21/rac-system-load-testing-and-test-plan/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/11/21/rac-system-load-testing-and-test-plan/</feedburner:origLink></item>
		<item>
		<title>RHEV (Red Hat Enterprise Virtualization) is out!!! :)</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/g9MYLYLMsjc/</link>
		<comments>http://karlarao.wordpress.com/2009/11/03/rhev-red-hat-enterprise-virtualization-is-out/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:00:07 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[RHEV]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=1036</guid>
		<description><![CDATA[The company I work for, SQL*Wizard,  is a RedHat Advanced Business Partner so I was lucky to get my hands dirty on the BETA release of RHEV, also a pleasure to work with Siva Shunmugam (Sr. Solutions Architect@RedHat &#38; RHCA). I must say, KVM is so fast&#8230; plus the RHEV manager is so cool as a management platform Soon I&#8217;ll have some Virtualization related posts about my experiences RHEV-iiinnggg&#8230;.. You may also want to download the RedHat whitepaper on Scaling Oracle Database on RHEV: Scaling Oracle 10g in a Red Hat® Enterprise Virtualization Environment &#8211; <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/11/03/rhev-red-hat-enterprise-virtualization-is-out/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1036&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The company I work for, <strong><a href="http://www.sqlwizard.com">SQL*Wizard</a></strong>,  is a <strong>RedHat Advanced Business Partner</strong> so I was lucky to get my hands dirty on the BETA release of RHEV, also a pleasure to work with <a href="http://www.facebook.com/redtempest">Siva Shunmugam</a> (Sr. Solutions Architect@RedHat &amp; RHCA). I must say, <strong>KVM</strong> is so fast&#8230; plus the <strong>RHEV manager</strong> is so cool as a management platform <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Soon I&#8217;ll have some Virtualization related posts about my experiences <em><strong>RHEV-iiinnggg&#8230;..</strong></em></p>
<p><span id="more-1036"></span></p>
<p><img class="aligncenter" title="RHEV" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SvB94g_omDI/AAAAAAAAAZQ/VycO253xBLk/s400/rhev.png" alt="RHEV" /></p>
<p><strong>You may also want to download the RedHat whitepaper on Scaling Oracle Database on RHEV:</strong><br />
<a href="https://inquiries.redhat.com/go/redhat/oracle-rhev">Scaling Oracle 10g in a Red Hat® Enterprise Virtualization Environment &#8211; RedHat Reference Architecture Series </a></p>
<p><strong>For more info go to these links:</strong><br />
<a href="http://www.redhat.com/virtualization/rhev/server">http://www.redhat.com/virtualization/rhev/server</a><br />
<a href="http://www.redhat.com/v/swf/rhev/demo.html">http://www.redhat.com/v/swf/rhev/demo.html</a></p>
<p>Enjoy <strong><em>RHEViiinnggg</em></strong>&#8230;.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/1036/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=1036&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/g9MYLYLMsjc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/11/03/rhev-red-hat-enterprise-virtualization-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SvB94g_omDI/AAAAAAAAAZQ/VycO253xBLk/s400/rhev.png" medium="image">
			<media:title type="html">RHEV</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/11/03/rhev-red-hat-enterprise-virtualization-is-out/</feedburner:origLink></item>
		<item>
		<title>Knowing the trend of Deadlock occurrences from the Alert Log</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/d4XOcxWFaFA/</link>
		<comments>http://karlarao.wordpress.com/2009/08/15/knowing-the-trend-of-deadlock-occurrences-from-the-alert-log/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 12:51:31 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Deadlock]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=654</guid>
		<description><![CDATA[Recently, my client deployed a new application and had this intermittent &#8220;Deadlock Storm&#8221; &#8230; A trace file was sent and I was able to pinpoint the cause of the deadlock and the session that caused it. The deadlock was a TX enqueue with mode of 4 (S &#8211; share) which could be verified by looking at the following lines of the Process State dump: the &#8220;enqueue and lock mode&#8221; is explained as: mode=54580004 (see above) 5458 (hex) = TX (ascii) 0004 (hex) = mode 4 (S &#8211; share) The possible cause would be multiple concurrent <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/08/15/knowing-the-trend-of-deadlock-occurrences-from-the-alert-log/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=654&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently, my client deployed a new application and had this intermittent &#8220;Deadlock Storm&#8221; &#8230;</p>
<p>A trace file was sent and I was able to pinpoint the cause of the deadlock and the session that caused it.<br />
The deadlock was a TX enqueue with mode of 4 (S &#8211; share) which could be verified by looking at the following lines of the Process State dump:</p>
<p><span id="more-654"></span></p>
<p><pre class="brush: css;">
   last wait for 'enq: TX - row lock contention' blocking sess=0x 7000000cb239d60 seq=7849 wait_time=2929705 seconds since wait started=3
            name|mode=54580004, usn&lt;&lt;16 | slot=a0028, sequence=283f2
</pre></p>
<p>the &#8220;enqueue and lock mode&#8221; is explained as:<br />
<strong>mode=54580004</strong> (see above)<br />
<strong>5458 (hex) = TX (ascii)<br />
0004 (hex) = mode 4 (S &#8211; share)</strong></p>
<p>The possible cause would be multiple concurrent sessions insert the same key value into a table that has one or more unique key. The table involved on the SQL was identified and has a unique key (on 7 columns) and 4 foreign keys (on different tables). But still I have to verify&#8230; </p>
<p>And I may have to look into the application logic, and may have to start with the insert statement causing the deadlock.<br />
But, it could also be possible that there are more statements involved in this &#8220;Deadlock storm&#8221;.. and I&#8217;m just looking on one occurence..<br />
hmm.. interesting.. </p>
<p>Lately, I&#8217;ve been using this <a href="http://www.perfvision.com/sql/alert_log.txt" target="_blank">shell command</a> I got from <a href="http://db-optimizer.blogspot.com" target="_blank">Kyle Hailey</a>&#8216;s <a href="http://www.perfvision.com/tools.php" target="_blank">site</a> for quickly getting ORA- errors on the alert log.</p>
<p>See the code I&#8217;m using below:<br />
<pre class="brush: css;">
Go to the bdump directory to run these shell commands

 Date and errors in alert.log

     cat alert_orcl.log | \
     awk 'BEGIN{buf=&quot;&quot;}
          /[0-9]:[0-9][0-9]:[0-9]/{buf=$0}
          /ORA-/{print buf,$0}' &gt; ORA-errors_orcl.txt
</pre></p>
<p>On the client site, I executed the command on the alert log. Then to my surprise.. there are so many ORA-00060 errors (total of <strong>1,616 lines</strong>)! which means, there are more trace files that I have to look on. Great, Now I&#8217;m overwhelmed. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>First&#8230;I want to know how often Deadlocks occur, I want it per month, day, and hour. So I could see the pattern of the occurrence then, if there&#8217;s a pattern I could ask the Developer what he&#8217;s running on that period or what are the modules that are frequently accessed. That way I could correlate what&#8217;s happening on the trace files to what are they doing on the application. </p>
<p>The alert views of 10g could be useful to get that kind of info (DBA_OUTSTANDING_ALERTS, DBA_ALERT_HISTORY, DBA_ALERT_ARGUMENTS, DBMS_ALERT_INFO, V$ALERT_TYPES). </p>
<p>But I want to dig on the alert log using some shell scripting.. which I&#8217;m not very good at :p</p>
<p>I&#8217;m playing with this very simple command, this shows me that on August 7 11AM there are 55 occurrence of &#8220;ORA-&#8221; errors. <strong>Some or all</strong> of them could be &#8220;ORA-00060&#8243; errors.<br />
<pre class="brush: css;">
karao@karl:~/Desktop$ export Month=Aug
karao@karl:~/Desktop$ export Date=7
karao@karl:~/Desktop$ export Time=11
karao@karl:~/Desktop$ echo $Month $Date $Time &quot;,&quot; `cut -d &quot; &quot; -f1,2,3,4,5,6 alert_orcl.log | grep &quot;$Month  $Date $Time&quot; | wc -l`
Aug 7 11 , 55
</pre></p>
<p>So it&#8217;s possible! I could have an output of &#8220;month, day, hour, and number of occurrence&#8221;<br />
I just have to iterate through the month and day&#8230;&#8230; then have a count of the hourly data so I would know the rate of deadlocks per hour. </p>
<p>But I need some help from a shell script expert :p One of the internal Unix/DBA admins helped me and finished it just the way I wanted it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Thanks a lot Mel! and for integrating Kyle&#8217;s script) </p>
<p>Here is the <a title="AlertCount" href="http://docs.google.com/Doc?docid=0AZH46jS7ZPdJZGY5NjQ2dDNfMTljZHR0Z3Nnbg&amp;hl=en" target="_blank">script</a> (I&#8217;ve used this on AIX 5L with Oracle 10.2.0.4, <strong>use at your own risk</strong>. If I have more time I could test this on Linux and other database versions, or if you have modified version of this script, let me know <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>So now I could directly parse on the alert log, search for the search string that I want (most likely an ORA- error code).. then output the number of occurrence&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (hours with count=0 is not shown)</p>
<p>See the sample below&#8230; I&#8217;m searching for the exact error message &#8220;ORA-00060&#8243; on the alert log.<br />
<pre class="brush: css;">
karao@karl:~/Desktop$ ./AlertCount.sh alert_orcl.log ORA-00060
Jul 6 19 , 10
Jul 6 20 , 120
Jul 6 21 , 130
Jul 6 22 , 120
Jul 6 23 , 130
Jul 7 00 , 120
Jul 7 01 , 119
Jul 7 02 , 120
Jul 7 03 , 130
Jul 7 04 , 120
Jul 7 05 , 130
Jul 7 06 , 120
Jul 7 07 , 80
Jul 31 11 , 87
Aug 1 08 , 20
Aug 7 10 , 10
Aug 7 11 , 50
</pre></p>
<p>Then search for the word &#8220;Deadlock&#8221; that gives the same output..<br />
<pre class="brush: css;">
karao@karl:~/Desktop$ ./AlertCount.sh alert_orcl.log Deadlock
Jul 6 19 , 10
Jul 6 20 , 120
Jul 6 21 , 130
Jul 6 22 , 120
Jul 6 23 , 130
Jul 7 00 , 120
Jul 7 01 , 119
Jul 7 02 , 120
Jul 7 03 , 130
Jul 7 04 , 120
Jul 7 05 , 130
Jul 7 06 , 120
Jul 7 07 , 80
Jul 31 11 , 87
Aug 1 08 , 20
Aug 7 10 , 10
Aug 7 11 , 50
</pre></p>
<p>Looking at the raw data.. this gives me a hint that on July 6-7 there were a lot of Deadlock occurrence. Then it&#8217;s possible that they have fixed some code which cut the Deadlock count to half on August. Also you&#8217;ll notice that from July 7-31 there were no Deadlock errors (I wonder why). And, could there be a periodic batch process running on every 7th of the month? Well, we still have to further investigate.. but at least we have the numbers to help us.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also, to have a more meaningful data.. you could show your boss a flashy graph.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  just spool the output to a .csv file then open it on MS Excel</p>
<p><pre class="brush: css;">
karao@karl:~/Desktop$ ./AlertCount.sh alert_orcl.log ORA-00060 &gt; ORA-00060.csv
</pre></p>
<p>Select the data then graph it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus3oBIHNGI/AAAAAAAAAWs/ExeaTyDWb0k/DeadlockGraph1.png"><img title="DeadlockGraph1" alt="DeadlockGraph1" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus3oBIHNGI/AAAAAAAAAWs/ExeaTyDWb0k/s288/DeadlockGraph1.png"></a></p>
<p>Here&#8217;s the graph&#8230;. That&#8217;s the &#8220;trend&#8221; that I want to see!</p>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus3oLf3ScI/AAAAAAAAAWw/-42lOTQj3MY/DeadlockTrend.png"><img title="DeadlockTrend" alt="DeadlockTrend" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus3oLf3ScI/AAAAAAAAAWw/-42lOTQj3MY/s288/DeadlockTrend.png"></a></p>
<p>But the troubleshooting does not stop here.. I have to drill down on the specific hours, then look into the trace files. Or make use of some other tools or source of info that could help me identify the root cause.. </p>
<p>And I&#8217;m starting to read the posts of Doug and Miladin, I&#8217;m sure I&#8217;ll get something useful on their posts. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Doug Burns</strong><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1413-Good-News-for-ASH-Fans.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1413-Good-News-for-ASH-Fans.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1478-Diagnosing-Locking-Problems-using-ASH-Part-2.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1478-Diagnosing-Locking-Problems-using-ASH-Part-2.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1480-Diagnosing-Locking-Problems-using-ASH-Part-3.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1480-Diagnosing-Locking-Problems-using-ASH-Part-3.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1481-Diagnosing-Locking-Problems-using-ASH-Part-4.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1481-Diagnosing-Locking-Problems-using-ASH-Part-4.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1484-Diagnosing-Locking-Problems-using-ASH-Part-5.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1484-Diagnosing-Locking-Problems-using-ASH-Part-5.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1487-Diagnosing-Locking-Problems-using-ASH-Part-6.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1487-Diagnosing-Locking-Problems-using-ASH-Part-6.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1488-Diagnosing-Locking-Problems-using-ASHLogMiner-Part-7.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1488-Diagnosing-Locking-Problems-using-ASHLogMiner-Part-7.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1491-Diagnosing-Locking-Problems-using-ASHLogMiner-Part-8.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1491-Diagnosing-Locking-Problems-using-ASHLogMiner-Part-8.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1492-Diagnosing-Locking-Problems-using-ASHLogMiner-Part-9.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1492-Diagnosing-Locking-Problems-using-ASHLogMiner-Part-9.html</a><br />
<a href="http://oracledoug.com/serendipity/index.php?/archives/1495-Diagnosing-Locking-Problems-using-ASHLogMiner-The-End.html" target="_blank">http://oracledoug.com/serendipity/index.php?/archives/1495-Diagnosing-Locking-Problems-using-ASHLogMiner-The-End.html</a></p>
<p><strong>Miladin Modrakovic</strong><br />
<a href="http://oraclue.com/2009/04/20/detecting-deadlock-source/" target="_blank">http://oraclue.com/2009/04/20/detecting-deadlock-source/</a><br />
<a href="http://oraclue.com/2009/04/23/detecting-deadlock-source-part-2/" target="_blank">http://oraclue.com/2009/04/23/detecting-deadlock-source-part-2/</a><br />
<span style="color:white;">.</span><br />
<span style="color:white;">.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/654/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=654&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/d4XOcxWFaFA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/08/15/knowing-the-trend-of-deadlock-occurrences-from-the-alert-log/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus3oBIHNGI/AAAAAAAAAWs/ExeaTyDWb0k/s288/DeadlockGraph1.png" medium="image">
			<media:title type="html">DeadlockGraph1</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus3oLf3ScI/AAAAAAAAAWw/-42lOTQj3MY/s288/DeadlockTrend.png" medium="image">
			<media:title type="html">DeadlockTrend</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/08/15/knowing-the-trend-of-deadlock-occurrences-from-the-alert-log/</feedburner:origLink></item>
		<item>
		<title>Lucky to find it…</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/bFnrws-xpNI/</link>
		<comments>http://karlarao.wordpress.com/2009/07/30/lucky-to-find-it/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 11:01:12 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Book_Review]]></category>
		<category><![CDATA[CMG]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=641</guid>
		<description><![CDATA[Earlier this month I was able to bought the book &#8220;Sun Performance and Tuning: Java and the Internet (2nd Edition)&#8221; for only 190pesos at some bookstore Amazon sells it for 2400pesos.. It’s a pretty old book and was published around 1995-1996 but the content is still interesting. This led me to research more on the author and all of his work. Well hey! This guy is a recipient of the Michelson Award by Computer Measurement Group (CMG) I strongly suggest you subscribe to the monthly MeasureIT publication.. lots of good stuff on performance. The name <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/07/30/lucky-to-find-it/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=641&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Earlier this month I was able to bought the book &#8220;Sun Performance and Tuning: Java and the Internet (2nd Edition)&#8221; for only 190pesos at some bookstore <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus1Y8rge3I/AAAAAAAAAWo/OgeSumDiy4U/AdrianCockcroft.jpg"><img title="AdrianCockcroft" alt="AdrianCockcroft" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus1Y8rge3I/AAAAAAAAAWo/OgeSumDiy4U/s400/AdrianCockcroft.jpg"></a></p>
<p>Amazon sells it for 2400pesos.. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-641"></span></p>
<p>It’s a pretty old book and was published around 1995-1996 but the content is still interesting. This led me to research more on the author and all of his work. Well hey! This guy is a recipient of the Michelson Award by Computer Measurement Group (CMG) I strongly suggest you subscribe to the monthly <a href="http://www.cmg.org/measureit" target="_blank">MeasureIT</a> publication.. lots of good stuff on performance. The name of the mystery guy is Adrian Cockcroft… he got the award year 2007 then Neil Gunther on the next year. Cool <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  so Adrian’s book must be a real contributing factor. Plus, he’s blogging at <a href="http://perfcap.blogspot.com" target="_blank">http://perfcap.blogspot.com</a></p>
<p>You could view Adrian and Neil’s acceptance speech on these links:</p>
<p>Adrian Cockcroft <a href="http://perfcap.blogspot.com/2007/12/a-michelson-award-acceptance-speech.html" target="_blank">http://perfcap.blogspot.com/2007/12/a-michelson-award-acceptance-speech.html</a><br />
Neil Gunther <a href="http://perfdynamics.blogspot.com/2008/12/gunther-receives-aa-michelson-award.html" target="_blank">http://perfdynamics.blogspot.com/2008/12/gunther-receives-aa-michelson-award.html</a></p>
<p>And talking about Solaris performance. Below are some more personalities on the area of performance.</p>
<p>Brendan Gregg <a href="http://www.brendangregg.com" target="_blank">http://www.brendangregg.com</a>, <a href="http://www.brendangregg.com/Perf/solarismetrics.html" target="_blank">http://www.brendangregg.com/Perf/solarismetrics.html</a>, <a href="http://blogs.sun.com/brendan" target="_blank">http://blogs.sun.com/brendan</a>, <a href="http://bdgregg.blogspot.com" target="_blank">http://bdgregg.blogspot.com</a><br />
Jim Mauro and Richard McDougall <a href="http://www.solarisinternals.com" target="_blank">http://www.solarisinternals.com</a>, <a href="http://blog.richardmcdougall.com" target="_blank">http://blog.richardmcdougall.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=641&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/bFnrws-xpNI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/07/30/lucky-to-find-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sus1Y8rge3I/AAAAAAAAAWo/OgeSumDiy4U/s400/AdrianCockcroft.jpg" medium="image">
			<media:title type="html">AdrianCockcroft</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/07/30/lucky-to-find-it/</feedburner:origLink></item>
		<item>
		<title>Diagnosing and Resolving “gc block lost”</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/36d4CkGnQGQ/</link>
		<comments>http://karlarao.wordpress.com/2009/06/07/diagnosing-and-resolving-gc-block-lost/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 07:45:20 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[OS_Watcher]]></category>
		<category><![CDATA[Perfsheet]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=413</guid>
		<description><![CDATA[Last week, one of our clients had a sudden slow down on all of their applications which is running on two node RAC environment Below is the summary of the setup: - Server and Storage: SunFire X4200 with LUNs on EMC CX300 - OS: RHEL 4.3 ES - Oracle 10.2.0.3 (database and clusterware) - Database Files, Flash Recovery Area, OCR, and Voting disk are located on OCFS2 filesystems - Application: Forms and Reports (6i and also lower) As per the DBA, the workload on the database was normal and there were no changes on the <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/06/07/diagnosing-and-resolving-gc-block-lost/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=413&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last week, one of our clients had a sudden slow down on all of their applications which is running on two node RAC environment</p>
<p>Below is the summary of the setup:<br />
- Server and Storage: SunFire X4200 with LUNs on EMC CX300<br />
- OS: RHEL 4.3 ES<br />
- Oracle 10.2.0.3 (database and clusterware)<br />
- Database Files, Flash Recovery Area, OCR, and Voting disk are located on OCFS2 filesystems<br />
- Application: Forms and Reports (6i and also lower)</p>
<p>As per the DBA, the workload on the database was normal and there were <strong>no changes on the RAC nodes and on the applications</strong>. Hmm, I can&#8217;t really tell because I haven&#8217;t really looked into their workload so I don&#8217;t have past data to compare.</p>
<p><span id="more-413"></span></p>
<p>I first setup the OS Watcher on both nodes (with 60sec snapshot interval) to have an end-to-end view of the server performance while I&#8217;m doing the diagnosis on the database. It&#8217;s a cool tool and automatically gathers a lot of info when you start it (cpu, io, memory, network, process info), also this tool has a graphing facility which makes it faster to detect spikes and any trends.</p>
<p>Then, I looked into the database parameters and compared it with the RDA of the database I had before. This is just to check if there are any changes on the parameters that might cause the sudden slow down. Hmm&#8230;there was nothing new</p>
<p>Then, I queried on the V$SESSION</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;">SQL&gt; select count(*) from v$session;		<strong>-- server1</strong>

  COUNT(*)
----------
       385

SQL&gt; select count(*) from v$session;		<strong>-- server2</strong>

  COUNT(*)
----------
	49</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
I was surprised! The session count on both servers show that there are more users connected on server1 (almost 89% of the total users). This could be because of<br />
<strong>1) </strong>the clients having lower versions (&lt; Sql*Plus 8.1 or OCI8, see Note 97926.1) that may not support TAF (FAILOVER_MODE) and Load Balancing (LOAD_BALANCE) or<br />
<strong>2)</strong> they are using TNS entries explicitly connecting to server1<br />
Since the RAC database has different applications connected to it, knowing which applications are on server1 and how many they are will be enough to determine which users on particular applications could be transferred to server2 to at least balance the number of users on both nodes, but doing this may still not solve the issue as I don&#8217;t have enough info that this is the root cause of the problem..</p>
<p>The query below shows that all the users don&#8217;t have FAILOVER capabilities which could be attributed by the two points I mentioned above</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;">select distinct s.inst_id instance_id, s.failover_type failover_type, s.failover_method
failover_method, s.failed_over failed_over
from gv$session s;
INSTANCE_ID FAILOVER_TYPE        FAILOVER_METHOD      FAILED_OVER
----------- -------------------- -------------------- --------------------
          1 NONE                 NONE                 NO
          2 NONE                 NONE                 NO</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Below query shows the distinct applications/modules and their count which are all on server1. Also you’ll notice that most of them are inactive (some of these users should connect to server2 to have balance on both nodes)</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;">SQL&gt; select distinct inst_id, module, program, status, count(*)
from gv$session
group by inst_id, module, program, status
order by 1,2,3,4;

   INST_ID MODULE					      PROGRAM						 STATUS       COUNT(*)
---------- -------------------------------------------------- -------------------------------------------------- ---------- ----------
	 1 F45RUN32.EXE 				      F45RUN32.EXE					 INACTIVE	    23		 

... output snipped ....

	 1 xxxPgm					      xxxPgm						 INACTIVE	    21		

... output snipped ....

	 1 c:\xxxwin95\BIN\F45RUN32.EXE L:\xxx\VS\FORMS\MAI   c:\xxxwin95\BIN\F45RUN32.EXE L:\xxx\VS\FORMS\MAI	 INACTIVE	    44
	 1 c:\xxxwin95\BIN\F45RUN32.EXE L:\MAIN.FMX	      c:\xxxwin95\BIN\F45RUN32.EXE L:\MAIN.FMX		 INACTIVE	    31
	 1 c:\xxxwin95\BIN\F45RUN32.EXE w:\xxxMENU.fmx       c:\xxxwin95\BIN\F45RUN32.EXE w:\xxxMENU.fmx	 INACTIVE	    14
	 1 c:\xxxwin95\BIN\F45RUN32.EXE w:\xxxlogin.fmx       c:\xxxwin95\BIN\F45RUN32.EXE w:\xxxlogin.fmx	 INACTIVE	    96	

... output snipped ....

	 1 c:\xxxwin95\BIN\R25SRV32.exe 		      c:\xxxwin95\BIN\R25SRV32.exe			 INACTIVE	    54		

... output snipped ....

	 1 ifweb90.exe					      ifweb90.exe					 INACTIVE	    11</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Below info shows some data samples of DBA_HIST_ACTIVE_SESS_HISTORY which is graphed using Tanel Poder&#8217;s Perfsheet (could be found <a href="http://blog.tanelpoder.com/2008/12/28/performance-visualization-made-easy-perfsheet-20-beta/" target="_blank">here</a> and <a href="http://blog.tanelpoder.com/2009/05/27/oracle-performance-visualization-videos-from-sydney/" target="_blank">here</a>) to clearly distinguish the distribution of the modules and number of users. Most of the users on server1 uses the “c:\xxxwin95\BIN\F45RUN32.EXE w:\xxxlogin.fmx”</p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Stk5aGbKMWI/AAAAAAAAANA/_MM0-RFl1c4/GcBlocksLost_1_SessionCount.jpg"><img title="GcBlocksLost_1_SessionCount" alt="GcBlocksLost_1_SessionCount" class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Stk5aGbKMWI/AAAAAAAAANA/_MM0-RFl1c4/s288/GcBlocksLost_1_SessionCount.jpg"></a></p>
<p>Having the graph above may lead us to conclusion that the <strong>significant number of users</strong> on server1 attributes to the slow down of the transactions.  But as per the DBA,<strong> there were no changes made and they were running the same transactions as before on server1 which has acceptable response time</strong>. Also the OS Watcher shows that the CPU utilization (peak is 60% and most of the time at 40%) and run queue was low and the disk IO utilization and service time were average (always 10ms below), and there were enough memory on the server (3GB free out of 12GB.. the SGA is 2GB) and no swapping.</p>
<p>Hmm&#8230;Drilling down on the wait interface and on per session level that is doing the important business operations will give us a definite conclusion on what is really the bottleneck on the database.</p>
<p>The graph below is another sample from DBA_HIST_ACTIVE_SESS_HISTORY that shows server1 (in blue box) is suffering from <strong>“gc cr block lost” and “gc cr multi block request”</strong> from 7am to 4pm. The “Metalink Doc ID: 563566.1 gc lost blocks diagnostics” indicates that it is a cluster problem which could be a problem on the network interconnect</p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Stk5cjpEO3I/AAAAAAAAANM/pA8lDPS5co0/GcBlocksLost_2_server1waits.png.jpg"><img title="GcBlocksLost_2_server1waits" alt="GcBlocksLost_2_server1waits" class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Stk5cjpEO3I/AAAAAAAAANM/pA8lDPS5co0/s288/GcBlocksLost_2_server1waits.png.jpg"></a></p>
<p>To confirm the bottleneck shown from the sample of DBA_HIST_ACTIVE_SESS_HISTORY (above), the output of ADDM and AWR report from a peak period was analyzed (from 2-3 &amp; 3-4 pm). Below are the output of ADDM and AWR reports:</p>
<p><strong>ADDM output:</strong></p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;">          DETAILED ADDM REPORT FOR TASK 'TASK_137854' WITH ID 137854
          ----------------------------------------------------------

              Analysis Period: 28-MAY-2009 from <strong>13:58:59 to 14:59:12</strong>
         Database ID/Instance: 3967623528/2
      Database/Instance Names: xxx
                    Host Name: xxx
             Database Version: 10.2.0.3.0
               Snapshot Range: from 15642 to 15643
                <strong>Database Time: 3710 seconds</strong>
        <strong>Average Database Load: 1 active sessions</strong>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<strong>FINDING 1: 52% impact (1917 seconds)</strong>
------------------------------------
<strong>Cluster multi-block requests were consuming significant database time.</strong>

   RECOMMENDATION 1: SQL Tuning, 37% benefit (1389 seconds)
      ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
         "0h0fn2d19adtk". Look for an alternative plan that does not use
         object scans.
         RELEVANT OBJECT: SQL statement with SQL_ID 0h0fn2d19adtk

         ... output snipped ... 

   RECOMMENDATION 2: SQL Tuning, 8.4% benefit (310 seconds)
      ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
         "8jd43xr4rp00u". Look for an alternative plan that does not use
         object scans.
         RELEVANT OBJECT: SQL statement with SQL_ID 8jd43xr4rp00u

         ... output snipped ... 

   RECOMMENDATION 3: SQL Tuning, 4.6% benefit (172 seconds)
      ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
         "6wpgf3s0vzuks". Look for an alternative plan that does not use
         object scans.
         RELEVANT OBJECT: SQL statement with SQL_ID 6wpgf3s0vzuks

         ... output snipped ... 

   <strong>SYMPTOMS THAT LED TO THE FINDING:
      SYMPTOM: Inter-instance messaging was consuming significant database
               time on this instance. (94% impact [3488 seconds])
         SYMPTOM: Wait class "Cluster" was consuming significant database
                  time. (94% impact [3488 seconds])</strong>

<strong>FINDING 2: 51% impact (1874 seconds)</strong>
------------------------------------
<strong>Global Cache Service Processes (LMSn) in other instances were not processing
requests fast enough.</strong>

   RECOMMENDATION 1: DB Configuration, 51% benefit (1874 seconds)
      ACTION: Increase throughput of the Global Cache Service (LMSn)
         processes. Increase the number of Global Cache Service processes by
         increasing the value of the parameter "gcs_server_processes".
         Alternatively, if the host is CPU bound consider increasing the OS
         priority of the Global Cache Service processes.
      RATIONALE: The value of parameter "gcs_server_processes" was "2" during
         the analysis period.

   <strong>SYMPTOMS THAT LED TO THE FINDING:
      SYMPTOM: Inter-instance messaging was consuming significant database
               time on this instance. (94% impact [3488 seconds])
         SYMPTOM: Wait class "Cluster" was consuming significant database
                  time. (94% impact [3488 seconds])</strong>

<strong>FINDING 3: 36% impact (1330 seconds)</strong>
------------------------------------
<strong>Cluster communications that were retried due to lost blocks consumed
significant database time.</strong>

   RECOMMENDATION 1: Host Configuration, 36% benefit (1330 seconds)
      ACTION: Check the configuration of the cluster interconnect. Check OS
         setup like adapter setting, firmware and driver release. Check that
         the OS's socket receive buffers are large enough to store an entire
         multiblock read. The value of parameter
         "db_file_multiblock_read_count" may be decreased as a workaround.
      RATIONALE: The instance was consuming 477 kilo bits per second of
         interconnect bandwidth.

  <strong> SYMPTOMS THAT LED TO THE FINDING:
      SYMPTOM: Inter-instance messaging was consuming significant database
               time on this instance. (94% impact [3488 seconds])
         SYMPTOM: Wait class "Cluster" was consuming significant database
                  time. (94% impact [3488 seconds])</strong>

#######################################################################

          DETAILED ADDM REPORT FOR TASK 'TASK_137874' WITH ID 137874
          ----------------------------------------------------------

              Analysis Period: 28-MAY-2009 from <strong>14:59:12 to 15:58:44</strong>
         Database ID/Instance: 3967623528/2
      Database/Instance Names: xxx
                    Host Name: xxx
             Database Version: 10.2.0.3.0
               Snapshot Range: from 15643 to 15644
                <strong>Database Time: 1563 seconds</strong>
        <strong>Average Database Load: .4 active sessions</strong>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<strong>FINDING 1: 42% impact (654 seconds)</strong>
-----------------------------------
<strong>Cluster communications that were retried due to lost blocks consumed
significant database time.</strong>

   RECOMMENDATION 1: Host Configuration, 42% benefit (654 seconds)
      ACTION: Check the configuration of the cluster interconnect. Check OS
         setup like adapter setting, firmware and driver release. Check that
         the OS's socket receive buffers are large enough to store an entire
         multiblock read. The value of parameter
         "db_file_multiblock_read_count" may be decreased as a workaround.
      RATIONALE: The instance was consuming 134 kilo bits per second of
         interconnect bandwidth.

   <strong>SYMPTOMS THAT LED TO THE FINDING:
      SYMPTOM: Inter-instance messaging was consuming significant database
               time on this instance. (88% impact [1371 seconds])
         SYMPTOM: Wait class "Cluster" was consuming significant database
                  time. (88% impact [1372 seconds])</strong></pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
<strong>AWR output:</strong></p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;">WORKLOAD REPOSITORY report for

DB Name         DB Id    Instance     Inst Num Release     RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
xxxxx         3967623528 xxxxxx              2 10.2.0.3.0  YES xxx

              Snap Id      Snap Time      Sessions Curs/Sess
            --------- ------------------- -------- ---------
Begin Snap:     15642 28-May-09 <strong>13:58:58</strong>        57      27.0
  End Snap:     15643 28-May-09 <strong>14:59:12</strong>        64      28.7
   <strong>Elapsed:               60.23 (mins)</strong>
   <strong>DB Time:               61.83 (mins)</strong>

Top 5 Timed Events                                         Avg %Total
~~~~~~~~~~~~~~~~~~                                        wait   Call
Event                                 Waits    Time (s)   (ms)   Time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
<strong>gc cr multi block request            19,644       1,902     97   51.3    Cluster
gc cr block lost                      1,011       1,117   1104   30.1    Cluster</strong>
enq: WF - contention                    626         268    429    7.2      Other
gc current block lost                   186         203   1089    5.5    Cluster
cr request retry                        678         162    240    4.4      Other

Per Wait Class
~~~~~~~~~~~~~~~~~~
                                                                  Avg
                                       %Time       Total Wait    wait     Waits
Wait Class                      Waits  -outs         Time (s)    (ms)      /txn
-------------------- ---------------- ------ ---------------- ------- ---------
<strong>Cluster                        34,450    7.0            3,385      98       6.8</strong>
Other                          91,292   64.7              467       5      18.1
User I/O                       26,510     .0              102       4       5.3
Concurrency                    29,668     .0               54       2       5.9
System I/O                     13,360     .0               11       1       2.6
Commit                          1,313     .0                4       3       0.3
Application                     2,374     .0                2       1       0.5
Network                       129,774     .0                0       0      25.7
Configuration                      20     .0                0       0       0.0

#######################################################################

WORKLOAD REPOSITORY report for

DB Name         DB Id    Instance     Inst Num Release     RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
xxxxx         3967623528 xxxxxx              2 10.2.0.3.0  YES xxx

              Snap Id      Snap Time      Sessions Curs/Sess
            --------- ------------------- -------- ---------
Begin Snap:     15643 28-May-09 <strong>14:59:12</strong>        64      28.7
  End Snap:     15644 28-May-09 <strong>15:58:43</strong>        64      29.6
   <strong>Elapsed:               59.53 (mins)
   DB Time:               26.05 (mins)</strong>

Top 5 Timed Events                                         Avg %Total
~~~~~~~~~~~~~~~~~~                                        wait   Call
Event                                 Waits    Time (s)   (ms)   Time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
<strong>gc cr block lost                        389         429   1103   27.5    Cluster
gc cr multi block request             2,360         422    179   27.0    Cluster</strong>
enq: WF - contention                    510         212    416   13.6      Other
gc current block lost                   188         204   1084   13.0    Cluster
cr request retry                        326         181    554   11.6      Other

Per Wait Class
~~~~~~~~~~~~~~~~~~
                                                                  Avg
                                       %Time       Total Wait    wait     Waits
Wait Class                      Waits  -outs         Time (s)    (ms)      /txn
-------------------- ---------------- ------ ---------------- ------- ---------
<strong>Cluster                        10,239    8.9            1,247     122       2.1</strong>
Other                         153,082   71.9              468       3      31.0
Application                     1,784   18.0              161      90       0.4
Concurrency                    33,014     .0               53       2       6.7
User I/O                        4,246     .0               27       6       0.9
System I/O                     13,648     .0               14       1       2.8
Commit                          1,546     .0                4       3       0.3
Network                       138,333     .0                1       0      28.0
Configuration                      16     .0                0       4       0.0</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
The only thing that is left to do is to drill down on the complaining users and check on the network performance and interconnect&#8230; unfortunately the users were going home and I can&#8217;t see any significant database activity. So I called it a night, and just analyzed my activity log and read on Metalink Doc ID 563566.1. Also I advised the DBA to divide the users across the nodes.</p>
<p>Next day afternoon, and it&#8217;s time to do the drill down. You can see on the graph below (a sample from GV$SESSION) that the users were already distributed, but still there is a performance problem. I told you this will not solve the issue ! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  it is just a plus that we manage to distribute the users <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5baKKJoI/AAAAAAAAANI/ghF4c9KQCuw/GcBlocksLost_3_SessionCount.jpg"><img title="GcBlocksLost_3_SessionCount" alt="GcBlocksLost_3_SessionCount" class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5baKKJoI/AAAAAAAAANI/ghF4c9KQCuw/s288/GcBlocksLost_3_SessionCount.jpg"></a></p>
<p>A query on GV$SESSION_LONGOPS will show users with large SQLs. Drilling down on the session statistics of these user’s will give detail on what are they waiting and how much time they spent on what resource. However, it would be a repetitive step to get all the sessions on the GV$SESSION_LONGOPS.</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:6px;padding-left:30px;">select * from (
			select
			a.inst_id inst, a.START_TIME, b.osuser, b.module,  a.sid, a.serial#,
			a.opname, b.event, a.target, a.sofar, a.totalwork, round(a.sofar/a.totalwork, 4)*100 pct, a.units, a.elapsed_seconds, a.time_remaining time_remaining_sec, round(a.time_remaining/60,2) min
			,a.sql_hash_value
		-- 	,message
			from gv$session_longops a, gv$session b
			where a.sid = b.sid
			and b.serial# = b.serial#
			and sofar &lt; totalwork
			order by totalwork desc)

INST START_TIME        OSUSER     MODULE             SID SERIAL# OPNAME     EVENT           TARGET          SOFAR  TOTALWORK        PCT UNITS      ELAPSED_SECONDS TIME_REMAINING_SEC        MIN SQL_HASH_VALUE
---- ----------------- ---------- --------------- ------ ------- ---------- --------------- ---------- ---------- ---------- ---------- ---------- --------------- ------------------ ---------- --------------
   2 20090529 18:36:38 oraprod    oracle@xxxxx280    454      82 Table Scan gc cr multi blo xxxxxxxx.B       2205      25403       8.68 Blocks                 343               3609      60.15     1857468103
                                  R (TNS V1-V3)                             ck request      ENMAS

   2 20090529 18:30:39 oraprod    oracle@xxxxx280    607     546 Table Scan gc cr multi blo xxxxxxxx.C      11062      15203      72.76 Blocks                 708                265       4.42     1477847824
                                  R (TNS V1-V3)                             ck request      OVMAS

   1 20090529 15:51:58 PC829      c:\xxxwin95\BIN    474     721 Table Scan gc cr request   xxxxxxxx.C      11108      15203      73.06 Blocks               10317               3803      63.38     1636678807
                                  \F45RUN32.EXE w                                           OVMAS
                                  : \xxxlogin.fmx

   1 20090529 17:27:49 PC1280     c:\xxxwin95\BIN    473     171 Table Scan gc cr request   xxxxxx.DTT        336      12918        2.6 Blocks                4449             166599    2776.65     1117075250
                                  \R25SRV32.exe                                             _DVDTL

   1 20090529 17:27:49 oracle     sqlplus@server2    473     171 Table Scan PX Deq: Executi xxxxxx.DTT        336      12918        2.6 Blocks                4449             166599    2776.65     1117075250
                                  .xxxx.xxx (TNS                           on Msg          _DVDTL
                                   V1-V3)</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
I already have an idea that my problem is on the cluster configuration. So I asked the DBA that we go up to the Accounting Department (where there are a lot of users complaining) and check on the desktop terminals of the users. We saw two users which has the application module on total hang. These users are <strong>PC1069 (with SID 601)</strong> and <strong>PC918 (with SID 483)</strong>. So a query on the GV$SESSION_LONGOPS does not show these users but a query on GV$SESSION_WAIT shows that they are waiting on <strong>“gc cr request” </strong>event</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">select s.inst_id, w.sid, s.sql_hash_value, s.osuser, s.program, w.event, w.seconds_in_wait seconds_in_wait, w.state, w.p1, w.p2, w.p3
from gv$session s, gv$session_wait w
where s.sid = w.sid and s.type = 'USER'
and w.state = 'WAITING'
and s.osuser in ('PC1069','PC918')
order by 6 asc;

   INST_ID    SID SQL_HASH_VALUE OSUSER     PROGRAM                 EVENT              SECONDS_IN_WAIT STATE                     P1         P2         P3
---------- ------ -------------- ---------- ----------------------- ------------------ --------------- ----------------- ---------- ---------- ----------
         1    483      449494677 PC918      c:\xxxwin95\BIN\F45RUN3 SQL*Net message fr            3853 WAITING            675562835          1          0
                                            2.EXE w:\xxxlogin.fmx   om client

         1    601     1874068660 PC1069     c:\xxxwin95\BIN\F45RUN3 gc cr request                    6 WAITING                   12    1173863          1
                                            2.EXE w:\xxxlogin.fmx

         1    483      449494677 PC918      c:\xxxwin95\BIN\F45RUN3 gc cr request                    0 WAITING                    7    1649989          1
                                            2.EXE w:\xxxlogin.fmx</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Focusing on these two sessions (SID 601 and 483) and getting their session statistics will give us an idea <strong>if they are doing something, on a total hang, or waiting for something</strong>. Below query on V$SESSION_WAIT shows that the SEQ# is being incremented (a number that uniquely identifies this wait) which means the session (SID 601) is still waiting for something, the event “gc cr request”</p>
<p>BTW, I&#8217;m using SW script of Tanel Poder (downloadable <a title="TPT scripts" href="http://www.tanelpoder.com/files/TPT_public.zip" target="_blank">here</a>), and you&#8217;ll also see some usage of Snapper and USQL</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">SQL&gt; @sw 601

    SID STATE   EVENT                                          SEQ# SEC_IN_WAIT         P1         P2         P3 P1TRANSL
------- ------- ---------------------------------------- ---------- ----------- ---------- ---------- ---------- ------------------------------------------
    601 WAITING gc cr request                                 27223           3          7    1647259          1

... output snipped ...

SQL&gt; @sw 601

    SID STATE   EVENT                                          SEQ# SEC_IN_WAIT         P1         P2         P3 P1TRANSL
------- ------- ---------------------------------------- ---------- ----------- ---------- ---------- ---------- ------------------------------------------
    601 WAITING gc cr request                                 27225           0          7    1647259          1

... output snipped ...

SQL&gt; @sw 601

    SID STATE   EVENT                                          SEQ# SEC_IN_WAIT         P1         P2         P3 P1TRANSL
------- ------- ---------------------------------------- ---------- ----------- ---------- ---------- ---------- ------------------------------------------
    601 WAITING gc cr request                                 27227           0          7    1647259          1

... output snipped ...

SQL&gt; @sw 601

    SID STATE   EVENT                                          SEQ# SEC_IN_WAIT         P1         P2         P3 P1TRANSL
------- ------- ---------------------------------------- ---------- ----------- ---------- ---------- ---------- ------------------------------------------
    601 WAITING gc cr request                                 27229           7          7    1647259          1</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
A query on V$SESSTAT will show the performance/wait counters being incremented (SID 601), the output below was a snap of the session for 5 seconds period done 5 times. You’ll see that “gc current” waits are significant</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">SQL&gt; @snapper out 5 5 601
-- Session Snapper v1.10 by Tanel Poder ( http://www.tanelpoder.com )
---------------------------------------------------------------------------------------------------------------------------------------------
HEAD,     SID, SNAPSHOT START   ,  SECONDS, TYPE, STATISTIC                               ,         DELTA,  DELTA/SEC,     HDELTA, HDELTA/SEC
---------------------------------------------------------------------------------------------------------------------------------------------
DATA,     601, 20090529 18:48:36,        6, STAT, opened cursors current                  ,            -1,         -0,         -1,       -.17
DATA,     601, 20090529 18:48:36,        6, STAT, recursive calls                         ,             5,          1,          5,        .83
DATA,     601, 20090529 18:48:36,        6, STAT, session logical reads                   ,            24,          4,         24,          4
DATA,     601, 20090529 18:48:36,        6, STAT, cluster wait time                       ,           492,         82,        492,         82
DATA,     601, 20090529 18:48:36,        6, STAT, user I/O wait time                      ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, session pga memory                      ,        -65536,     -10923,    -65.54k,    -10.92k
DATA,     601, 20090529 18:48:36,        6, STAT, physical read total IO requests         ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, physical read total bytes               ,          8192,       1365,      8.19k,      1.37k
DATA,     601, 20090529 18:48:36,        6, STAT, gcs messages sent                       ,             3,          1,          3,         .5
DATA,     601, 20090529 18:48:36,        6, STAT, db block gets                           ,             6,          1,          6,          1
DATA,     601, 20090529 18:48:36,        6, STAT, db block gets from cache                ,             6,          1,          6,          1
DATA,     601, 20090529 18:48:36,        6, STAT, consistent gets                         ,            18,          3,         18,          3
DATA,     601, 20090529 18:48:36,        6, STAT, consistent gets from cache              ,            18,          3,         18,          3
DATA,     601, 20090529 18:48:36,        6, STAT, consistent gets - examination           ,             8,          1,          8,       1.33
DATA,     601, 20090529 18:48:36,        6, STAT, physical reads                          ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, physical reads cache                    ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, physical read IO requests               ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, physical read bytes                     ,          8192,       1365,      8.19k,      1.37k
DATA,     601, 20090529 18:48:36,        6, STAT, db block changes                        ,             3,          1,          3,         .5
DATA,     601, 20090529 18:48:36,        6, STAT, free buffer requested                   ,             3,          1,          3,         .5
DATA,     601, 20090529 18:48:36,        6, STAT, calls to get snapshot scn: kcmgss       ,             5,          1,          5,        .83
DATA,     601, 20090529 18:48:36,        6, STAT, redo entries                            ,             2,          0,          2,        .33
DATA,     601, 20090529 18:48:36,        6, STAT, redo size                               ,           536,         89,        536,      89.33
DATA,     601, 20090529 18:48:36,        6, STAT, gc current blocks received              ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, gc remote grants                        ,             1,          0,          1,        .17
DATA,     601, 20090529 18:48:36,        6, STAT, undo change vector size                 ,            84,         14,         84,         14
DATA,     601, 20090529 18:48:36,        6, STAT, no work - consistent read gets          ,             9,          2,          9,        1.5
DATA,     601, 20090529 18:48:36,        6, STAT, table fetch by rowid                    ,             4,          1,          4,        .67
DATA,     601, 20090529 18:48:36,        6, STAT, index scans kdiixs1                     ,             4,          1,          4,        .67
DATA,     601, 20090529 18:48:36,        6, STAT, buffer is not pinned count              ,             8,          1,          8,       1.33
DATA,     601, 20090529 18:48:36,        6, STAT, execute count                           ,             4,          1,          4,        .67
DATA,     601, 20090529 18:48:36,        6, TIME, PL/SQL execution elapsed time           ,           139,         23,      139us,    23.17us
DATA,     601, 20090529 18:48:36,        6, TIME, DB CPU                                  ,         10000,       1667,       10ms,     1.67ms
DATA,     601, 20090529 18:48:36,        6, TIME, sql execute elapsed time                ,      27552125,    4592021,     27.55s,      4.59s
DATA,     601, 20090529 18:48:36,        6, TIME, DB time                                 ,      27552133,    4592022,     27.55s,      4.59s
DATA,     601, 20090529 18:48:36,        6, WAIT, db file sequential read                 ,          8374,       1396,     8.37ms,      1.4ms
DATA,     601, 20090529 18:48:36,        6, WAIT, gc current request                      ,       9664835,    1610806,      9.66s,      1.61s
--  End of snap 1
DATA,     601, 20090529 18:48:42,        5, STAT, opened cursors cumulative               ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, opened cursors current                  ,            -1,         -0,         -1,        -.2
DATA,     601, 20090529 18:48:42,        5, STAT, recursive calls                         ,             4,          1,          4,         .8
DATA,     601, 20090529 18:48:42,        5, STAT, recursive cpu usage                     ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, session logical reads                   ,            42,          8,         42,        8.4
DATA,     601, 20090529 18:48:42,        5, STAT, cluster wait time                       ,           419,         84,        419,       83.8
DATA,     601, 20090529 18:48:42,        5, STAT, user I/O wait time                      ,             2,          0,          2,         .4
DATA,     601, 20090529 18:48:42,        5, STAT, enqueue requests                        ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, global enqueue gets sync                ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, physical read total IO requests         ,             2,          0,          2,         .4
DATA,     601, 20090529 18:48:42,        5, STAT, physical read total bytes               ,         16384,       3277,     16.38k,      3.28k
DATA,     601, 20090529 18:48:42,        5, STAT, gcs messages sent                       ,             2,          0,          2,         .4
DATA,     601, 20090529 18:48:42,        5, STAT, db block gets                           ,            41,          8,         41,        8.2
DATA,     601, 20090529 18:48:42,        5, STAT, db block gets from cache                ,            41,          8,         41,        8.2
DATA,     601, 20090529 18:48:42,        5, STAT, consistent gets                         ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, consistent gets from cache              ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, physical reads                          ,             2,          0,          2,         .4
DATA,     601, 20090529 18:48:42,        5, STAT, physical reads cache                    ,             2,          0,          2,         .4
DATA,     601, 20090529 18:48:42,        5, STAT, physical read IO requests               ,             2,          0,          2,         .4
DATA,     601, 20090529 18:48:42,        5, STAT, physical read bytes                     ,         16384,       3277,     16.38k,      3.28k
DATA,     601, 20090529 18:48:42,        5, STAT, db block changes                        ,            26,          5,         26,        5.2
DATA,     601, 20090529 18:48:42,        5, STAT, exchange deadlocks                      ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, free buffer requested                   ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:42,        5, STAT, calls to get snapshot scn: kcmgss       ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, redo entries                            ,            14,          3,         14,        2.8
DATA,     601, 20090529 18:48:42,        5, STAT, redo size                               ,          3504,        701,       3.5k,      700.8
DATA,     601, 20090529 18:48:42,        5, STAT, redo subscn max counts                  ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, gc local grants                         ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, gc remote grants                        ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, undo change vector size                 ,          1140,        228,      1.14k,        228
DATA,     601, 20090529 18:48:42,        5, STAT, deferred (CURRENT) block cleanout applic,             4,          1,          4,         .8
DATA,     601, 20090529 18:48:42,        5, STAT, parse count (total)                     ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, STAT, execute count                           ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:42,        5, TIME, parse time elapsed                      ,            41,          8,       41us,      8.2us
DATA,     601, 20090529 18:48:42,        5, TIME, PL/SQL execution elapsed time           ,           125,         25,      125us,       25us
DATA,     601, 20090529 18:48:42,        5, TIME, sql execute elapsed time                ,       5433501,    1086700,      5.43s,      1.09s
DATA,     601, 20090529 18:48:42,        5, TIME, DB time                                 ,       5433501,    1086700,      5.43s,      1.09s
DATA,     601, 20090529 18:48:42,        5, WAIT, db file sequential read                 ,         17812,       3562,    17.81ms,     3.56ms
DATA,     601, 20090529 18:48:42,        5, WAIT, gc current request                      ,      -4221489,    -844298,     -4.22s,   -844.3ms
DATA,     601, 20090529 18:48:42,        5, WAIT, gc current block lost                   ,       6634963,    1326993,      6.63s,      1.33s
DATA,     601, 20090529 18:48:42,        5, WAIT, gc current grant 2-way                  ,           254,         51,      254us,     50.8us
DATA,     601, 20090529 18:48:42,        5, WAIT, events in waitclass Other               ,           600,        120,      600us,      120us
--  End of snap 2
DATA,     601, 20090529 18:48:47,        5, STAT, session logical reads                   ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:47,        5, STAT, cluster wait time                       ,           503,        101,        503,      100.6
DATA,     601, 20090529 18:48:47,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:47,        5, STAT, db block gets                           ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:47,        5, STAT, db block gets from cache                ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:47,        5, STAT, exchange deadlocks                      ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:47,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:47,        5, WAIT, gc current request                      ,       1221742,     244348,      1.22s,   244.35ms
DATA,     601, 20090529 18:48:47,        5, WAIT, gc current block lost                   ,       3813435,     762687,      3.81s,   762.69ms
DATA,     601, 20090529 18:48:47,        5, WAIT, events in waitclass Other               ,           609,        122,      609us,    121.8us
--  End of snap 3
DATA,     601, 20090529 18:48:52,        5, STAT, session logical reads                   ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:52,        5, STAT, cluster wait time                       ,           524,        105,        524,      104.8
DATA,     601, 20090529 18:48:52,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:52,        5, STAT, db block gets                           ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:52,        5, STAT, db block gets from cache                ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:52,        5, STAT, exchange deadlocks                      ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:52,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:52,        5, TIME, sql execute elapsed time                ,       6613095,    1322619,      6.61s,      1.32s
DATA,     601, 20090529 18:48:52,        5, TIME, DB time                                 ,       6613095,    1322619,      6.61s,      1.32s
DATA,     601, 20090529 18:48:52,        5, WAIT, gc current request                      ,       3000843,     600169,         3s,   600.17ms
DATA,     601, 20090529 18:48:52,        5, WAIT, gc current block lost                   ,       4018577,     803715,      4.02s,   803.72ms
DATA,     601, 20090529 18:48:52,        5, WAIT, events in waitclass Other               ,           570,        114,      570us,      114us
--  End of snap 4
DATA,     601, 20090529 18:48:57,        5, STAT, session logical reads                   ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:57,        5, STAT, cluster wait time                       ,           523,        105,        523,      104.6
DATA,     601, 20090529 18:48:57,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:57,        5, STAT, db block gets                           ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:57,        5, STAT, db block gets from cache                ,             3,          1,          3,         .6
DATA,     601, 20090529 18:48:57,        5, STAT, exchange deadlocks                      ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:57,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     601, 20090529 18:48:57,        5, TIME, sql execute elapsed time                ,       5230170,    1046034,      5.23s,      1.05s
DATA,     601, 20090529 18:48:57,        5, TIME, DB time                                 ,       5230170,    1046034,      5.23s,      1.05s
DATA,     601, 20090529 18:48:57,        5, WAIT, gc current request                      ,          -473,        -95,     -473us,    -94.6us
DATA,     601, 20090529 18:48:57,        5, WAIT, gc current block lost                   ,       5230137,    1046027,      5.23s,      1.05s
DATA,     601, 20090529 18:48:57,        5, WAIT, events in waitclass Other               ,           390,         78,      390us,       78us
--  End of snap 5

PL/SQL procedure successfully completed.</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Below is the SQL being executed for SID 601 which is a <strong>batch INSERT operation</strong> that is just a normal operation as per the DBA</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">SQL&gt; @usql 601

HASH_VALUE  CH# SQL_TEXT
---------- ---- ------------------------------------------------------------------------------------------------------------------------------------------------------
   6143262    0 INSERT INTO xxx(
                BATxxx,POLxxx,SRCxxx,PAYxxx,DATxxx,DATxxx,AMxxxx,ACCxxx,NEWxxx,POLxxx,FUNxxx,Uxxxxx,Txxxx,Cxxxx,PRxxxx,Exxxx,xxxxID,POxxxx,Nxxxx,xxxAMT,xxxPRM,xxxMAV
                ,COLxxxx,NOPxxx )  VALUES ( :b1,:b2,:b3,:b4,:b5,:b6,:b7,:b8,:b9,:b10,:b11,:b12,:b13,:b14,:b15,:b16,:b17,:b18,:b19,:b20,:b21,:b22,:b23,:b24  )

 CH# PARENT_HANDLE    OBJECT_HANDLE        PARSES   H_PARSES EXECUTIONS    FETCHES ROWS_PROCESSED       LIOS       PIOS      SORTS     CPU_MS     ELA_MS USERS_EXECUTING
---- ---------------- ---------------- ---------- ---------- ---------- ---------- -------------- ---------- ---------- ---------- ---------- ---------- ---------------
   0 00000000D0A5FC68 00000000D0A5FA40         10          1       2714          0           2714     300753      17731          0  12136.359  5899798.3               1

SQL hash value:         6143262    Cursor address:  00000000D0A5FC68    |   Statement first parsed at: 2009-05-29/13:01:42  |  20903 seconds ago</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Below is the SQL being executed for SID 483 which is a <strong>SELECT</strong> operation that is just a normal operation as per the DBA</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">SQL&gt; @usql 483

HASH_VALUE  CH# SQL_TEXT
---------- ---- ------------------------------------------------------------------------------------------------------------------------------------------------------
 449494677    0 SELECT x.xxxPxD,F.xxxNMx,B.xxxPxD,x.xxxNMx,D.PxLMxD,D.PxLFRQ,x.xxVxMT,x.xxVSTx,x.xxVxFF,x.xxVDxx,SxM(G.xxVMxN) MxDPRxM   FRxM RxPMxS x,BxNMxS B,xxxMxS
                x,PxLMxS D,xxVMxS x,xxxMxS F,xxVMxS G  WHxRx x.PxLNxM = NVL(:b1,'X')  xND x.RxLTYP = 'PxY'  xND (x.RxLPRx = 100  xR x.RxLPRx xS NxLL  ) xND x.xxxPxD =
                F.xxxPxD  xND B.PxLNxM (+)   = NVL(:b2,'X')  xND B.RxLTYP (+)   = 'xNS'  xND B.xxVNxM = 1  xND (B.RxLPxR = 100  xR B.RxLPxR xS NxLL  ) xND B.xxxPxD =
                x.xxxPxD (+)    xND D.PxLNxM = NVL(:b3,'X')  xND x.PxLNxM = NVL(:b4,'X')  xND x.xxVNxM = 1  xND G.PxLNxM = NVL(:b5,'X')  GRxxP BY
                x.xxxPxD,F.xxxNMx,B.xxxPxD,x.xxxNMx,D.PxLMxD,D.PxLFRQ,x.xxVxMT,x.xxVSTx,x.xxVxFF,x.xxVDxx

 CH# PARENT_HANDLE    OBJECT_HANDLE        PARSES   H_PARSES EXECUTIONS    FETCHES ROWS_PROCESSED       LIOS       PIOS      SORTS     CPU_MS     ELA_MS USERS_EXECUTING
---- ---------------- ---------------- ---------- ---------- ---------- ---------- -------------- ---------- ---------- ---------- ---------- ---------- ---------------
   0 00000000C2E54DD0 00000000C2E5E700          8          1       1047       2089           1043      58793       3905       2087   2676.616 11108807.7               1</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
A query on V$SESSTAT will show the performance/wait counters being incremented (SID 483), the output below was a snap of the session for 5 seconds period done 10 times. You’ll see that “gc cr” waits are significant</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">SQL&gt; @snapper out 5 10 483
-- Session Snapper v1.10 by Tanel Poder ( http://www.tanelpoder.com )
---------------------------------------------------------------------------------------------------------------------------------------------
HEAD,     SID, SNAPSHOT START   ,  SECONDS, TYPE, STATISTIC                               ,         DELTA,  DELTA/SEC,     HDELTA, HDELTA/SEC
---------------------------------------------------------------------------------------------------------------------------------------------
DATA,     483, 20090529 19:00:17,        5, STAT, cluster wait time                       ,           527,        105,        527,      105.4
DATA,     483, 20090529 19:00:17,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:17,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:17,        5, WAIT, gc cr request                           ,      -1220551,    -244110,     -1.22s,  -244.11ms
DATA,     483, 20090529 19:00:17,        5, WAIT, gc cr block lost                        ,       6485830,    1297166,      6.49s,       1.3s
DATA,     483, 20090529 19:00:17,        5, WAIT, events in waitclass Other               ,           530,        106,      530us,      106us
--  End of snap 1
DATA,     483, 20090529 19:00:22,        5, STAT, session logical reads                   ,             4,          1,          4,         .8
DATA,     483, 20090529 19:00:22,        5, STAT, cluster wait time                       ,           454,         91,        454,       90.8
DATA,     483, 20090529 19:00:22,        5, STAT, messages sent                           ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:22,        5, STAT, gcs messages sent                       ,             2,          0,          2,         .4
DATA,     483, 20090529 19:00:22,        5, STAT, consistent gets                         ,             4,          1,          4,         .8
DATA,     483, 20090529 19:00:22,        5, STAT, consistent gets from cache              ,             4,          1,          4,         .8
DATA,     483, 20090529 19:00:22,        5, STAT, consistent gets - examination           ,             3,          1,          3,         .6
DATA,     483, 20090529 19:00:22,        5, STAT, free buffer requested                   ,             2,          0,          2,         .4
DATA,     483, 20090529 19:00:22,        5, STAT, shared hash latch upgrades - no wait    ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:22,        5, STAT, gc current blocks received              ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:22,        5, STAT, no work - consistent read gets          ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:22,        5, STAT, table fetch by rowid                    ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:22,        5, STAT, index fetch by key                      ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:22,        5, STAT, buffer is not pinned count              ,             2,          0,          2,         .4
DATA,     483, 20090529 19:00:22,        5, WAIT, gc cr request                           ,      -8443706,   -1688741,     -8.44s,     -1.69s
DATA,     483, 20090529 19:00:22,        5, WAIT, gc cr block lost                        ,       6986370,    1397274,      6.99s,       1.4s
DATA,     483, 20090529 19:00:22,        5, WAIT, gc current block 2-way                  ,           596,        119,      596us,    119.2us
DATA,     483, 20090529 19:00:22,        5, WAIT, events in waitclass Other               ,           266,         53,      266us,     53.2us
--  End of snap 2
DATA,     483, 20090529 19:00:27,        5, STAT, cluster wait time                       ,           506,        101,        506,      101.2
DATA,     483, 20090529 19:00:27,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:27,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
--  End of snap 3
DATA,     483, 20090529 19:00:32,        5, STAT, cluster wait time                       ,           488,         98,        488,       97.6
DATA,     483, 20090529 19:00:32,        5, WAIT, gc cr request                           ,       9888169,    1977634,      9.89s,      1.98s
--  End of snap 4
DATA,     483, 20090529 19:00:37,        5, STAT, cluster wait time                       ,           548,        110,        548,      109.6
DATA,     483, 20090529 19:00:37,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:37,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:37,        5, WAIT, gc cr request                           ,      -4444128,    -888826,     -4.44s,  -888.83ms
DATA,     483, 20090529 19:00:37,        5, WAIT, gc cr block lost                        ,       7920880,    1584176,      7.92s,      1.58s
DATA,     483, 20090529 19:00:37,        5, WAIT, events in waitclass Other               ,           341,         68,      341us,     68.2us
--  End of snap 5
DATA,     483, 20090529 19:00:42,        5, STAT, cluster wait time                       ,           494,         99,        494,       98.8
DATA,     483, 20090529 19:00:42,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:42,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:42,        5, WAIT, gc cr request                           ,        883591,     176718,   883.59ms,   176.72ms
DATA,     483, 20090529 19:00:42,        5, WAIT, gc cr block lost                        ,       4055130,     811026,      4.06s,   811.03ms
DATA,     483, 20090529 19:00:42,        5, WAIT, events in waitclass Other               ,           337,         67,      337us,     67.4us
--  End of snap 6
DATA,     483, 20090529 19:00:47,        6, STAT, cluster wait time                       ,           448,         75,        448,      74.67
DATA,     483, 20090529 19:00:47,        6, STAT, gcs messages sent                       ,             1,          0,          1,        .17
DATA,     483, 20090529 19:00:47,        6, STAT, free buffer requested                   ,             1,          0,          1,        .17
DATA,     483, 20090529 19:00:47,        6, WAIT, gc cr request                           ,      -2105578,    -350930,     -2.11s,  -350.93ms
DATA,     483, 20090529 19:00:47,        6, WAIT, gc cr block lost                        ,       6590281,    1098380,      6.59s,       1.1s
DATA,     483, 20090529 19:00:47,        6, WAIT, events in waitclass Other               ,           496,         83,      496us,    82.67us
--  End of snap 7
DATA,     483, 20090529 19:00:53,        5, STAT, cluster wait time                       ,           547,        109,        547,      109.4
DATA,     483, 20090529 19:00:53,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:53,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
--  End of snap 8
DATA,     483, 20090529 19:00:58,        5, STAT, cluster wait time                       ,           528,        106,        528,      105.6
DATA,     483, 20090529 19:00:58,        5, STAT, gcs messages sent                       ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:58,        5, STAT, free buffer requested                   ,             1,          0,          1,         .2
DATA,     483, 20090529 19:00:58,        5, WAIT, gc cr block lost                        ,       5286330,    1057266,      5.29s,      1.06s
DATA,     483, 20090529 19:00:58,        5, WAIT, events in waitclass Other               ,           636,        127,      636us,    127.2us
--  End of snap 9
DATA,     483, 20090529 19:01:03,        5, STAT, cluster wait time                       ,           489,         98,        489,       97.8
DATA,     483, 20090529 19:01:03,        5, WAIT, gc cr request                           ,      10886698,    2177340,     10.89s,      2.18s
--  End of snap 10

PL/SQL procedure successfully completed.</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Another graph of DBA_HIST_ACTIVE_SESS_HISTORY will show that the server is suffering from <strong>“gc cr block lost” and “gc cr multi block request”</strong>. Again, ADDM and AWR reports also support this graph</p>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5eLcr_yI/AAAAAAAAANQ/yAaoZJPDnmM/GcBlocksLost_4_server1waits.jpg"><img title="GcBlocksLost_4_server1waits" alt="GcBlocksLost_4_server1waits" class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5eLcr_yI/AAAAAAAAANQ/yAaoZJPDnmM/s288/GcBlocksLost_4_server1waits.jpg"></a></p>
<p>Hmm&#8230; I already have sufficient info that <strong>on the instance and session level, I&#8217;m getting waits that point me to diagnose and look into the network interconnect</strong>. Analyzing the <strong>“netstat -s”</strong> output from OS Watcher shows that there are many errors on the TCP and UDP packets</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">$ cat server1_netstat.dat | egrep -i "udpInOverflows|packet receive errors|fragments dropped|reassembles failed|fragments dropped after timeout"
<strong>    34096 fragments dropped after timeout
    306030 packet reassembles failed
    15 packet receive errors
    34096 fragments dropped after timeout
    306268 packet reassembles failed
    15 packet receive errors
    34096 fragments dropped after timeout
    306574 packet reassembles failed
    15 packet receive errors
    34096 fragments dropped after timeout
    306930 packet reassembles failed
    15 packet receive errors
    34096 fragments dropped after timeout</strong>

… output snipped … 

<strong>    15 packet receive errors
    34096 fragments dropped after timeout
    328087 packet reassembles failed
    15 packet receive errors
    34096 fragments dropped after timeout
    328493 packet reassembles failed
    15 packet receive errors
    34096 fragments dropped after timeout
    328889 packet reassembles failed
    15 packet receive errors</strong></pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
We quickly advised the network team to check on the interconnect switch for any issues and if possible replace it with a new unit to see if it solves the performance problem.</p>
<p>Then the DBA scheduled a downtime, and <strong>at first we tried restarting just the switch if it solves the problem</strong>. Then we make them run the applications again, but still there is a performance problem.</p>
<p>Then we shutdown again and <strong>the network team replaced the interconnect switch with a new unit</strong>. Then startup, and run the applications again&#8230;..</p>
<p>tentenenenen tenen!!!</p>
<p>&#8230;&#8230; they got fast <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  !!!</p>
<p>Another check on the &#8220;netstat -s&#8221; shows no errors!</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">karao@karl:~/Desktop$ cat karlarao.dat | egrep -i "udpInOverflows|packet receive errors|fragments dropped|reassembles failed|fragments dropped after timeout"
<strong>    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors
    0 packet receive errors</strong></pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
Another graph of DBA_HIST_ACTIVE_SESS_HISTORY shows that the &#8220;gc block lost&#8221; waits are gone <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>3d view:</strong><br />
<a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/Stk5fGP8BCI/AAAAAAAAANU/_9Hp38WKER4/GcBlocksLost_5_server1waits3d.jpg"><img title="GcBlocksLost_5_server1waits3d" alt="GcBlocksLost_5_server1waits3d" class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/Stk5fGP8BCI/AAAAAAAAANU/_9Hp38WKER4/s288/GcBlocksLost_5_server1waits3d.jpg"></a></p>
<p><strong>Stacked graph:</strong><br />
<a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5gigl8bI/AAAAAAAAANY/u8aizBu0sZs/GcBlocksLost_6_server1waits1.jpg"><img title="GcBlocksLost_6_server1waits1" alt="GcBlocksLost_6_server1waits1" class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5gigl8bI/AAAAAAAAANY/u8aizBu0sZs/s288/GcBlocksLost_6_server1waits1.jpg"></a></p>
<p>Update:<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
I was also able to share and present this performance scenario on one of our DBA round tables locally (at the Oracle office)..<br />
- <strong>Performance Scenario &#8211; Sudden slow down on RAC</strong> <a href="https://docs.google.com/fileview?id=0B5H46jS7ZPdJZTM5Yjc1YzQtYjQ3NC00ZDI5LWFmOGYtYzYxN2JlNGI0NmYy&amp;hl=en" target="_blank">(pdf)</a> &#8211; Oracle Philippines DBA round table, 07/21/2009</p>
<p><span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span><br />
<span style="color:white;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=413&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/36d4CkGnQGQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/06/07/diagnosing-and-resolving-gc-block-lost/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Stk5aGbKMWI/AAAAAAAAANA/_MM0-RFl1c4/s288/GcBlocksLost_1_SessionCount.jpg" medium="image">
			<media:title type="html">GcBlocksLost_1_SessionCount</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/Stk5cjpEO3I/AAAAAAAAANM/pA8lDPS5co0/s288/GcBlocksLost_2_server1waits.png.jpg" medium="image">
			<media:title type="html">GcBlocksLost_2_server1waits</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5baKKJoI/AAAAAAAAANI/ghF4c9KQCuw/s288/GcBlocksLost_3_SessionCount.jpg" medium="image">
			<media:title type="html">GcBlocksLost_3_SessionCount</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5eLcr_yI/AAAAAAAAANQ/yAaoZJPDnmM/s288/GcBlocksLost_4_server1waits.jpg" medium="image">
			<media:title type="html">GcBlocksLost_4_server1waits</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/Stk5fGP8BCI/AAAAAAAAANU/_9Hp38WKER4/s288/GcBlocksLost_5_server1waits3d.jpg" medium="image">
			<media:title type="html">GcBlocksLost_5_server1waits3d</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Stk5gigl8bI/AAAAAAAAANY/u8aizBu0sZs/s288/GcBlocksLost_6_server1waits1.jpg" medium="image">
			<media:title type="html">GcBlocksLost_6_server1waits1</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/06/07/diagnosing-and-resolving-gc-block-lost/</feedburner:origLink></item>
		<item>
		<title>Yast on OEL</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/5YnUznlbdxs/</link>
		<comments>http://karlarao.wordpress.com/2009/05/08/yast-on-oel/#comments</comments>
		<pubDate>Fri, 08 May 2009 20:04:18 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Enterprise_Manager]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=354</guid>
		<description><![CDATA[Lately I’ve been playing with Enterprise Manager Grid Control 10.2.0.4 on OEL 4.4 (I’ll upgrade this to 10.2.0.5 soon) and I’ve had a couple of product presentation and demo focusing on the Database Enterprise Management, well among all the packs under this Grid Control “Area” the hottest are the Configuration Management and Data Masking. &#8230;While clicking around the huge monitoring tool I’ve reached the page of “Targets -&#62; Hosts -&#62; Administration”&#8230;that happens to be part of the Oracle Management Pack for Linux and noticed it was not working and says it needs the “Yast wrapper <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/05/08/yast-on-oel/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=354&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Lately I’ve been playing with Enterprise Manager Grid Control 10.2.0.4 on OEL 4.4 (I’ll upgrade this to 10.2.0.5 soon) and I’ve had a couple of product presentation and demo focusing on the Database Enterprise Management, well among all the packs under this Grid Control “Area” the hottest are the Configuration Management and Data Masking.</p>
<p>&#8230;While clicking around the huge monitoring tool I’ve reached the page of “Targets -&gt; Hosts -&gt; Administration”&#8230;that happens to be part of the Oracle Management Pack for Linux and noticed it was not working and says it needs the “Yast wrapper available at oss.oracle.com” hmm maybe not the exact message but it lead me to download this file <strong>http://oss.oracle.com/projects/yast/dist/files/el4/20070117/yast_el4_x86_32.tar </strong> which is a port of Yast to Oracle Enterprise Linux. COOL! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><span id="more-354"></span></p>
<p>Well Yast (Yet another Setup Tool) is a pretty comprehensive tool which allows you to install software, configure hardware, set up networks and servers, and more&#8230;<br />
But I’m a RedHat guy and I’m used to the way I manually do all these stuffs using the native utilities. (So even if I have this cool tool installed on my machine maybe I will not be able to use it :p )</p>
<p>Here’s the step by step guide to get that cool thing running:</p>
<p>1) Install EMGC Release 4<br />
2) Download YAST plugin at http://oss.oracle.com/projects/yast<br />
3) Untar and install the plugin, see below</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:11px;padding-left:30px;">[root@emgc1 yast_el4_x86_32]# ./install.sh 

Now checking the necessary rpms...........
Checking alsa-lib ....... found
Checking alsa-utils ....... found
Checking ash ....... found
Checking beecrypt ....... found
Checking bind-utils ....... found
Checking bzip2-libs ....... found
Checking compat-libstdc++-33 ....... found
Checking cracklib ....... found
Checking cups-libs ....... found
Checking curl ....... found
Checking e2fsprogs ....... found
Checking elfutils-libelf ....... found
Checking filesystem ....... found
Checking glibc ....... found
Checking glibc-common ....... found
Checking gzip ....... found
Checking hdparm ....... found
Checking info ....... found
Checking initscripts ....... found
Checking krb5-libs ....... found
Checking libgcc ....... found
Checking libidn ....... found
Checking libselinux ....... found
Checking libstdc++ ....... found
Checking libxml2 ....... found
Checking logrotate ....... found
Checking ncurses ....... found
Checking net-tools ....... found
Checking openldap ....... found
Checking openssl ....... found
Checking parted ....... found
Checking pciutils ....... found
Checking perl ....... found
Checking perl-Digest-SHA1 ....... found
Checking popt ....... found
Checking python ....... found
Checking qt ....... found
Checking rhpl ....... found
Checking rpm ....... found
Checking rpm-libs ....... found
Checking sysfsutils ....... found
Checking zlib ....... found

Now checking the necessary tools...........
Checking  /bin/bash ....... found
Checking  /bin/ln ....... found
Checking  /bin/mktemp ....... found
Checking  /bin/rm ....... found
Checking  /bin/sed ....... found
Checking  /bin/sh ....... found
Checking  /sbin/ldconfig ....... found
Checking  /usr/bin/env ....... found
Checking  /usr/bin/find ....... found
Checking  /usr/bin/host ....... found
Checking  /usr/bin/perl ....... found
Checking  /usr/bin/python ....... found
Checking  /usr/bin/xargs ....... found
Checking  /usr/sbin/lsof ....... found

Environment is OK. Now begin installing yast.........

Preparing...                ########################################### [100%]
   1:fillup                 ########################################### [100%]
Preparing...                ########################################### [100%]
   1:aaa_base               ########################################### [100%]
Updating etc/sysconfig/language...
Updating etc/sysconfig/backup...
Updating etc/sysconfig/boot...
Updating etc/sysconfig/displaymanager...
Updating etc/sysconfig/kernel...
Updating etc/sysconfig/suseconfig...
Updating etc/sysconfig/clock...
Updating etc/sysconfig/proxy...
Updating etc/sysconfig/windowmanager...
Updating etc/sysconfig/sysctl...
Updating etc/sysconfig/java...
Updating etc/sysconfig/mail...
Updating etc/sysconfig/ide...
Updating etc/sysconfig/cron...
Updating etc/sysconfig/news...
Preparing...                ########################################### [100%]
   1:liby2util              ########################################### [100%]
Preparing...                ########################################### [100%]
   1:netcat                 ########################################### [100%]
Preparing...                ########################################### [100%]
   1:libxcrypt              ########################################### [100%]
Preparing...                ########################################### [100%]
   1:insserv                ########################################### [100%]
Preparing...                ########################################### [100%]
   1:hwinfo                 ########################################### [100%]
Preparing...                ########################################### [100%]
   1:testutf8               ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-packagemanager   ########################################### [100%]
Updating etc/sysconfig/onlineupdate...
Preparing...                ########################################### [100%]
   1:yast2-core             ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-qt               ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-theme-Linux      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:perl-Config-Crontab    ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2                  ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-ncurses          ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-control-center   ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-x11              ########################################### [100%]
Preparing...                ########################################### [100%]
   1:perl-gettext           ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-perl-bindings    ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-country          ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-mail-aliases     ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-mouse            ########################################### [100%]
Preparing...                ########################################### [100%]
   1:ldapcpplib             ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-ldap             ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-online-update    ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-xml              ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-transfer         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:autoyast2-installation ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-packager         ########################################### [  9%]
   2:yast2-pam              ########################################### [ 18%]
   3:yast2-storage          ########################################### [ 27%]
   4:yast2-bootloader       ########################################### [ 36%]
Updating etc/sysconfig/bootloader...
   5:yast2-security         ########################################### [ 45%]
   6:yast2-network          ########################################### [ 55%]
   7:yast2-inetd            ########################################### [ 64%]
   8:yast2-ldap-client      ########################################### [ 73%]
Updating etc/sysconfig/ldap...
   9:yast2-users            ########################################### [ 82%]
  10:yast2-installation     ########################################### [ 91%]
  11:yast2-update           ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-sysconfig        ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-tune             ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-powertweak       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-runlevel         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-sound            ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-bg         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-bs         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-cs         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-cy         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-da         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-de         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-el_GR      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-en_GB      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-en_US      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-es         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-fi         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-fr         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-hu         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-it         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-ja         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-ko         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-lt         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-nb         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-nl         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-pl         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-pt_BR      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-ro         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-ru         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-sk         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-sl_SI      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-sv         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-tr         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-zh_CN      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-trans-zh_TW      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-nis-client       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-firewall         ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-http-server      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-mail             ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-kerberos-client  ########################################### [100%]
Preparing...                ########################################### [100%]
   1:perl-Parse-RecDescent  ########################################### [100%]
Preparing...                ########################################### [100%]
   1:perl-X500-DN           ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-ldap-server      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-nfs-client       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-nfs-server       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-ntp-client       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-samba-client     ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-printer          ########################################### [100%]
Preparing...                ########################################### [100%]
   1:perl-Digest-MD4        ########################################### [100%]
Preparing...                ########################################### [100%]
   1:perl-Crypt-SmbHash     ########################################### [100%]
Preparing...                ########################################### [100%]
   1:nmbstatus              ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-samba-server     ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-tftp-server      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-support          ########################################### [100%]
Preparing...                ########################################### [100%]
   1:xmset                  ########################################### [100%]
Preparing...                ########################################### [100%]
   1:powertweak             ########################################### [100%]
Preparing...                ########################################### [100%]
   1:powertweak-extra       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-dns-server       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-dhcp-server      ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast2-nis-server       ########################################### [100%]
Preparing...                ########################################### [100%]
   1:yast-EM                ########################################### [100%]
Finished. Use /sbin/yast or /sbin/yast2 to start it</pre>
</td>
</tr>
</thead>
</table>
<p><span style="color:white;">.</span><br />
4) Once installed Yast could be invoked in three ways:</p>
<p style="text-align:center;">A terminal like interface<br />
<a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SusxcI948qI/AAAAAAAAAWU/QtoqWHASwfc/Yast1.png"><img title="Yast1" alt="Yast1" class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SusxcI948qI/AAAAAAAAAWU/QtoqWHASwfc/s288/Yast1.png"></a></p>
<p style="text-align:center;">A cool GUI interface<br />
<a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SusxcetOp7I/AAAAAAAAAWY/pCdmclFX7-o/Yast2.png"><img title="Yast2" alt="Yast2" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SusxcetOp7I/AAAAAAAAAWY/pCdmclFX7-o/s288/Yast2.png"></a></p>
<p style="text-align:center;">On Enterprise Manager Grid Control go to “Targets -&gt; Hosts -&gt; Administration”<br />
<a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SusxcYViHSI/AAAAAAAAAWc/miovMtzpMZs/YastEmgc.png"><img title="YastEmgc" alt="YastEmgc" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SusxcYViHSI/AAAAAAAAAWc/miovMtzpMZs/s400/YastEmgc.png"></a></p>
<p><span style="color:white;">.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=354&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/5YnUznlbdxs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/05/08/yast-on-oel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SusxcI948qI/AAAAAAAAAWU/QtoqWHASwfc/s288/Yast1.png" medium="image">
			<media:title type="html">Yast1</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SusxcetOp7I/AAAAAAAAAWY/pCdmclFX7-o/s288/Yast2.png" medium="image">
			<media:title type="html">Yast2</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SusxcYViHSI/AAAAAAAAAWc/miovMtzpMZs/s400/YastEmgc.png" medium="image">
			<media:title type="html">YastEmgc</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/05/08/yast-on-oel/</feedburner:origLink></item>
		<item>
		<title>Understanding the SCN</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/iBiGlotC53s/</link>
		<comments>http://karlarao.wordpress.com/2009/05/08/understanding-the-scn/#comments</comments>
		<pubDate>Fri, 08 May 2009 09:25:47 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Backup_and_Recovery]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SCN]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=343</guid>
		<description><![CDATA[For the DBAs who want to have a refreser on SCN (system change number), this article article is very nice and explained clearly written by Sandeep Makol. It started on where you &#8216;ll find info for SCN (controlfile and datafile headers) then goes to the backup and recovery scenarios where knowledge of this “magic number” is very useful. Below are some useful scripts (with sample output) as well -- get specific datafile col name format a50 select 'controlfile' "SCN location",'SYSTEM checkpoint' name,checkpoint_change# from v$database union select 'file in controlfile',name,checkpoint_change# from v$datafile where lower(name) like '%&#38;&#38;datafile%' <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/05/08/understanding-the-scn/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=343&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>For the DBAs who want to have a refreser on SCN (system change number), this article <a href="http://www.dbapool.com/articles/1029200701.html"> article</a> is very nice and explained clearly written by Sandeep Makol. It started on where you &#8216;ll find info for SCN (controlfile and datafile headers) then goes to the backup and recovery scenarios where knowledge of this “magic number” is very useful.</p>
<p><span id="more-343"></span></p>
<p>Below are some useful scripts (with sample output) as well</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;"><strong>-- get specific datafile
col name format a50
select 'controlfile' "SCN location",'SYSTEM checkpoint' name,checkpoint_change#
from v$database
union
select 'file in controlfile',name,checkpoint_change#
from v$datafile where lower(name) like '%&amp;&amp;datafile%'
union
select 'file header',name,checkpoint_change#
from v$datafile_header where lower(name) like '%&amp;&amp;datafile%';</strong>

SCN location	    NAME					       CHECKPOINT_CHANGE#
------------------- -------------------------------------------------- ------------------
controlfile	    SYSTEM checkpoint						  1151614
file header	    +DATA_1/ivrs/datafile/sysaux.258.652821943			  1151614
file header	    +DATA_1/ivrs/datafile/system.267.652821909			  1151614
file header	    +DATA_1/ivrs/datafile/system_02.dbf 			  1151614
file header	    +DATA_1/ivrs/datafile/undotbs1.257.652821933		  1151614
file header	    +DATA_1/ivrs/datafile/users.263.652821963			  1151614
file in controlfile +DATA_1/ivrs/datafile/sysaux.258.652821943			  1151614
file in controlfile +DATA_1/ivrs/datafile/system.267.652821909			  1151614
file in controlfile +DATA_1/ivrs/datafile/system_02.dbf 			  1151614
file in controlfile +DATA_1/ivrs/datafile/undotbs1.257.652821933		  1151614
file in controlfile +DATA_1/ivrs/datafile/users.263.652821963			  1151614

<strong>-- get distinct checkpoint_change#
select checkpoint_change#, 'SYSTEM checkpoint in controlfile' "SCN location"
from v$database
union
select distinct checkpoint_change#, 'file in controlfile'
from v$datafile
union
select distinct checkpoint_change#, 'file header'
from v$datafile_header;</strong>

CHECKPOINT_CHANGE# SCN location
------------------ --------------------------------
	   1151614 SYSTEM checkpoint in controlfile
	   1151614 file header
	   1151614 file in controlfile

<strong>-- get distinct datafile count
select 'controlfile' "SCN location",'SYSTEM checkpoint' name,checkpoint_change#
from v$database
union
select 'file in controlfile',to_char(count(*)),checkpoint_change#
from v$datafile
group by checkpoint_change#
union
select 'file header',to_char(count(*)),checkpoint_change#
from v$datafile_header
group by checkpoint_change#;</strong>

SCN location	    NAME					       CHECKPOINT_CHANGE#
------------------- -------------------------------------------------- ------------------
controlfile	    SYSTEM checkpoint						  1151614
file header	    5								  1151614
file in controlfile 5								  1151614

<strong>-- info from x$kcvfh (All file headers)
SELECT hxfil file_num,substr(hxfnm,1,40) file_name,fhtyp type,hxerr validity, fhscn chk_ch#, fhtnm tablespace_name,fhsta status,fhrba_seq sequence
FROM x$kcvfh;</strong>

  FILE_NUM FILE_NAME					  TYPE	 VALIDITY CHK_CH#	   TABLESPACE_NAME		      STATUS   SEQUENCE
---------- ---------------------------------------- ---------- ---------- ---------------- ------------------------------ ---------- ----------
	 1 +DATA_1/ivrs/datafile/system.267.6528219	     3		0 1151614	   SYSTEM				8196	    146
	 2 +DATA_1/ivrs/datafile/undotbs1.257.65282	     3		0 1151614	   UNDOTBS1				   4	    146
	 3 +DATA_1/ivrs/datafile/sysaux.258.6528219	     3		0 1151614	   SYSAUX				   4	    146
	 4 +DATA_1/ivrs/datafile/users.263.65282196	     3		0 1151614	   USERS				   4	    146
	 5 +DATA_1/ivrs/datafile/system_02.dbf		     3		0 1151614	   SYSTEM				   4	    146</pre>
</td>
</tr>
</thead>
</table>
<p>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=343&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/iBiGlotC53s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/05/08/understanding-the-scn/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/05/08/understanding-the-scn/</feedburner:origLink></item>
		<item>
		<title>Advanced Oracle Troubleshooting by Tanel Poder in Singapore</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/Z5YwVCIesA0/</link>
		<comments>http://karlarao.wordpress.com/2009/04/20/advanced-oracle-troubleshooting-by-tanel-poder-in-singapore/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 06:23:32 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=195</guid>
		<description><![CDATA[When I first saw that Tanel will conduct his seminar in Singapore, I told myself that I would even spend my own money just to be on that training! I’ve already read performance books like Optimizing Oracle Performance, Oracle 8i Internal Services, Forecasting Oracle Performance&#8230; And after that I still want more, and I still have questions that need to be answered. Well, if you’re on a tight budget you just opt to download some more docs/books to do multiple reads coupled with research/test cases and also reading through others blog&#8230; But thanks to my <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/04/20/advanced-oracle-troubleshooting-by-tanel-poder-in-singapore/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=195&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When I first saw that Tanel will conduct his seminar in Singapore, I told myself that I would even spend my own money just to be on that training! I’ve already read performance books like Optimizing Oracle Performance, Oracle 8i Internal Services, Forecasting Oracle Performance&#8230; And after that I still want more, and I still have questions that need to be answered. Well, if you’re on a tight budget you just opt to download some more docs/books to do multiple reads coupled with research/test cases and also reading through others blog&#8230;<br />
But thanks to my boss for the funding, I was there! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><span id="more-195"></span></p>
<p>The seminar has 8 chapters,</p>
<p style="padding-left:30px;">1) End to end lifecycle of a database request (33 slides)<br />
2) Oracle, OS, and hardware interaction (39 slides)<br />
3) Oracle kernel core services (39 slides)<br />
4) OWI and kernel instrumentation framework (34 slides)<br />
5) Lifecycle of a cursor (27 slides)<br />
6) SQL execution row source operators and data flow (34 slides)<br />
7) Logical and Physical IO internals (37 slides)<br />
8 ) Lifecycle of a transaction (32 slides)</p>
<p>On the <b>first day</b> we were able to tackle the three chapters&#8230; </p>
<p>The 1st was about how to &#8220;Systematically Troubleshoot&#8221; performance problems. That Oracle is just a program and every execution that is happening is not magic, using the right tool for the right problem you’ll be able to pinpoint the root cause. Also he emphasized on how important it is to make the user’s session a starting point on diagnosis and he demo’d on how to make use of v$system_wait, snapper, ASH, v$sesstat, and of course if the built-in instrumentation is not enough&#8230; the process stack sampling is very useful that will tell you what kernel function where most of the time is spent&#8230;he also taught us how to read the stack tree using that magic Metalink note (175982.1) <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>2nd, dives into the OS troubleshooting, how you’ll systematically approach memory and CPU starvation on both Oracle and OS drilling down to the processes using Oracle (heapdump) and OS tools (ps, pstack, strace, procmon.exe for Windows &#8211; yeah you could also do process stack samples, pmap, top, vmstat)</p>
<p>3rd, was more of the internals where he discussed the core services of Oracle Kernel starting with the KGH module, the shared pool, and some more heaps, heap dumps and state objects, some X$ tables, and of course the most important part of the chapter… the Latching. He demo’d on how to systematically troubleshoot latching problems using latchprof, latchprofx, and snapper. </p>
<p>Then… At the end of the day, I was able to discuss with Tanel the concept of “performance visualization” <a href="#viz">see links below</a>. I mean, yeah you can do reactive tuning and be very good at internals… but it doesn’t stop there… you have to be proactive, and visualizing/trending your performance numbers will help you on that. I’ve read his paper with Neil Gunther about how Multidimensional Visualization helps on analysing Oracle session level performance data that sometimes the usual x-y charts could mislead. He showed me some cool 3d performance monitoring tools running on JVM which is still on the works, but it’s really cool <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>And we also discussed about “capacity planning” because Neil Gunther is the author of the “Super Serial Scalability model” which he worked with (on the Visualization CMG paper) and Craig Shallahamer discussed it on the Chapter 10 (Scalability) of his book which is very interesting. Well, Tanel will still have to find out how efficient or realistic the “forecasting models” will be when applied with Oracle performance data. Well me too! But it still trickles down to response time and visualization <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The <b>second day</b>…</p>
<p>We started with the Oracle Wait Interface, he answered my question on how would you know if it’s a syscall? Usercall? Or kernel function call?&#8230; he just used pstack, pmap, and the magic Metalink note. Cool <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Then he explained why the v$session is the most important view in 10g above. He showed us how to pinpoint if it’s a pl/sql that is executing or just plain SQL; yeah he has scripts for that! … the “sample” script is very useful for finding out which SQLs are problematic. He ended the chapter with identifying the session whether it is client-server or N-tiered application and demo’d on how to make use of dbms_session and dbms_monitor and how to trace these sessions. </p>
<p>5th discussed about lifecycle of cursors. Tanel discussed the internals of Library Cache and how applications live and die by how you do cursor management <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  He also got good scripts here!</p>
<p>6th for me is the most interesting, this is where you start to glue together the info about the Oracle and OS interaction from day1 that Oracle is just a big complex C program… he started the chapter by clearly explaining how to properly get and read the explain plan (root -&gt; branch -&gt; leaves and row source -&gt; filters -&gt; access path) and associating each line with the Oracle kernel functions which you could get by doing a process stack and feeding the output to his “os_explain” tool…cool <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Then he ended the chapter with SQL plan profiling using some of his formatted explain plan scripts…</p>
<p>Unfortunately we ran out of time… we still have two chapters left! Tanel have to catch a flight to Sydney at 8pm. But he told us he will be blogging more about the later chapters, and at least we have his module… So the last demo was his &#8220;perfsheet&#8221; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  a very good visualization tool. Nice job with the pivot tables and 3d charts! </p>
<p><b>All in all, the popular geek from Estonia showed me how Oracle really works!</b> (well, you owe us two chapters :p)</p>
<p>BTW, Porus Homi Havewala (<a title="Porus Homi Havewala" href="http://enterprise-manager.blogspot.com" target="_blank">http://enterprise-manager.blogspot.com</a>) was also on the class&#8230;</p>
<p><strong>Below are some of the seminar pictures:</strong><br />
<a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SuswC5W4SmI/AAAAAAAAAWA/MCEbFLs_WGQ/TanelPoderAotPic1.jpg"><img title="Tanel Poder AOT" alt="Tanel Poder AOT" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SuswC5W4SmI/AAAAAAAAAWA/MCEbFLs_WGQ/s288/TanelPoderAotPic1.jpg"></a></p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SuswDDcwBFI/AAAAAAAAAWE/hNYyQyeIuhw/TanelPoderAotPic2.jpg"><img title="Tanel Poder AOT" alt="Tanel Poder AOT" class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SuswDDcwBFI/AAAAAAAAAWE/hNYyQyeIuhw/s288/TanelPoderAotPic2.jpg"></a></p>
<p><a href="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SuswDN2wlPI/AAAAAAAAAWI/RCawJlBJVnk/TanelPoderAotPic3.jpg"><img title="Tanel Poder AOT" alt="Tanel Poder AOT" class="aligncenter" src="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SuswDN2wlPI/AAAAAAAAAWI/RCawJlBJVnk/s144/TanelPoderAotPic3.jpg"></a></p>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SuswDX_Q8zI/AAAAAAAAAWM/DScLjL-DYtY/TanelPoderAotPic4.jpg"><img title="Tanel Poder AOT" alt="Tanel Poder AOT" class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SuswDX_Q8zI/AAAAAAAAAWM/DScLjL-DYtY/s144/TanelPoderAotPic4.jpg"></a></p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;padding:1.4pt;" valign="top">
<strong><a name="viz">Below are some links about Visualization:</a></strong></p>
<p>Neil Gunther &amp; Tanel Poder &#8211; Multidimensional Visualization of Oracle Performance using Barry007</p>
<p>http://arxiv.org/pdf/0809.2532</p>
<p>Tanel Poder&#8217;s Visualization Tool</p>
<p>http://blog.tanelpoder.com/2008/12/28/performance-visualization-made-easy-perfsheet-20-beta/</p>
<p>http://blog.tanelpoder.com/2009/02/14/performance-visualization-capacity-planning-and-hotsos-symposium/</p>
<p>Neil Gunther &#8211; A.A. Michelson Award Acceptance Speech</p>
<p>http://www.perfdynamics.com/Test/aamspeech.pdf</p>
<p>Neil Gunther&#8217;s Blog</p>
<p>http://perfdynamics.blogspot.com/2008/12/gunther-receives-aa-michelson-award.html</p>
</td>
</tr>
</thead>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=195&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/Z5YwVCIesA0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/04/20/advanced-oracle-troubleshooting-by-tanel-poder-in-singapore/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/SuswC5W4SmI/AAAAAAAAAWA/MCEbFLs_WGQ/s288/TanelPoderAotPic1.jpg" medium="image">
			<media:title type="html">Tanel Poder AOT</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SuswDDcwBFI/AAAAAAAAAWE/hNYyQyeIuhw/s288/TanelPoderAotPic2.jpg" medium="image">
			<media:title type="html">Tanel Poder AOT</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_F2x5WXOJ6Q8/SuswDN2wlPI/AAAAAAAAAWI/RCawJlBJVnk/s144/TanelPoderAotPic3.jpg" medium="image">
			<media:title type="html">Tanel Poder AOT</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SuswDX_Q8zI/AAAAAAAAAWM/DScLjL-DYtY/s144/TanelPoderAotPic4.jpg" medium="image">
			<media:title type="html">Tanel Poder AOT</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/04/20/advanced-oracle-troubleshooting-by-tanel-poder-in-singapore/</feedburner:origLink></item>
		<item>
		<title>OS Thread Startup</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/7rH70zfSU_c/</link>
		<comments>http://karlarao.wordpress.com/2009/04/06/os-thread-startup/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 19:42:22 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Extended_SQL_Trace]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Truss]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=162</guid>
		<description><![CDATA[Recently I encountered a performance problem scenario where a simple sqlplus “/ as sysdba” took about 2minutes to finish, this is critical to the client’s business because they have a local C program that loads Call Detail Reports on the database making use of local authentication for most of its operations and Sql*Loader to load the data, so this “2minutes of waiting” when accumulated greatly consumes significant time on their operations and greatly impacts the business. When I arrived on the client I first checked the alert logs of both ASM (they have a separate <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/04/06/os-thread-startup/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=162&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently I encountered a performance problem scenario where a simple sqlplus “/ as sysdba” took about 2minutes to finish, this is critical to the client’s business because they have a local C program that loads Call Detail Reports on the database making use of local authentication for most of its operations and Sql*Loader to load the data, so this “2minutes of waiting” when accumulated greatly consumes significant time on their operations and greatly impacts the business.</p>
<p>When I arrived on the client I first checked the alert logs of both ASM (they have a separate home for ASM) and RDBMS, there were no errors…</p>
<p><span id="more-162"></span></p>
<p>Then I checked on the server to see if there were any CPU, IO, memory, swap, and network bottlenecks going on</p>
<p>The CPU run queue was zero and most of the time 90% idle</p>
<p>The disks were also most of the time idle</p>
<p>The memory utilization was low with 430MB free</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">Real memory Usage
-----------------------------
Total Installed : 6.00000 GB
Total Used : 5.57032 GB
Total Free : 439.97264 MB
REAL MEMORY USAGE : % : 92.800
-----------------------------</pre>
</td>
</tr>
</thead>
</table>
<p>The paging on the server is not significant which is 1.1GB out of 16GB</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">Paging Space Usage
-----------------------------
Total Pg Space : 16640.00000 MB
Pg Space Used : 1187.77340 MB
Percent Used PAGING : 7.100
-----------------------------</pre>
</td>
</tr>
</thead>
</table>
<p>Then I did sqlplus “/ as sysdba” to do some SELECTs on some views (…yeah it really took about 2minutes…)</p>
<p>I looked at the free memory of the SGA memory structures… well, I think SGA is not the issue but I still have to find out…</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">select pool, round(bytes/1024/1024,2) size_mb from v$sgastat where name like '%free memory%';

POOL            SIZE_MB
------------ ----------
shared pool      655.57
large pool        302.6
java pool            16
streams pool      15.99</pre>
</td>
</tr>
</thead>
</table>
<p>At that time, there were only 4 users connected (that includes me) to the database and the C program was not running. I suspected that there are some contentions (latch) or concurrency problems that I’ll see on the wait interface… here’s a portion of the AWR report</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">   Elapsed:               60.11 (mins)
   DB Time:              121.50 (mins)

Top 5 Timed Events                                         Avg %Total
~~~~~~~~~~~~~~~~~~                                        wait   Call
Event                                 Waits    Time (s)   (ms)   Time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
os thread startup                     3,278       3,115    950   42.7 Concurrenc
latch free                            6,298       1,822    289   25.0      Other
flashback buf free by RVWR            1,771       1,721    972   23.6      Other
SQL*Net more data to client          60,087       1,574     26   21.6    Network
CPU time                                          1,088          14.9
          -------------------------------------------------------------</pre>
</td>
</tr>
</thead>
</table>
<p>The DB Time was 3940.8 seconds (121.50 * 60) and the top event which is the “os thread startup” consumes 83% (3276/3940.8) of the total DB Time</p>
<p>And just for comparison, below is their normal workload which is generated on the same period (but different day) as the above</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">   Elapsed:               59.52 (mins)
   DB Time:               72.42 (mins)

Top 5 Timed Events                                         Avg %Total
~~~~~~~~~~~~~~~~~~                                        wait   Call
Event                                 Waits    Time (s)   (ms)   Time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
CPU time                                          2,009          46.2
db file scattered read              151,781         423      3    9.7   User I/O
db file sequential read              66,212         301      5    6.9   User I/O
latch: shared pool                      384          67    175    1.5 Concurrenc
log file sequential read                404          19     46    0.4 System I/O
          -------------------------------------------------------------</pre>
</td>
</tr>
</thead>
</table>
<p>Hmmm so what is “os thread startup”? The ADDM report also outputs this event as a top finding</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">FINDING 1: 79% impact (3113 seconds)
------------------------------------
Wait event "os thread startup" in wait class "Concurrency" was consuming
significant database time.

   RECOMMENDATION 1: Application Analysis, 79% benefit (3113 seconds)
      ACTION: Investigate the cause for high "os thread startup" waits. Refer
         to Oracle's "Database Reference" for the description of this wait
         event. Use given SQL for further investigation.
      RATIONALE: The SQL statement with SQL_ID "4gd6b1r53yt88" was found
         waiting for "os thread startup" wait event.
         RELEVANT OBJECT: SQL statement with SQL_ID 4gd6b1r53yt88

   RECOMMENDATION 2: Application Analysis, 79% benefit (3113 seconds)
      ACTION: Investigate the cause for high "os thread startup" waits in
         Service "SYS$BACKGROUND".

   SYMPTOMS THAT LED TO THE FINDING:
      SYMPTOM: Wait class "Concurrency" was consuming significant database
               time. (80% impact [3156 seconds])</pre>
</td>
</tr>
</thead>
</table>
<p>The event is not even documented on 8i, 9i, 10g, 11g official doc… I found some articles when I Google’d but they are not related to my issue… and Metalink does not have any helpful documents on this event for my situation…</p>
<p>There was already a Service Request regarding the issue, and the Support Engineer defined it as</p>
<p><strong>“This wait event might be seen if the database server is executing on a platform that supports multi-threading. We enter this waiting state while a thread is starting up and leave the wait state when the thread has started or the startup request is cancelled.<br />
This indicates some high contention at OS level avoiding even new process startup.<br />
Issue is related to OS please involve system admin to solve same.”</strong></p>
<p>The manager decided that we do a hard shutdown of the LPAR (we’re on P570 AIX 5.3) from the management console, and let’s see what it can do…</p>
<p>The DBA told me that once they are connected, all the operations are okay (DML, DDL, SQL*Loader).</p>
<p>So after the restart we tried to run the program for a while just to observe the behavior and what’s going on… apparently the local authentication is still slow!</p>
<p>For me, the challenge is how to have a response time profile of a session from the time it starts to connect with local authentication up to the time the session is connected so I would know what part of the operation is taking a lot of time.</p>
<p>What I remember, is when I was doing some queries to do some drill down on a session that was connecting using sqlplus “/ as sysdba” I see the background processes being spawned (QMNC, ARCn, etc..) are taking a lot of time in WAITING state with SECONDS_IN_WAIT reaching up to 20 seconds and has a wait event of “os thread startup”, then after a while the user gets connected then he’s now ready to do his thing without problems…Meaning after he’s connected there are no more complains…</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;">SQL&gt; select w.sid, s.sql_hash_value, s.program, w.event, w.wait_time/100 t, w.seconds_in_wait seconds_in_wait, w.state, w.p1, w.p2, w.p3
  2  from v$session s, v$session_wait w
  3  where s.sid = w.sid
  4  and w.state = 'WAITING'
  5  and w.event like '%os thread startup%'
  6  order by 6 asc;

   SID SQL_HASH_VALUE PROGRAM                 EVENT                       T SECONDS_IN_WAIT STATE                     P1         P2         P3
------ -------------- ----------------------- ------------------ ---------- --------------- ----------------- ---------- ---------- ----------
   121              0 oracle@ps570roc01 (QMNC os thread startup)          0              18 WAITING                    0          0          0</pre>
</td>
</tr>
</thead>
</table>
<p>To know what’s going on when a user connects and for me to account the operation where it takes significant time; I created a database user TRACE_USER and created a logon trigger that invokes Extended SQL Trace Level 12. This will give me the timing information that I need when the user is connecting to the database.</p>
<p>To create the user:</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">create user trace_user identified by trace_user account unlock;
grant create session,dba to trace_user;</pre>
</td>
</tr>
</thead>
</table>
<p>To create the logon trigger:</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">create or replace trigger sys.set_trace
after logon on database
when (user = 'trace_user')
declare
lcommand varchar(200);
begin
execute immediate 'alter session set statistics_level=all';
execute immediate 'alter session set max_dump_file_size=unlimited';
execute immediate 'alter session set events ''10046 trace name context forever, level 12''';
end set_trace;
/</pre>
</td>
</tr>
</thead>
</table>
<p>After the user and the trigger are created, logon as the TRACE_USER by doing the following command:</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">sqlplus "trace_user/trace_user" &lt;&lt; eof
exit;
eof</pre>
</td>
</tr>
</thead>
</table>
<p>This will generate an Extended SQL Trace (10046) trace file under the $ORACLE_BASE/admin/&lt;db_name&gt;/udump directory</p>
<p>Then see if there’s significant time on the database calls (PARSE,BIND,EXEC,FETCH) by looking at the “e=” section which means elapsed duration consumed by the database call</p>
<p>And check if there’s significant time on wait events by looking at the “ela=” section which means elapsed duration consumed by the wait event (probably by doing a system call)</p>
<p>Below is a small portion of the trace file generated, we are interested on the highlighted portions…</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">PARSING IN CURSOR #5 len=131 dep=1 uid=0 oct=3 lid=0 tim=15687899202263 hv=1389591971 ad='ca9a7948'
select privilege#,nvl(col#,0),max(mod(nvl(option$,0),2))from objauth$ where obj#=:1 and grantee#=:2 group by privilege#,nvl(col#,0)
END OF STMT
EXEC #5:c=0,<strong>e=145</strong>,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=15687899202260
WAIT #5: nam='db file sequential read' <strong>ela= 30005</strong> file#=1 block#=24208 blocks=1 obj#=-1 tim=15687899232346
FETCH #5:c=0,<strong>e=30075</strong>,p=1,cr=2,cu=0,mis=0,r=0,dep=1,og=4,tim=15687899232396</pre>
</td>
</tr>
</thead>
</table>
<p>There were no database calls that consumed significant time (numbers below are microseconds, that’s for 9i and above):</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:8px;padding-left:30px;">less oracle_ora_1118270.trc | grep -i ",e=" | cut -d , -f2 &gt; karlarao.txt ; sed -n 's/e=/ /p' karlarao.txt | sort -nr | less

 358746
 183162
 61293
 44661
 32580
 30075
 28695
 26950
 25837
 24244
 23519
 20543
 20132
 19449
 19290
 18809
 18250
 17230
 16507
 16349
 13438
 11716
 11690
 11284
 10137</pre>
</td>
</tr>
</thead>
</table>
<p>There were no wait events that consumed significant time (numbers below are microseconds, that’s for 9i and above):</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">less oracle_ora_1118270.trc | grep -i "ela=" | cut -d " " -f8 | sort -nr | less

30005
28624
13253
11592
9650</pre>
</td>
</tr>
</thead>
</table>
<p>There was no “os thread startup” event!</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">less oracle_ora_1118270.trc | grep -i "ela=" | cut -d "=" -f2 | uniq

'SQL*Net message to client' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'db file sequential read' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'db file sequential read' ela
'SQL*Net message to client' ela
'db file sequential read' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'db file sequential read' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela
'SQL*Net message to client' ela
'SQL*Net message from client' ela</pre>
</td>
</tr>
</thead>
</table>
<p>I need to have some instrumentation on the system calls, so I’ll use a UNIX tool,</p>
<p>presenting… TRUSS…</p>
<p>This tool will let you do some application tracing, for us we are interested in tracing SQL*Plus, and display the calls that an application makes to external libraries and the kernel… sounds cool <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A “man truss” will give you an overview, but if you want more detail there are some good references at the IBM site or Metalink</p>
<p>Execute the following commands (one at a time):</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">truss -c sqlplus "/ as sysdba" &lt;&lt; EOF
exit;
EOF

truss -d sqlplus "/ as sysdba" &lt;&lt; EOF
exit;
EOF</pre>
</td>
</tr>
</thead>
</table>
<p>The “-c” switch counts traced system calls, faults, and signals</p>
<p>The “-d” switch displays the timestamp in seconds on each line. The first line of the trace output will show the base time from which the individual time stamps are measured</p>
<p>Bwahaha, Now I know the problem!</p>
<p>The DNS service was causing the slow down on the sqlplus “/ as sysdba” operation and also the high “os thread startup” waits</p>
<p>The text below is the portion of “truss” output where the slow down occurs denoted by “(sleeping&#8230;)” events when reading on the /etc/resolv.conf and /etc/hosts. Please see the highlighted region below</p>
<p>ENOTTY and ECONNREFUSED are the errors that you’ll see, you’ll find more details on the error messages on this file /usr/include/sys/errno.h<br />
Below are their meanings</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:12px;padding-left:30px;">#define	ENOTTY	25	/* Inappropriate I/O control operation	*/
#define ECONNREFUSED    79      /* Connection refused */</pre>
</td>
</tr>
</thead>
</table>
<p>The portion of “truss -d” where the slow down occurs, you’ll see a leap on the timing information from <strong>2.3379 seconds (reading /etc/resolv.conf) &#8211;&gt; 7.3477 seconds &#8211;&gt; 17.3489 seconds &#8211;&gt; 37.3555 seconds (reading /etc/hosts) &#8211;&gt; 70.3863 seconds (already connected)</strong></p>
<p>The timing information below may not exactly match the real “time” that the user is waiting, it’s because the SQL*Plus is being probed to know the part of the underlying system calls where there are significant waits</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;"><strong>0.3172:        gethostname(0x0FFFFFFFFFFF9920, 256) = 0</strong>
0.3175:        _getpid()                        = 1102056
<strong>0.3177:        open("/etc/resolv.conf", O_RDONLY) = 8</strong>
0.3180:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
0.3182:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
kread(8, " d o m a i n     this is the domain name, i removed it".., 4096)    = 69
kread(8, " d o m a i n     this is the domain name, i removed it".., 4096)    = 0
0.3190:        close(8)                         = 0
0.3194:        socket(2, 2, 0)                  = 8
0.3197:        getsockopt(8, 65535, 4104, 0x0FFFFFFFFFFF70E4, 0x0FFFFFFFFFFF70E0) = 0
0.3199:        connext(8, 0x09001000A0018600, 16) = 0
0.3202:        send(8, 0x0FFFFFFFFFFF7FF0, 41, 0) = 41
0.3205:        _poll(0x0FFFFFFFFFFF7190, 1, 5000) = 1
<strong>0.3208:        nrecvfrom(8, 0x0FFFFFFFFFFF9320, 1024, 0, 0x0FFFFFFFFFFF7950, 0x0FFFFFFFFFFF7178) Err#79 ECONNREFUSED</strong>
0.3210:        close(8)                         = 0
0.3212:        socket(2, 2, 0)                  = 8
0.3215:        sendto(8, 0x0FFFFFFFFFFF7FF0, 41, 0, 0x09001000A0018610, 16) = 41
0.3217:        _poll(0x0FFFFFFFFFFF7190, 1, 5000) = 1
0.3220:        nrecvfrom(8, 0x0FFFFFFFFFFF9320, 1024, 0, 0x0FFFFFFFFFFF7950, 0x0FFFFFFFFFFF7178) = 108
0.3222:        close(8)                         = 0
0.3224:        socket(2, 2, 0)                  = 8
0.3227:        getsockopt(8, 65535, 4104, 0x0FFFFFFFFFFF70E4, 0x0FFFFFFFFFFF70E0) = 0
0.3229:        connext(8, 0x09001000A0018600, 16) = 0
0.3231:        send(8, 0x0FFFFFFFFFFF7FF0, 28, 0) = 28
0.3233:        _poll(0x0FFFFFFFFFFF7190, 1, 5000) = 1
<strong>0.3236:        nrecvfrom(8, 0x0FFFFFFFFFFF9320, 1024, 0, 0x0FFFFFFFFFFF7950, 0x0FFFFFFFFFFF7178) Err#79 ECONNREFUSED</strong>
0.3238:        close(8)                         = 0
0.3240:        socket(2, 2, 0)                  = 8
0.3243:        sendto(8, 0x0FFFFFFFFFFF7FF0, 28, 0, 0x09001000A0018610, 16) = 28
0.3245:        _poll(0x0FFFFFFFFFFF7190, 1, 5000) = 1
0.3248:        nrecvfrom(8, 0x0FFFFFFFFFFF9320, 1024, 0, 0x0FFFFFFFFFFF7950, 0x0FFFFFFFFFFF7178) = 28
0.3250:        close(8)                         = 0
0.3252:        socket(2, 2, 0)                  = 8
0.3373:        sendto(8, 0x0FFFFFFFFFFF7FF0, 28, 0, 0x09001000A0018600, 16) = 28
<strong>2.3379:        _poll(0x0FFFFFFFFFFF7190, 1, 5000) (sleeping...)</strong>
2.3379:        _poll(0x0FFFFFFFFFFF7190, 1, 5000) = 0
5.3468:        close(8)                         = 0
5.3470:        socket(2, 2, 0)                  = 8
5.3472:        sendto(8, 0x0FFFFFFFFFFF7FF0, 28, 0, 0x09001000A0018600, 16) = 28
<strong>7.3477:        _poll(0x0FFFFFFFFFFF7190, 1, 10000) (sleeping...)</strong>
7.3477:        _poll(0x0FFFFFFFFFFF7190, 1, 10000) = 0
15.3479:        close(8)                        = 0
15.3482:        socket(2, 2, 0)                 = 8
15.3484:        sendto(8, 0x0FFFFFFFFFFF7FF0, 28, 0, 0x09001000A0018600, 16) = 28
<strong>17.3489:        _poll(0x0FFFFFFFFFFF7190, 1, 20000) (sleeping...)</strong>
17.3489:        _poll(0x0FFFFFFFFFFF7190, 1, 20000) = 0
35.3491:        close(8)                        = 0
<strong>35.3495:        getdomainname(0x0FFFFFFFFFFF9480, 256) = 0
35.3497:        open("/etc/hosts", O_RDONLY)    = 8</strong>
35.3500:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
35.3502:        kfcntl(8, F_SETFD, 0x0000000000000001) = 0
35.3505:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
kread(8, " #   @ ( # ) 4 7\t 1 . 1".., 4096)    = 3453
kread(8, " #   @ ( # ) 4 7\t 1 . 1".., 4096)    = 0
35.3514:        close(8)                        = 0
kwrite(9, "01 �0603 s".., 432)    = 432
<strong>37.3555:        kread(10, "16060280".., 2064) (sleeping...)</strong>
kread(10, "06 E06\b".., 2064)   = 1605
70.3762:        open("/oracle/app/product/10.2/db_1/rdbms/mesg/oraus.msb", O_RDONLY) = 8
70.3764:        kfcntl(8, F_SETFD, 0x0000000000000001) = 0
70.3767:        lseek(8, 0, 0)                  = 0
kread(8, "1513 "011303\t\t".., 256)     = 256
70.3772:        lseek(8, 512, 0)                = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
70.3776:        lseek(8, 1024, 0)               = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
70.3781:        lseek(8, 50688, 0)              = 50688
kread(8, "\f05 ] P05 ^".., 512)     = 512
70.3786:        lseek(8, 512, 0)                = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
70.3790:        lseek(8, 1024, 0)               = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
70.3795:        lseek(8, 50688, 0)              = 50688
kread(8, "\f05 ] P05 ^".., 512)     = 512
70.3799:        lseek(8, 512, 0)                = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
70.3804:        lseek(8, 1024, 0)               = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
70.3808:        lseek(8, 50688, 0)              = 50688
kread(8, "\f05 ] P05 ^".., 512)     = 512
70.3813:        lseek(8, 512, 0)                = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
70.3817:        lseek(8, 1024, 0)               = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
70.3822:        lseek(8, 51712, 0)              = 51712
kread(8, "\n0589 D058A".., 512)     = 512
70.3827:        close(8)                        = 0
kwrite(9, " &lt;0611 k".., 60)     = 60
kread(10, " �06\b".., 2064)   = 179
kwrite(9, " U0603 h".., 85)     = 85
kread(10, "1606\b".., 2064)   = 22
kwrite(9, " U0603 h".., 85)     = 85
kread(10, "1606\b".., 2064)   = 22
70.3854:        lseek(4, 512, 0)                = 512
kread(4, "17 �".., 512)     = 512
70.3858:        lseek(4, 1024, 0)               = 1024
kread(4, "16 * R h819E".., 512)     = 512
<strong>70.3863:        lseek(4, 4096, 0)               = 4096
kread(4, "\f82 P86".., 512)     = 512

kwrite(1, "\n", 1)                              = 1
Connected to:
kwrite(1, " C o n n e c t e d   t o".., 14)     = 14
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
kwrite(1, " O r a c l e   D a t a b".., 77)     = 77
With the Partitioning, OLAP, Data Mining and Real Application Testing options
kwrite(1, " W i t h   t h e   P a r".., 78)     = 78</strong>

kwrite(1, "\n", 1)                              = 1
70.3882:        kfcntl(1, F_GETFL, 0x0000000000000008) = 2
70.3886:        __libc_sbrk(0x0000000000030020) = 0x000000001023C880
70.3892:        access("login.sql", 0)          Err#2  ENOENT
70.3895:        access("/oracle/app/product/10.2/db_1/sqlplus/admin/glogin.sql", 0) = 0
70.3898:        statfs("/oracle/app/product/10.2/db_1/sqlplus/admin/glogin.sql", 0x0FFFFFFFFFFFDA10) = 0</pre>
</td>
</tr>
</thead>
</table>
<p>Apparently there was really a problem with the DNS when it was checked by the System Administrator. He just altered some network related files and instantly we checked on the local authentication… and we could quickly do a local authentication again! Whooho! and everybody was happy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Below is the good “truss” output of the local authentication, which takes about 3 seconds from the timing information</p>
<table style="border-collapse:collapse;" border="0" cellspacing="0" cellpadding="0" width="100%">
<thead>
<tr>
<td style="border:solid black 0;background:#E0E0E0;padding:1.4pt;" valign="top">
<pre style="font-size:10px;padding-left:30px;">3.0713:        gethostname(0x0FFFFFFFFFFF9900, 256) = 0
3.0716:        _getpid()                        = 2539762
3.0719:        open("/etc/resolv.conf", O_RDONLY) = 8
3.0721:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
3.0724:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
kread(8, " d o m a i n     this is the domain name, i removed it".., 4096)    = 70
kread(8, " d o m a i n     this is the domain name, i removed it".., 4096)    = 0
3.0731:        close(8)                         = 0
3.0735:        socket(2, 2, 0)                  = 8
3.0740:        getsockopt(8, 65535, 4104, 0x0FFFFFFFFFFF70C4, 0x0FFFFFFFFFFF70C0) = 0
3.0742:        connext(8, 0x09001000A0018600, 16) = 0
3.0746:        send(8, 0x0FFFFFFFFFFF7FD0, 41, 0) = 41
3.0750:        _poll(0x0FFFFFFFFFFF7170, 1, 5000) = 1
3.0753:        nrecvfrom(8, 0x0FFFFFFFFFFF9300, 1024, 0, 0x0FFFFFFFFFFF7930, 0x0FFFFFFFFFFF7158) = 108
3.0756:        send(8, 0x0FFFFFFFFFFF7FD0, 28, 0) = 28
3.0758:        _poll(0x0FFFFFFFFFFF7170, 1, 5000) = 1
3.0761:        nrecvfrom(8, 0x0FFFFFFFFFFF9300, 1024, 0, 0x0FFFFFFFFFFF7930, 0x0FFFFFFFFFFF7158) = 28
3.0764:        close(8)                         = 0
3.0767:        getdomainname(0x0FFFFFFFFFFF9460, 256) = 0
3.0769:        open("/etc/hosts", O_RDONLY)     = 8
3.0771:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
3.0774:        kfcntl(8, F_SETFD, 0x0000000000000001) = 0
3.0777:        kioctl(8, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
kread(8, " #   @ ( # ) 4 7\t 1 . 1".., 4096)    = 3453
kread(8, " #   @ ( # ) 4 7\t 1 . 1".., 4096)    = 0
3.0786:        close(8)                         = 0
kwrite(9, "01 �0603 s".., 432)    = 432
kread(10, "06 H06\b".., 2064)   = 1608
3.0973:        open("/oracle/app/product/10.2/db_1/rdbms/mesg/oraus.msb", O_RDONLY) = 8
3.0975:        kfcntl(8, F_SETFD, 0x0000000000000001) = 0
3.0978:        lseek(8, 0, 0)                   = 0
kread(8, "1513 "011303\t\t".., 256)     = 256
3.0983:        lseek(8, 512, 0)                 = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
3.0988:        lseek(8, 1024, 0)                = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
3.0993:        lseek(8, 50688, 0)               = 50688
kread(8, "\f05 ] P05 ^".., 512)     = 512
3.0997:        lseek(8, 512, 0)                 = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
3.1002:        lseek(8, 1024, 0)                = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
3.1006:        lseek(8, 50688, 0)               = 50688
kread(8, "\f05 ] P05 ^".., 512)     = 512
3.1011:        lseek(8, 512, 0)                 = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
3.1015:        lseek(8, 1024, 0)                = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
3.1021:        lseek(8, 50688, 0)               = 50688
kread(8, "\f05 ] P05 ^".., 512)     = 512
3.1025:        lseek(8, 512, 0)                 = 512
kread(8, "1A Q 5 C [ V u �85 �9480".., 512)     = 512
3.1029:        lseek(8, 1024, 0)                = 1024
kread(8, "18 $ 4 = G S".., 512)     = 512
3.1034:        lseek(8, 51712, 0)               = 51712
kread(8, "\n0589 D058A".., 512)     = 512
3.1038:        close(8)                         = 0
kwrite(9, " &lt;0611 k".., 60)     = 60
kread(10, " �06\b".., 2064)   = 179
kwrite(9, " U0603 h".., 85)     = 85
kread(10, "1606\b".., 2064)   = 22
kwrite(9, " U0603 h".., 85)     = 85
kread(10, "1606\b".., 2064)   = 22
3.1064:        lseek(4, 512, 0)                 = 512
kread(4, "17 �".., 512)     = 512
3.1069:        lseek(4, 1024, 0)                = 1024
kread(4, "16 * R h819E".., 512)     = 512
3.1073:        lseek(4, 4096, 0)                = 4096
kread(4, "\f82 P86".., 512)     = 512

kwrite(1, "\n", 1)                              = 1
Connected to:
kwrite(1, " C o n n e c t e d   t o".., 14)     = 14
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
kwrite(1, " O r a c l e   D a t a b".., 77)     = 77
With the Partitioning, OLAP, Data Mining and Real Application Testing options
kwrite(1, " W i t h   t h e   P a r".., 78)     = 78

kwrite(1, "\n", 1)                              = 1
3.1095:        kfcntl(1, F_GETFL, 0x0000000000000008) = 2
3.1099:        __libc_sbrk(0x0000000000030020)  = 0x000000001023C880
3.1105:        access("login.sql", 0)           Err#2  ENOENT
3.1109:        access("/oracle/app/product/10.2/db_1/sqlplus/admin/glogin.sql", 0) = 0
3.1112:        statfs("/oracle/app/product/10.2/db_1/sqlplus/admin/glogin.sql", 0x0FFFFFFFFFFFD9F0) = 0</pre>
</td>
</tr>
</thead>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=162&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/7rH70zfSU_c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/04/06/os-thread-startup/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/04/06/os-thread-startup/</feedburner:origLink></item>
		<item>
		<title>Single Instance and RAC Kernel/OS upgrade</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/gpg8j6xb7E8/</link>
		<comments>http://karlarao.wordpress.com/2009/04/04/single-instance-and-rac-kernel-os-upgrade/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 19:05:21 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=147</guid>
		<description><![CDATA[This document will serve as a guide for the Kernel and OS upgrade activities for Single Instance on ASM using raw devices RAC with ASM (using ASMlib) and OCFS2 Upgrading the Kernel and OS is easy and will just need some few commands. The critical part is the dependencies once the Kernel gets updated, so if you’re using ASMlib and OCFS2 you’ll notice that after the upgrade they’re not working anymore… you can’t startup the ASM, then if your OCR and Voting Disk are on OCFS2 the CRS stack wont start all because the RPMs <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/04/04/single-instance-and-rac-kernel-os-upgrade/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=147&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This document will serve as a guide for the Kernel and OS upgrade activities for</p>
<ol>
<li>Single Instance on ASM using raw devices</li>
<li>RAC with ASM (using ASMlib) and OCFS2</li>
</ol>
<p>Upgrading the Kernel and OS is easy and will just need some few commands. The critical part is the dependencies once the Kernel gets updated, so if you’re using ASMlib and OCFS2 you’ll notice that after the upgrade they’re not working anymore… you can’t startup the ASM, then if your OCR and Voting Disk are on OCFS2 the CRS stack wont start all because the RPMs of ASMlib and OCFS2 are kernel dependent, also there are similar components/softwares that are kernel dependent so you have to check them out and do a risk analysis before doing the upgrade.</p>
<p><span id="more-147"></span></p>
<p>… If that’s the case, why do you upgrade your Kernel or OS? &#8230; Normally you don’t do this often on your production environment considering that you have 24/7 operations but if the business permits it’s ideal to make an upgrade policy on your OS/systems. Below are some of the “drivers why you need to upgrade”:</p>
<ul>
<li>You need to upgrade the firmware of your SAN environment that requires you to be in a specific OS version</li>
</ul>
<ul>
<li>You need to upgrade the firmware of your HBA that needs a specific kernel version</li>
</ul>
<ul>
<li>You need to upgrade your RAID controller’s firmware that requires you to be in a specific kernel or OS version</li>
</ul>
<ul>
<li>Because the hardware/software vendor’s certification matrix is stating that you need to be in a specific kernel or OS version to be on a certified configuration</li>
</ul>
<ul>
<li>And many more…</li>
</ul>
<p>So after reading this document, you know what to do/check once your boss/client/vendor tell you to upgrade the kernel or OS with an Oracle Database Single Instance or RAC running.</p>
<p>To view the document, <a title="Single Instance and RAC Kernel and OS upgrade" href="http://docs.google.com/fileview?id=0B5H46jS7ZPdJNGU0NDljZDktMzUwMC00ZWQ4LWIwZDgtNjFlYzNhMzQyMjg0&amp;hl=en" target="_blank">click here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=147&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/gpg8j6xb7E8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/04/04/single-instance-and-rac-kernel-os-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/04/04/single-instance-and-rac-kernel-os-upgrade/</feedburner:origLink></item>
		<item>
		<title>Security, Forecasting Oracle Performance and Some stuff to post… soon…</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/wj30XRiQXZc/</link>
		<comments>http://karlarao.wordpress.com/2009/02/27/security-forecasting-oracle-performance-and-some-stuff-to-post-soon/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 15:54:44 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Book_Review]]></category>
		<category><![CDATA[Forecasting_Performance]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=91</guid>
		<description><![CDATA[I&#8217;ve been busy this February &#8220;playing around/studying&#8221; on the following: 1) Oracle Security products (Advance Security Option, Database Vault, Audit Vault, Data Masking, etc. etc.). Well, every organization must guard their digital assets against any threat (external/internal) because once compromised it could lead to negative publicity, lost revenue, litigation, lost of trust.. and the list goes on.. I&#8217;m telling you, Oracle has a lot to offer (breadth of products and features, some of them are even free!) on this area and you just need to have the knowledge to stitch them.. I&#8217;ll recommend a great <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/02/27/security-forecasting-oracle-performance-and-some-stuff-to-post-soon/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=91&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been busy this February &#8220;playing around/studying&#8221; on the following:</p>
<p>1) <strong>Oracle Security products</strong> (Advance Security Option, Database Vault, Audit Vault, Data Masking, etc. etc.). Well, every organization must guard their digital assets against any threat (external/internal) because once compromised it could lead to negative publicity, lost revenue, litigation, lost of trust.. and the list goes on.. I&#8217;m telling you, Oracle has a lot to offer (breadth of products and features, some of them are even free!) on this area and you just need to have the knowledge to stitch them..</p>
<p><span id="more-91"></span></p>
<p>I&#8217;ll recommend a great book on Security, I believe everyone should have this (developers, DBAs, CxOs)..!<br />
It&#8217;s a book by David Knox which is the chief engineer in Oracle’s Information Assurance Center (IAC). The IAC is a center of expertise that works with Oracle’s customers, partners, development, and consulting to design and develop security and high-availability solutions. Having a long time hands-on practice (working on Oracle security ever since) he was able to architect and implement solutions on organizations like United States Department of Defense and CIA.. and produce a book called <a href="http://www.amazon.com/Effective-Oracle-Database-Security-Design/dp/0072231300">&#8220;Effective Oracle Database 10g Security by Design&#8221;</a></p>
<p><a href="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sustcz2MlkI/AAAAAAAAAVs/YRuEki5xgow/EffectiveOracleDatabase10gSecurityByDesign.png"><img title="EffectiveOracleDatabase10gSecurityByDesign" alt="EffectiveOracleDatabase10gSecurityByDesign" class="aligncenter" src="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sustcz2MlkI/AAAAAAAAAVs/YRuEki5xgow/s288/EffectiveOracleDatabase10gSecurityByDesign.png"></a></p>
<p>2) The other one is <strong>Forecasting Oracle Performance</strong>&#8230; This is a book by Craig Shallahamer, a former Oracle employee, back then he&#8217;s with the System Performance Group (one of the largest and best collections of Oracle performance experts in the world) together with Cary Millsap (author of  <a href="http://www.amazon.com/Optimizing-Oracle-Performance-Cary-Millsap/dp/059600527X">Optimizing Oracle Performance</a>) and a few others..</p>
<p>Cary&#8217;s book is great, I&#8217;ve already read it and it will change the way you think about performance and tuning.. This is the only book that discusses <em>Extended SQL trace</em> in detail, the ins and outs and how to use it in different scenarios. This book also gave me a primer on what is Queueing Theory.. it tackles on the <em>M/M/m Queueing Model</em> but I felt it was more of an overview and not very detailed but at least I get the picture how useful it is..</p>
<p>Now presenting Craig&#8217;s work of art.. <a href="http://www.amazon.com/Forecasting-Oracle-Performance-Craig-Shallahamer/dp/1590598024">Forecasting Oracle Performance</a>..</p>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SustdFzFNHI/AAAAAAAAAV0/7gCcoOafnH4/ForecastingOraclePerformance.png"><img title="ForecastingOraclePerformance" alt="ForecastingOraclePerformance" class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SustdFzFNHI/AAAAAAAAAV0/7gCcoOafnH4/s288/ForecastingOraclePerformance.png"></a></p>
<p>If you&#8217;re an Oracle professional, and you love complexities, and you like to be challenged, and you want to see whats ahead of you (in performance), and you love math (well I&#8217;m not really good at it, my brother is).. better read this!</p>
<p>Honestly I have two more performance/capacity planning book which I&#8217;ll still have to figure out how am I going to use it (specifically the formulas) on some of my performance tuning activities. These are:</p>
<p style="padding-left:20px;"><a href="http://www.amazon.com/Guerrilla-Capacity-Planning-Tactical-Applications/dp/3540261389">Guerrilla Capacity Planning: A Tactical Approach to Planning for Highly Scalable Applications and Services</a><br />
<a href="http://www.amazon.com/Performance-Design-Computer-Capacity-Planning/dp/0130906735">Performance by Design: Computer Capacity Planning By Example</a></p>
<p>Craig&#8217;s book is <em>focused on the complex Oracle environment</em>..and the book has contents like the following:</p>
<ul>
<li>Learn how you manage your Service Levels or how to make Service Levels by using your workload samples,</li>
<li>at what workload and utilization you&#8217;ll enter the &#8220;elbow of the curve&#8221;</li>
<li>should you acquire, more CPUs (same speed)? or just replace it with faster CPUs (same number)? or both?</li>
<li>should you acquire, more disks (same speed)? or just replace it with faster disks (same number)? or both?</li>
<li>If there would be 200% additional workload, what will be the effect on response time?.. should I buy more CPUs? manage the workload? tune the application?</li>
<li>Learn basic statistics (Sample and Population, mean &amp; weighted average, standard deviation, skew, histogram, inferences, residual analysis, confidence level and interval).. And you&#8217;ll learn to use the statement like.. 90% OF THE TIME, THE QUERY TAKES AN AVERAGE OF 3 SECONDS PLUS OR MINUS 2 SECONDS</li>
<li>Little&#8217;s law and Kendall&#8217;s notation</li>
<li>and many more&#8230;.</li>
</ul>
<p>You might be overwhelmed, but the forecasting work done in this book has methods and is tackled in a gradual manner. Chapter by Chapter you&#8217;ll see yourself progressing and not feeling the pain of understanding something that is beyond human cognition.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  And Craig is a very good writer, he explains it in detail with easy to understand explanations (plus humor).. If you&#8217;re worrying about math, the formulas and models (essential forecasting, forecasting with Erlang C, ratio modeling, regression analysis, queueing theory) are easy to comprehend and use, you&#8217;ll get the hang of it once you use it..</p>
<p>Also, I was able to submit an errata on page 68 which Craig acknowledged (see image below).</p>
<p><a href="http://lh6.ggpht.com/_F2x5WXOJ6Q8/SustdOFuAqI/AAAAAAAAAV4/3cMQUVYTRG4/Orapub.png"><img title="Orapub Errata" alt="Orapub Errata" class="aligncenter" src="http://lh6.ggpht.com/_F2x5WXOJ6Q8/SustdOFuAqI/AAAAAAAAAV4/3cMQUVYTRG4/s400/Orapub.png"></a></p>
<p>We exchanged a couple of emails, and I asked a lot of questions about Chapter 4 (Basic Forecasting Statistics).. he answered it all and he was nice.. he said he had no idea I am from the Philippines..  and there will be an upcoming self published book about <a href="http://training.orapub.com/content_firefighting.asp">Oracle Performance Firefighting</a>&#8230; that will be a good book.. Below is a scratch pad from Craig&#8217;s firefighting class:</p>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SustdBEdoaI/AAAAAAAAAVw/TjbbsjtF6vM/FirefightingCourse.jpg"><img title="Oracle Performance Firefighting" alt="Oracle Performance Firefighting" class="aligncenter" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SustdBEdoaI/AAAAAAAAAVw/TjbbsjtF6vM/s400/FirefightingCourse.jpg"></a></p>
<p>3) And lastly.. are <strong>some of the stuff I&#8217;d like to post soon</strong>&#8230;</p>
<ul>
<li>RAC kernel upgrade</li>
</ul>
<ul>
<li> Converting RAC to single instance</li>
</ul>
<ul>
<li> Block corruption issues, and how to resolve it</li>
</ul>
<ul>
<li>Word size change: 32bit to 64bit on 10.2.0.4</li>
</ul>
<ul>
<li> RAC pseudo standby database</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=91&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/wj30XRiQXZc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/02/27/security-forecasting-oracle-performance-and-some-stuff-to-post-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_F2x5WXOJ6Q8/Sustcz2MlkI/AAAAAAAAAVs/YRuEki5xgow/s288/EffectiveOracleDatabase10gSecurityByDesign.png" medium="image">
			<media:title type="html">EffectiveOracleDatabase10gSecurityByDesign</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SustdFzFNHI/AAAAAAAAAV0/7gCcoOafnH4/s288/ForecastingOraclePerformance.png" medium="image">
			<media:title type="html">ForecastingOraclePerformance</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_F2x5WXOJ6Q8/SustdOFuAqI/AAAAAAAAAV4/3cMQUVYTRG4/s400/Orapub.png" medium="image">
			<media:title type="html">Orapub Errata</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/SustdBEdoaI/AAAAAAAAAVw/TjbbsjtF6vM/s400/FirefightingCourse.jpg" medium="image">
			<media:title type="html">Oracle Performance Firefighting</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/02/27/security-forecasting-oracle-performance-and-some-stuff-to-post-soon/</feedburner:origLink></item>
		<item>
		<title>Migrate from Windows XP 64bit to Ubuntu Intrepid Ibex 8.10 64bit</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/mxvEuQB1Rak/</link>
		<comments>http://karlarao.wordpress.com/2009/01/03/migrate-from-windows-xp-64bit-to-ubuntu-intrepid-ibex-810-64bit/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 10:04:25 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=31</guid>
		<description><![CDATA[I&#8217;ve been using the newest and the greatest version of Ubuntu (Intrepid 8.10) for almost a month now and I&#8217;m happy with it Finally I&#8217;m using a Linux OS, and not even dual booting.. I&#8217;m an RHCT who&#8217;s aiming to be an RHCE by this first quarter of 2009.. So why not CentOS 5? Or other Linux distros? Below are some of my opinions about it: Ubuntu has a vast hardware support which does not need any kernel recompilation, building package from scratch, or any hardcore geek tweaks that you have to do in order <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2009/01/03/migrate-from-windows-xp-64bit-to-ubuntu-intrepid-ibex-810-64bit/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=31&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been using the newest and the greatest version of Ubuntu (Intrepid 8.10) for almost a month now and I&#8217;m happy with it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Finally I&#8217;m using a Linux OS, and not even dual booting.. I&#8217;m an RHCT who&#8217;s aiming to be an RHCE by this first quarter of 2009.. So why not CentOS 5? Or other Linux distros?</p>
<p><span id="more-31"></span></p>
<p><strong>Below are some of my opinions about it:</strong></p>
<ul class="unIndentedList">
<li> Ubuntu has a vast hardware support which does not need any kernel recompilation, building package from scratch, or any hardcore geek tweaks that you have to do in order to be happy with your machine. One example, if you&#8217;re in a meeting and you ask your co-worker, &#8220;that&#8217;s cool, can you project that slide for us?&#8221;.. he replies..&#8221;I can&#8217;t I&#8217;m running on CentOS 5, I haven&#8217;t worked on the module yet&#8221;.. Another is when you&#8217;re on a client and the only way to connect to their network is through Wireless and because your Wireless card is not supported you can&#8217;t get your job done..ouch!</li>
<li> I just want a user-friendly Linux desktop environment (not the server type) which will allow me to do similar things that I do on a Windows environment, also it must be backed by a very dynamic user community.. that makes the distribution keeps on evolving, and makes it very cool and exciting..</li>
<li> I have a 120GB external drive that has NTFS partitions, If I were to migrate to CentOS I would be needing NTFS-3g (NTFS driver) in order to use my external drive in read-write mode, apparently it&#8217;s not native on the CentOS distribution and there are just too many steps in order to make it work which is same case with the wireless card issue. When you install Ubuntu, you could just plug your external drive and immediately use it</li>
<li> Lastly, I also want to learn and be familiar with a Debian based distro..and I kinda like the Synaptic Package Manager, very easy to use with tons of packages available.. but Yum is still cool and powerful..</li>
</ul>
<p><strong>This is my laptop specs (NEO Elan L2110):</strong></p>
<p style="padding-left:60px;">Technology                    Intel® Centrino® processor technology</p>
<p style="padding-left:60px;">Processor                       Intel® Core<sup>TM</sup>2 Duo Processor T8100</p>
<p style="padding-left:60px;">Processor details           3 MB L2 cache, 2.10 Ghz, 800 Mhz FSB</p>
<p style="padding-left:60px;">Chipset                          Intel® GM965 + ICH8-M</p>
<p style="padding-left:60px;">Memory                         4 GB DDR2</p>
<p style="padding-left:60px;">Graphics                        Intel® Graphics Media Accelerator X3100</p>
<p style="padding-left:60px;">Display                          13.3″ WXGA LCD</p>
<p style="padding-left:60px;">Speakers                        2 x High Fidelity Internal Speakers (1.5W)</p>
<p style="padding-left:60px;">Hard Disk Drive             160 GB SATA</p>
<p style="padding-left:60px;">Optical   Disc Drive         DVDRW SuperMulti Slot-in Type</p>
<p style="padding-left:60px;">Networking                   10/100/1000 Mbps LAN</p>
<p style="padding-left:60px;">Wireless                        Intel® Wireless WiFi Link 4965AGN</p>
<p style="padding-left:60px;">Card Reader                  4-in-1 Card Reader</p>
<p style="padding-left:60px;">Webcam                       1.3 MegaPixels</p>
<p style="padding-left:60px;">Connectivity                 IEEE 1394, Bluetooth®</p>
<p style="padding-left:60px;">Battery                          6-cell Lithium-ion Battery</p>
<p style="padding-left:60px;">Weight                          ~ 2.1 k</p>
<p><strong>And here&#8217;s the step by step on how I did my migration:</strong></p>
<p><span style="text-decoration:underline;"><strong>On Windows:</strong></span></p>
<p>1)     Backup Calendar and Email (Thunderbird)</p>
<p>2)     Backup all the files</p>
<p>3)     Have an inventory of all the softwares installed</p>
<p>4)     Backup bookmarks on Firefox</p>
<p><strong><span style="text-decoration:underline;">On Ubuntu:</span></strong></p>
<p>5)     Installation</p>
<ul class="unIndentedList">
<li> Used the &#8220;alternate CD&#8221; then custom partition using LVM (if you are not using the &#8220;alternate CD&#8221; you can&#8217;t do LVM upon install), LVM is very flexible.. if ever I ran out of space on a certain file system I could just execute lvextend and resize2fs.. So I allotted the following:</li>
</ul>
<p style="padding-left:60px;">120MB &#8211; BOOT,</p>
<p style="padding-left:60px;">2GB &#8211; SWAP,</p>
<p style="padding-left:60px;">1.5GB &#8211; ROOT,</p>
<p style="padding-left:60px;">138GB &#8211; HOME,</p>
<p style="padding-left:60px;">1GB &#8211; TMP,</p>
<p style="padding-left:60px;">4GB &#8211; USR,</p>
<p style="padding-left:60px;">1GB &#8211; VAR</p>
<ul class="unIndentedList">
<li> For the keyboard layout I chose &#8220;USA&#8221; because I&#8217;m having problems with special characters when I chose the &#8220;USA International&#8221;</li>
<li> If you encounter the error &#8220;ESCOM&#8221; when you are hitting ENTER key when searching for a word on a man page, it is a keyboard bug.. just hit CTRL+M or CTRL+J for the workaround (https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/40905)</li>
<li> I used the 64bit Desktop Kernel of Ubuntu (although I can install the 64bit Server Kernel), why? Because I&#8217;m just running on a laptop, and I only have one SATA disk. If I install the server kernel it will have little or no difference on the performance. See the link (http://www.serverwatch.com/tutorials/article.php/3715071) for discussions on I/O scheduler, pre-emption, memory, ticks and HZ</li>
</ul>
<p>6)     After the installation, I just want to try if my VMs will run without problems on Ubuntu, my productivity depends on my VMs.. without them I can&#8217;t do all of my test cases for my clients, just follow the bullets below</p>
<ul class="unIndentedList">
<li> Download VMware 1.08 &#8211; latest as of Jan 3, 2009, get the tar.gz version (http://www.vmware.com/download/server/)</li>
<li> Read the article (http://ubuntu-tutorials.com/2008/11/01/vmware-server-107-on-ubuntu-810-intrepid-2627-7-generic/) which you will be asked to download the http://www.insecure.ws/warehouse/vmware-update-2.6.27-5.5.7-2.tar.gz which is a patch that will update the vmware modules for the 2.6.27 kernel</li>
<li> Also read the (http://ubuntuforums.org/showthread.php?t=337040) for common problems that you may encounter when installing VMware on Ubuntu</li>
<li> If you&#8217;re having problems on the ENTER key inside your VMs, then read the link (http://communities.vmware.com/message/1091425), you have to append the <strong>xkeymap.nokeycodeMap = &#8220;true&#8221;</strong> on /etc/vmware/config file</li>
</ul>
<p>7)     Update Ubuntu (kernel and all packages)</p>
<ul class="unIndentedList">
<li> Update your OS using the Synaptic Package Manager</li>
</ul>
<p>8 )     Re-run the perl script vmware setup</p>
<ul class="unIndentedList">
<li> Updating your OS will also update the kernel, VMware is kernel dependent so you have to rerun the &#8220;<strong>runme.pl</strong>&#8221; to recompile it to the new kernel</li>
</ul>
<p>9)     Install other softwares/packages</p>
<p style="padding-left:60px;">- <strong>Thunderbird and Lightning</strong> (for Email and Calendar)</p>
<p style="padding-left:60px;">- <strong>Filezilla</strong> (for easy file transfer)</p>
<p style="padding-left:60px;">- <strong>CHM viewer</strong> (for viewing my CHM ebooks)</p>
<p style="padding-left:60px;">- <strong>Kate</strong> (a powerful text editor with block selection, gedit has a column mode selection plugin but doesn&#8217;t really work)</p>
<p style="padding-left:60px;">- <strong>CrossOver</strong> (for using Windows Office 2k3, Visio, Project on a Linux environment.. I don&#8217;t have to worry about my Windows documents, got it free at http://www.codeweavers.com)</p>
<p style="padding-left:60px;">- <strong>K3B</strong> (a powerful burning tool)</p>
<p style="padding-left:60px;">- <strong>VLC </strong>player and other codecs</p>
<p style="padding-left:60px;">- <strong>VNC</strong> viewer and server</p>
<p style="padding-left:60px;">- <strong>cups-pdf </strong>(a PDF printer, solution to make it work: create <strong>PDF</strong> directory on the home directory, http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2008-11/msg00745.html)</p>
<p style="padding-left:60px;">- <strong>Brasero </strong>(for creating ISO images, http://andieko.info/lang/en/how-to-create-iso-files-in-ubuntu/)</p>
<p style="padding-left:60px;">- <strong>KSnapshot</strong> (replacement for SnagIt, allows region selection)</p>
<p style="padding-left:60px;">- <strong>sysstat</strong> (system performance tools for linux) and <strong>ksh</strong> (korn shell).. I&#8217;ll be needing these to run OS watcher (by Oracle Support) on my machine..</p>
<p style="padding-left:60px;">- <strong>smbclient, samba-common, samba, libpam-smbpass </strong>(so you could share directories)</p>
<p style="padding-left:60px;">- <strong>sysv-rc-conf</strong> (SysV init runlevel config tool for the terminal, so you could have a &#8220;chkconfig&#8221; just like in RedHat)</p>
<p style="padding-left:60px;">- <strong>gpaint</strong> just like the paint program on Windows</p>
<p style="padding-left:60px;">- <strong>gwget</strong> a download manager which is a front-end for wget</p>
<p>10)   Lastly, customize your desktop.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is the screenshot of my Desktop Environment..</p>
<p>You can see that I&#8217;m using my NTFS external drive and the following VMs:</p>
<ul class="unIndentedList">
<li> 2 node 10gR2 RAC on OEL4.4 x86 with OCFS2 and ASMlib</li>
<li> 10gR2 on OEL4.5 x86 with ASM raw devices</li>
<li> 10gR2 Data Guard on OEL 4.7 x86-64 both on ASMlib</li>
<li> Enterprise Manager Grid Control 10.2.0.4 on OEL 4.4 x86</li>
<li> 10gR2 and 11g Database Vault and 10gR2 Audit Vault on OEL 4.4 x86</li>
</ul>
<p><a href="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Sustc18COuI/AAAAAAAAAVo/b0HQKEr8rIM/Desktop.png"><img title="Screenshot Ubuntu Desktop Environment" alt="Screenshot Ubuntu Desktop Environment" src="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Sustc18COuI/AAAAAAAAAVo/b0HQKEr8rIM/s800/Desktop.png"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=31&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/mxvEuQB1Rak" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2009/01/03/migrate-from-windows-xp-64bit-to-ubuntu-intrepid-ibex-810-64bit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_F2x5WXOJ6Q8/Sustc18COuI/AAAAAAAAAVo/b0HQKEr8rIM/s800/Desktop.png" medium="image">
			<media:title type="html">Screenshot Ubuntu Desktop Environment</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2009/01/03/migrate-from-windows-xp-64bit-to-ubuntu-intrepid-ibex-810-64bit/</feedburner:origLink></item>
		<item>
		<title>Oracle-Validated RPM on OEL 4.5</title>
		<link>http://feedproxy.google.com/~r/karlarao/~3/DXjK7evCMGE/</link>
		<comments>http://karlarao.wordpress.com/2008/11/07/oraclevalidatedinstallationonoel45/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:17:43 +0000</pubDate>
		<dc:creator>karlarao</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle-validated]]></category>
		<category><![CDATA[RAC]]></category>

		<guid isPermaLink="false">http://karlarao.wordpress.com/?p=7</guid>
		<description><![CDATA[This is officially my first post on this blog.. finally after weeks of procrastination ..So here it goes.. Last August 29, 2008 on one of the RSS feeds of OTN TechBlog Sergio Leunissen posted a blog about Oracle Validated being available outside ULN which is very nice to hear.. then after 2 months (October), Alejandro Vargas posted a blog on how to do the Oracle-Validated installation on OEL5.. which then made me want to try it on OEL4, and is just in time because I want to shift to 64bit RAC on Linux (test environment <a class="entry-excerpt-link" href="http://karlarao.wordpress.com/2008/11/07/oraclevalidatedinstallationonoel45/">More&#8230;</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=7&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is officially my first post on this blog.. finally after weeks of <!--[if gte mso 9]&gt;  Normal 0   false false false        MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--><!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]-->procrastination  ..So here it goes..</p>
<p><span id="more-7"></span></p>
<p>Last August 29, 2008 on one of the RSS feeds of <a title="OTN RSS link" href="http://www.oracle.com/rss/index.html" target="_blank">OTN TechBlog</a> Sergio Leunissen posted a <a title="oracle-validated RPMs now available outside of ULN" href="http://blogs.oracle.com/sergio/2008/08/oraclevalidated_rpms_now_avail.html" target="_blank">blog</a> about Oracle Validated being available outside ULN which is very nice to hear.. then after 2 months (October), Alejandro Vargas posted a <a title="The Oracle-Validated rpm is available for all users" href="http://blogs.oracle.com/AlejandroVargas/2008/10/the_oraclevalidated_rpm_is_ava.html" target="_blank">blog</a> on how to do the Oracle-Validated installation on OEL5..</p>
<p>which then made me want to try it on OEL4, and is just in time because I want to shift to 64bit RAC on Linux (test environment on VMware)..</p>
<p>The whole installation is documented here: <a title="Oracle-Validated installation on OEL 4.5" href="http://docs.google.com/fileview?id=0B5H46jS7ZPdJYWMzOGJlZmItMmM2Ni00MTg1LTgzMzQtMGJmYjljN2UzOTU0&amp;hl=en" target="_blank">Oracle-Validated installation on OEL 4.5</a></p>
<p>Below are some Metalink Notes about Oracle Validated:</p>
<p style="padding-left:30px;"><span style="color:#333399;">Linux OS Installation with Reduced Set of Packages for Running Oracle Database Server<br />
Doc ID:     Note:728346.1</span></p>
<p style="padding-left:30px;"><span style="color:#333399;">Linux OS Installation with Reduced Set of Packages for Running Oracle Database Server without ULN/RHN<br />
Doc ID:    Note:579101.1</span></p>
<p style="padding-left:30px;"><span style="color:#333399;">Defining a &#8220;default RPMs&#8221; installation of the Oracle Enterprise Linux (OEL) OS<br />
Doc ID:    Note:401167.1</span></p>
<p style="padding-left:30px;"><span style="color:#333399;">Defining a &#8220;default RPMs&#8221; installation of the RHEL OS<br />
Doc ID:    Note:376183.1</span></p>
<p style="padding-left:30px;"><span style="color:#333399;">Defining a &#8220;default RPMs&#8221; installation of the SLES OS<br />
Doc ID:    Note:386391.1</span></p>
<p style="padding-left:30px;"><span style="color:#333399;">The &#8216;oracle-validated&#8217; RPM Package for Installation Prerequisities<br />
Doc ID:    Note:437743.1</span></p>
<p>Below is the summary of the document:</p>
<ul>
<li>The environment is a virtual machine with 1GB of RAM and two CPUs; <strong>the total time for the installation which includes media check, setting up networking, and additional RPMs was 30 minutes</strong> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The good thing about this is the installation only consumed 1.5GB on the /usr filesystem and has a total of 583 RPMs, compared to my other installation (w/o using oracle-validated) which consumed around 2.5GB and has a total of 788 packages. Lesser packages will give you lesser services running on your system that makes the server easier to harden, manage, and maintain.</li>
<li>Although all the required RPMs are already installed on the server, you still have to create the needed directories and edit bash_profile, /etc/profile, and set the appropriate shmmax (/etc/sysctl.conf) value for your environment.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/karlarao.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/karlarao.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=karlarao.wordpress.com&#038;blog=5436406&#038;post=7&#038;subd=karlarao&#038;ref=&#038;feed=1" width="1" height="1" /><img src="http://feeds.feedburner.com/~r/karlarao/~4/DXjK7evCMGE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://karlarao.wordpress.com/2008/11/07/oraclevalidatedinstallationonoel45/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8e16f8e02c09742fdcb4f0902225d1bb?s=96&amp;d=monsterid" medium="image">
			<media:title type="html">karlarao</media:title>
		</media:content>
	<feedburner:origLink>http://karlarao.wordpress.com/2008/11/07/oraclevalidatedinstallationonoel45/</feedburner:origLink></item>
	</channel>
</rss>
