<?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: Level 2: Aggregate</title>
	<atom:link href="http://ashmasters.com/ash-queries/level-2-aggregate-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashmasters.com</link>
	<description>The ASH Masters Demoground</description>
	<pubDate>Fri, 30 Jul 2010 04:55:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: khailey</title>
		<link>http://ashmasters.com/ash-queries/level-2-aggregate-queries/comment-page-1/#comment-94</link>
		<dc:creator>khailey</dc:creator>
		<pubDate>Wed, 16 Jul 2008 13:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=6#comment-94</guid>
		<description>Hi Martin,

   yes, the script for "Top Package and Procedure" only works from 10.2.0.3 ASH data onwords. The information about package and procedure is not available in v$session and all_procedures until that version. If you are on Oracle before 10.2.0.3 and want similar functionality you'd have to instrament your code with module and action.

Kyle</description>
		<content:encoded><![CDATA[<p>Hi Martin,</p>
<p>   yes, the script for &#8220;Top Package and Procedure&#8221; only works from 10.2.0.3 ASH data onwords. The information about package and procedure is not available in v$session and all_procedures until that version. If you are on Oracle before 10.2.0.3 and want similar functionality you&#8217;d have to instrament your code with module and action.</p>
<p>Kyle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://ashmasters.com/ash-queries/level-2-aggregate-queries/comment-page-1/#comment-93</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 16 Jul 2008 12:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=6#comment-93</guid>
		<description>Hi

On an Oracle 9 machine this script doesn't work because all_procedures does not contain a column SUBPROGRAM_ID:

SQL&gt; @ashpl2.sql
Enter value for minutes: 3
old  20:    and ash.sample_time &gt; sysdate - &amp;minutes/(60*24)
new  20:    and ash.sample_time &gt; sysdate - 3/(60*24)
   and ash.PLSQL_SUBPROGRAM_ID  = procs2.SUBPROGRAM_ID ( )
                                  *
ERROR at line 19:
ORA-00904: "PROCS2"."SUBPROGRAM_ID": invalid identifier


SQL&gt; desc all_procedures
 Name                                                              Null?    Type
 ----------------------------------------------------------------- -------- --------------------------------------------
 OWNER                                                             NOT NULL VARCHAR2(30)
 OBJECT_NAME                                                       NOT NULL VARCHAR2(30)
 PROCEDURE_NAME                                                             VARCHAR2(30)
 AGGREGATE                                                                  VARCHAR2(3)
 PIPELINED                                                                  VARCHAR2(3)
 IMPLTYPEOWNER                                                              VARCHAR2(30)
 IMPLTYPENAME                                                               VARCHAR2(30)
 PARALLEL                                                                   VARCHAR2(3)
 INTERFACE                                                                  VARCHAR2(3)
 DETERMINISTIC                                                              VARCHAR2(3)
 AUTHID                                                                     VARCHAR2(12)

SQL&gt;</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>On an Oracle 9 machine this script doesn&#8217;t work because all_procedures does not contain a column SUBPROGRAM_ID:</p>
<p>SQL&gt; @ashpl2.sql<br />
Enter value for minutes: 3<br />
old  20:    and ash.sample_time &gt; sysdate - &amp;minutes/(60*24)<br />
new  20:    and ash.sample_time &gt; sysdate - 3/(60*24)<br />
   and ash.PLSQL_SUBPROGRAM_ID  = procs2.SUBPROGRAM_ID ( )<br />
                                  *<br />
ERROR at line 19:<br />
ORA-00904: &#8220;PROCS2&#8243;.&#8221;SUBPROGRAM_ID&#8221;: invalid identifier</p>
<p>SQL&gt; desc all_procedures<br />
 Name                                                              Null?    Type<br />
 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
 OWNER                                                             NOT NULL VARCHAR2(30)<br />
 OBJECT_NAME                                                       NOT NULL VARCHAR2(30)<br />
 PROCEDURE_NAME                                                             VARCHAR2(30)<br />
 AGGREGATE                                                                  VARCHAR2(3)<br />
 PIPELINED                                                                  VARCHAR2(3)<br />
 IMPLTYPEOWNER                                                              VARCHAR2(30)<br />
 IMPLTYPENAME                                                               VARCHAR2(30)<br />
 PARALLEL                                                                   VARCHAR2(3)<br />
 INTERFACE                                                                  VARCHAR2(3)<br />
 DETERMINISTIC                                                              VARCHAR2(3)<br />
 AUTHID                                                                     VARCHAR2(12)</p>
<p>SQL&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
