<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet href="images/rss/rss2full.xsl" type="text/xsl" media="screen"?>
<?xml-stylesheet href="images/rss/itemcontent.css" type="text/css" media="screen"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bmforum="http://rssnamespace.org/bmforum/ext/1.0" version="2.0">
<channel>
 <title>OraclePoint - &lt;B&gt;D.C.B.A. Tools Collection&lt;/B&gt;</title> 
  <link>http://www.oraclepoint.com/index.php</link> 
  <description>Worldwide froum on oracle and other IT products.</description> 
  <image>
    <title>OraclePoint</title> 
    <url>http://www.oraclepoint.com/images/ITPUB_log.png</url>
    <link>http://www.oraclepoint.com</link>
    <description>Worldwide froum on oracle and other IT products.</description>
  </image>
  <atom:link xmlns:atom="http://purl.org/atom/ns#" rel="self" href="http://www.oraclepoint.com:80//rss.php?forumid=8" type="application/rss+xml" />

<item>
<link>http://www.oraclepoint.com/topic.php?filename=51</link>
<title>Performance Tuning Utility: DCBA</title> 
<author> &lt;OraclePoint.com&gt;</author>
<category>OraclePoint</category>
<pubDate>Fri, 20 Apr 2007 22:18:45 +0000</pubDate> 
 <guid>http://www.oraclepoint.com/topic.php?filename=51</guid> 
