<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Books and presentations</title>
	<atom:link href="http://orainternals.wordpress.com/2011/01/20/books-and-presentations/feed/" rel="self" type="application/rss+xml" />
	<link>http://orainternals.wordpress.com/2011/01/20/books-and-presentations/</link>
	<description>Discussions about Oracle performance tuning, RAC, Oracle internal &#38; E-business suite.</description>
	<lastBuildDate>Mon, 17 Jun 2013 02:28:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Sigrid Keydana</title>
		<link>http://orainternals.wordpress.com/2011/01/20/books-and-presentations/#comment-710</link>
		<dc:creator><![CDATA[Sigrid Keydana]]></dc:creator>
		<pubDate>Thu, 09 Jun 2011 13:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=905#comment-710</guid>
		<description><![CDATA[Hi Riyaj,

first of all, let me congratulate you on your chapters in &quot;Pro Oracle SQL&quot;., which I&#039;ve read with great interest. I think that analytic functions, and the model clause, are very worthwhile for DBAs to know about.
Would it be okay to ask a question here? I want to use he model clause, with it&#039;s iterate() functionality, to build my own, very simple listagg function (essentially, for learning purposes). As the list may become bigger than 4000 chars, I need to have a clob as the &quot;base case&quot; of the recursion, so I replaced your line

measures (cast (&#039;  &#039; as varchar2(&amp;&amp;listsize)) cname_list, cname)

with any of the following

measures (cast (to_clob(&#039;&#039;) as clob) cname_list, cname)
measures (cast (empty_clob() as clob) cname_list, cname)
measures (to_clob(&#039;&#039;) cname_list, cname)

but all result in the same error

ORA-00932: inconsistent datatypes: expected - got CLOB

In fact, the error does not seem to be related to the model clause, as it results from a simple

select cast (&#039; &#039; as clob) from dual

too... Would you perhaps have a hint for me what I&#039;m doing wrong here?
Many thanks in advance!
Sigrid]]></description>
		<content:encoded><![CDATA[<p>Hi Riyaj,</p>
<p>first of all, let me congratulate you on your chapters in &#8220;Pro Oracle SQL&#8221;., which I&#8217;ve read with great interest. I think that analytic functions, and the model clause, are very worthwhile for DBAs to know about.<br />
Would it be okay to ask a question here? I want to use he model clause, with it&#8217;s iterate() functionality, to build my own, very simple listagg function (essentially, for learning purposes). As the list may become bigger than 4000 chars, I need to have a clob as the &#8220;base case&#8221; of the recursion, so I replaced your line</p>
<p>measures (cast (&#8216;  &#8216; as varchar2(&amp;&amp;listsize)) cname_list, cname)</p>
<p>with any of the following</p>
<p>measures (cast (to_clob(&#8221;) as clob) cname_list, cname)<br />
measures (cast (empty_clob() as clob) cname_list, cname)<br />
measures (to_clob(&#8221;) cname_list, cname)</p>
<p>but all result in the same error</p>
<p>ORA-00932: inconsistent datatypes: expected &#8211; got CLOB</p>
<p>In fact, the error does not seem to be related to the model clause, as it results from a simple</p>
<p>select cast (&#8216; &#8216; as clob) from dual</p>
<p>too&#8230; Would you perhaps have a hint for me what I&#8217;m doing wrong here?<br />
Many thanks in advance!<br />
Sigrid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siddiqy</title>
		<link>http://orainternals.wordpress.com/2011/01/20/books-and-presentations/#comment-702</link>
		<dc:creator><![CDATA[siddiqy]]></dc:creator>
		<pubDate>Sat, 07 May 2011 03:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=905#comment-702</guid>
		<description><![CDATA[Thank you for sharing your experiences.]]></description>
		<content:encoded><![CDATA[<p>Thank you for sharing your experiences.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
