<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 用Oracle实现ASH的数据透视图</title>
	<atom:link href="http://www.os2ora.com/ash-pivot-by-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.os2ora.com/ash-pivot-by-oracle/</link>
	<description>专注于现实世界Oracle数据库的高性能，高可扩展性与新一代数据库Exadata架构</description>
	<lastBuildDate>Thu, 08 Sep 2011 13:01:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kaya</title>
		<link>http://www.os2ora.com/ash-pivot-by-oracle/comment-page-1/#comment-594</link>
		<dc:creator>Kaya</dc:creator>
		<pubDate>Tue, 15 Jun 2010 04:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.os2ora.com/ash-pivot-by-oracle/#comment-594</guid>
		<description>因为group by时是以十秒为间隔的，count(1)/10 反应的就是每十秒sample一次得到的等待事件。

DBA_HIST_ACTIVE_SESS_HISTORY默认就是每十秒sample一次的，(准确的说，是active_session_history数据的十分之一flush到此视图），因为把上面的active_session_history替换成此视图，同时把/10去掉，应该就是你所要的SQL了。当然，如果你要以天为单位，你还得修改相应的地方。</description>
		<content:encoded><![CDATA[<p>因为group by时是以十秒为间隔的，count(1)/10 反应的就是每十秒sample一次得到的等待事件。</p>
<p>DBA_HIST_ACTIVE_SESS_HISTORY默认就是每十秒sample一次的，(准确的说，是active_session_history数据的十分之一flush到此视图），因为把上面的active_session_history替换成此视图，同时把/10去掉，应该就是你所要的SQL了。当然，如果你要以天为单位，你还得修改相应的地方。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: overmars</title>
		<link>http://www.os2ora.com/ash-pivot-by-oracle/comment-page-1/#comment-571</link>
		<dc:creator>overmars</dc:creator>
		<pubDate>Sun, 06 Jun 2010 07:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.os2ora.com/ash-pivot-by-oracle/#comment-571</guid>
		<description>&quot; , count(1)/10 total&quot; 为什么要除以10呢？
用你的这个方法，如果我想分析出DBA_HIST_ACTIVE_SESS_HISTORY中一周内每天的等待事件的情况，可以吗？ 
SQL如何实现呢，谢谢！</description>
		<content:encoded><![CDATA[<p>&#8221; , count(1)/10 total&#8221; 为什么要除以10呢？<br />
用你的这个方法，如果我想分析出DBA_HIST_ACTIVE_SESS_HISTORY中一周内每天的等待事件的情况，可以吗？<br />
SQL如何实现呢，谢谢！</p>
]]></content:encoded>
	</item>
</channel>
</rss>