<description>
<![CDATA[ 
	STATSPACK is very useful in oracle performance, it provide us so much useful information, such as overall load, top 5 wait, SQL by logical gets, SQL by physical read etc. But I found that the time interval between two snapshots cannot be too short, else STATSPACK will cause some load on database host, and when the database is high load, it&#039;s hard to run the STATSPACK.SNAP procedure and difficult to get the report. In order to find out and resolve the performance problem more quickly and in intime, I wrote this tool, to get the main information that STATSPACK provided to us, but with light load and more effectivly. In the output report of this tool, you can see the overall load, top 5 wait, top latch wait, and top SQL by execution count, top SQL by logical reads, top SQL by physical reads, and if you database is above Oracle 9i, also include top SQL by CPU time and top SQL by wait time(elapsed time minus CPU time). <br />&nbsp; &nbsp; I believe this tool is just the same powerful as STATSPACK, and some time due to Oracle&#039;s bug in shared pool management, we offten need to flush the shared pool, because this tool run quickly, you can still get useful information in this case.  <br /> <br /><strong>1, Free Download</strong> <br /> <br />Windows/Linux/Solaris Binary  <br /> <br /><strong>2, Installation &amp; Syntax <br /></strong>&nbsp; &nbsp;OPMon is a small powerful utility, you must get oracle client or server software installed on your machine. If you want to connect to remote database, config the oracle network client also, finally create an user with ANYSQL/ANYSQL and grant the CREATE SESSION and SELECT_CATALOG_ROLE previledge.  <br /> <br />C:\MYDUL\utility&gt;dcba -2 -h <br />AnySQL.net OPMon for Oracle, Release 3.0.0 <br />(c) Copyright Lou Fangxin (AnySQL.net) 2004-2006, all rights reserved. <br /> <br />Usage: dcba -[option][value] <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-{1|2|3|4} 1:OTop, 2:OPMon, 3:OTune, 4:OLoad <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-H &nbsp; &nbsp;print help message <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-U &nbsp; &nbsp;Oracle user name with select_catalog_role. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-S &nbsp; &nbsp;tns alias if remote database. <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-T &nbsp; &nbsp;time interval (default 30 seconds, min 5, max 900) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-C &nbsp; &nbsp;number of top SQLs displayed (min 5, max 16384) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-Q &nbsp; &nbsp;run in quiet mode, write to file <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-D &nbsp; &nbsp;directory of output file in quiet mode  <br /> <br /><strong>3, How to connect to database? <br /></strong>&nbsp; &nbsp;If we use SQL*Plus to connect database as &quot;sqlplus anysql/anysql@prod&quot;, then you should run OTop as &quot;dcba -2 -uanysql/anysql -sprod&quot;, the default time interval is 120 seconds, so you need to wait for about 2 minutes, then it will give you the following report, of cause you could use &quot;-t&quot; option to tune the interval, for example 30 seconds, just issue &quot;dcba -2 -t30 -uanysql/anysql -sprod&quot;.  <br /> <br /> <br /><strong>4, Report Sample</strong> <br />&nbsp; &nbsp;First part is overall information.  <br /> <br />AnySQL OPMon (Host:*****, SID:*****, CPU:4, Time:23:01:22 - 23:03:26, Elapse:124) <br />-Statistics------------------------------------------------------------------------------------- <br />&nbsp;209 &nbsp; &nbsp; 1 &nbsp;logons cumulative &nbsp; 27K &nbsp; 222 &nbsp;opened cursors &nbsp; &nbsp; &nbsp;833 &nbsp; &nbsp; 6 &nbsp;user commits <br />163K &nbsp;1321 &nbsp;user calls &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;31K &nbsp; 253 &nbsp;CPU this session &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 &nbsp;enqueue waits <br />&nbsp;24K &nbsp; 200 &nbsp;db block gets &nbsp; &nbsp; 9435K &nbsp; 76K &nbsp;consistent gets &nbsp; &nbsp;771K &nbsp;6222 &nbsp;physical reads <br />&nbsp;16K &nbsp; 135 &nbsp;db block changes &nbsp; &nbsp;328 &nbsp; &nbsp; 2 &nbsp;consistent change &nbsp; 231 &nbsp; &nbsp; 1 &nbsp;physical writes <br />&nbsp;13K &nbsp; 110 &nbsp;DBWR buffers scan &nbsp;762K &nbsp;6148 &nbsp;free buffer req &nbsp; &nbsp;4650 &nbsp; &nbsp;37 &nbsp;free buffer ins <br />&nbsp; 29 &nbsp; &nbsp; 0 &nbsp;CR blocks created 2688K &nbsp; 21K &nbsp;redo size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5908 &nbsp; &nbsp;47 &nbsp;redo blks written <br />&nbsp;46M &nbsp;378K &nbsp;Table scan rows &nbsp; &nbsp; 29M &nbsp;241K &nbsp;Table fetch rowid &nbsp; 27K &nbsp; 223 &nbsp;Total parse count <br />&nbsp; 83 &nbsp; &nbsp; 0 &nbsp;Hard parse count &nbsp; 120K &nbsp; 968 &nbsp;execute count &nbsp; &nbsp; &nbsp;177M 1432K &nbsp;bytes via SQL*Net <br />9668 &nbsp; &nbsp;77 &nbsp;sorts (memory) &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 &nbsp;sorts (disk) <br /> <br />&nbsp; &nbsp;Second part is top 5 wait event.  <br />-Waits----W/S---Time--Tim/S--Pct----Event-------------(Top 5 Wait Event)------------------------ <br />&nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;31K &nbsp; &nbsp;254 &nbsp; 28 &nbsp; &nbsp;CPU time <br />&nbsp; 67K &nbsp; &nbsp;541 &nbsp; &nbsp;26K &nbsp; &nbsp;215 &nbsp; 23 &nbsp; &nbsp;db file scattered read <br />&nbsp; &nbsp;80 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;24K &nbsp; &nbsp;194 &nbsp; 21 &nbsp; &nbsp;enqueue <br />&nbsp; 43K &nbsp; &nbsp;346 &nbsp; &nbsp;16K &nbsp; &nbsp;136 &nbsp; 15 &nbsp; &nbsp;db file sequential read <br />&nbsp; 27K &nbsp; &nbsp;223 &nbsp; &nbsp;12K &nbsp; &nbsp;102 &nbsp; 11 &nbsp; &nbsp;buffer busy waits <br /> <br />&nbsp; &nbsp;Forth part is TOP sqls.  <br />--Exec--Exe/S--Get/S--Get/E--Dsk/S--Dsk/E--Row/E---Sort--Cpu/S-Wait/S--HASH---(Order By Exec)--- <br />&nbsp;2061 &nbsp; &nbsp; 62 &nbsp; 1914 &nbsp; &nbsp; 30 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;78K &nbsp; 9710 &nbsp; 274642557 [EXEC 1] <br />&nbsp;1502 &nbsp; &nbsp; 45 &nbsp; &nbsp;136 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; 17 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;17K &nbsp; &nbsp;44K &nbsp;3941635528 [EXEC 2] <br />&nbsp;1180 &nbsp; &nbsp; 35 &nbsp; &nbsp;630 &nbsp; &nbsp; 17 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;32K &nbsp; &nbsp;13K &nbsp; 924586018 [EXEC 3] <br />&nbsp;1031 &nbsp; &nbsp; 31 &nbsp; &nbsp;832 &nbsp; &nbsp; 26 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;29K &nbsp; &nbsp;15K &nbsp; 292557380 [EXEC 4] <br />&nbsp; 728 &nbsp; &nbsp; 22 &nbsp; &nbsp; 87 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; 5151 &nbsp; &nbsp;n/a &nbsp; &nbsp;14619818 [EXEC 5] <br /> <br />--Exec--Exe/S--Get/S--Get/E--Dsk/S--Dsk/E--Row/E---Sort--Cpu/S-Wait/S--HASH---(Order By Gets)--- <br />&nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; 6601 &nbsp; 217K &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 17 &nbsp; &nbsp; 26 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp;79K &nbsp; 4313 &nbsp;1116368370 [GETS 1] <br />&nbsp;2061 &nbsp; &nbsp; 62 &nbsp; 1914 &nbsp; &nbsp; 30 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;78K &nbsp; 9710 &nbsp; 274642557 [GETS 2] <br />&nbsp; 112 &nbsp; &nbsp; &nbsp;3 &nbsp; 1772 &nbsp; &nbsp;522 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;445 &nbsp; &nbsp; &nbsp;0 &nbsp; 242K &nbsp; 6872 &nbsp;3312817073 [GETS 3] <br />&nbsp;1031 &nbsp; &nbsp; 31 &nbsp; &nbsp;832 &nbsp; &nbsp; 26 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;29K &nbsp; &nbsp;15K &nbsp; 292557380 [GETS 4] <br />&nbsp; 301 &nbsp; &nbsp; &nbsp;9 &nbsp; &nbsp;758 &nbsp; &nbsp; 83 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 20 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;15K &nbsp; &nbsp;n/a &nbsp;1779246519 [GETS 5] <br />&nbsp;1180 &nbsp; &nbsp; 35 &nbsp; &nbsp;630 &nbsp; &nbsp; 17 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;32K &nbsp; &nbsp;13K &nbsp; 924586018 [GETS 6] <br />&nbsp; 509 &nbsp; &nbsp; 15 &nbsp; &nbsp;443 &nbsp; &nbsp; 28 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;19K &nbsp; &nbsp;10K &nbsp; 680911523 [GETS 7] <br />&nbsp; 421 &nbsp; &nbsp; 12 &nbsp; &nbsp;366 &nbsp; &nbsp; 28 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;20K &nbsp; 3619 &nbsp;1904510931 [GETS 8] <br /> <br />--Exec--Exe/S--Get/S--Get/E--Dsk/S--Dsk/E--Row/E---Sort--Cpu/S-Wait/S--HASH---(Order By Disk)--- <br />&nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;101 &nbsp; &nbsp;669 &nbsp; &nbsp; 62 &nbsp; &nbsp;415 &nbsp; &nbsp;42K &nbsp; &nbsp; &nbsp;5 &nbsp; 142K &nbsp; &nbsp;43K &nbsp;1560822338 [DISK 1] <br />&nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 57 &nbsp; 1906 &nbsp; &nbsp; 57 &nbsp; 1900 &nbsp; 3285 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp;59K &nbsp; &nbsp;42K &nbsp;4043595143 [DISK 2] <br />&nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 50 &nbsp; 1670 &nbsp; &nbsp; 45 &nbsp; 1507 &nbsp; 4219 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;15K &nbsp; 140K &nbsp;2674340009 [DISK 3] <br />&nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 60 &nbsp; &nbsp;990 &nbsp; &nbsp; 45 &nbsp; &nbsp;743 &nbsp; 2013 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;17K &nbsp; 142K &nbsp;2260377061 [DISK 4] <br />&nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 41 &nbsp; &nbsp;678 &nbsp; &nbsp; 25 &nbsp; &nbsp;416 &nbsp; &nbsp;42K &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp;55K &nbsp; &nbsp;26K &nbsp; 179113020 [DISK 5] <br />&nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 40 &nbsp; &nbsp;661 &nbsp; &nbsp; 24 &nbsp; &nbsp;410 &nbsp; &nbsp;42K &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp;58K &nbsp; &nbsp;20K &nbsp;3213418442 [DISK 6] <br />&nbsp;1502 &nbsp; &nbsp; 45 &nbsp; &nbsp;136 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; 17 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;17K &nbsp; &nbsp;44K &nbsp;3941635528 [DISK 7] <br />&nbsp;2061 &nbsp; &nbsp; 62 &nbsp; 1914 &nbsp; &nbsp; 30 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;78K &nbsp; 9710 &nbsp; 274642557 [DISK 8] <br /> <br />--Exec--Exe/S--Get/S--Get/E--Dsk/S--Dsk/E--Row/E---Sort--Cpu/S-Wait/S--HASH---(Order By Sort)--- <br />&nbsp; 144 &nbsp; &nbsp; &nbsp;4 &nbsp; &nbsp; &nbsp;8 &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp;144 &nbsp; 2121 &nbsp; &nbsp;n/a &nbsp;1926052843 [SORT 1] <br />&nbsp; &nbsp;47 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; 27 &nbsp; &nbsp; 19 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;9 &nbsp; &nbsp;124 &nbsp; &nbsp;606 &nbsp; 1024 &nbsp;1356713530 [SORT 2] <br />&nbsp; &nbsp;51 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;4 &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 51 &nbsp; &nbsp;909 &nbsp; &nbsp;608 &nbsp; 375404960 [SORT 3] <br />&nbsp; &nbsp;44 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp;115 &nbsp; &nbsp; 86 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp; 44 &nbsp; 3636 &nbsp; &nbsp;n/a &nbsp;4032276548 [SORT 4] <br />&nbsp; &nbsp;41 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp;265 &nbsp; &nbsp;213 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 63 &nbsp; &nbsp; 41 &nbsp; &nbsp;13K &nbsp; 3031 &nbsp;1574206447 [SORT 5] <br /> <br />&nbsp; &nbsp;What&#039;s the mean of each column?  <br />Exec &nbsp; : Total execution count in this period <br />Exe/S &nbsp;: Execution count per second <br />Get/S &nbsp;: Consistent gets per second <br />Get/E &nbsp;: Consistent gets per execution <br />Dsk/S &nbsp;: Physical reads per second <br />Dsk/E &nbsp;: Physical reads per execution <br />Row/E &nbsp;: Rows per executions <br />Sort &nbsp; : Sort count <br />Cpu/S &nbsp;: CPU time per second(cs) <br />Wait/S : Wait time per second (cs)  <br />&nbsp; &nbsp;All the values are the delta between the two time points. You can find out so much useful information here, event data distribution by check the &quot;Row/E&quot; column,I have found one SQL with different rows at different period, and final found that there is lots of rows for one value.  <br /> <br /><strong>5, Notes</strong> <br />&nbsp; &nbsp;OPMon will not caused heavy load on the database server, it&#039;s a light way tools.  <br />
  ]]> 
</description>
</item>
<item>
<link>http://www.oraclepoint.com/topic.php?filename=124</link>
<title>Curriculum Vitae of D.C.B.A.</title> 
<author> &lt;OraclePoint.com&gt;</author>
<category>OraclePoint</category>
<pubDate>Mon, 18 Jun 2007 18:28:20 +0000</pubDate> 
 <guid>http://www.oraclepoint.com/topic.php?filename=124</guid> 
<description>
<![CDATA[ 
	<strong>Fangxin.Lou <br /></strong>Senior DBA, <a href="http://www.ebay.com/" target='_blank'>eBay</a> China Operation Center <br />Shanghai, China  <br /> <br />Fangxin Lou currently works as a senior DBA for eBay, the world&#039;s largest auction web site, to help improve the site availability by performance tuning and doing maintenance work. AnySQL is active in the Chinese database technology community using the ID of &quot;d.c.b.a&quot; or &quot;AnySQL&quot;.&nbsp; He has writen several free DBA utilities such as AnySQL, ociuldr, otop etc. where hundreds of DBAs have downloaded to use in their daily work. <br /> <br />Read Fangxins&#039;Blog: <a href="http://www.anysql.net/en" target='_blank'>English</a> | <a href="http://www.anysql.net/" target='_blank'>Chinese</a>
  ]]> 
</description>
</item></channel>
</rss>

