<?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"
	>
<channel>
	<title>Comments on: Producing RSS from PL/SQL</title>
	<atom:link href="http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/feed/" rel="self" type="application/rss+xml" />
	<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/</link>
	<description>Technology with a focus on Oracle, Application Express and Linux</description>
	<pubDate>Fri, 16 May 2008 23:10:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Raj Duraisamy</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1329</link>
		<dc:creator>Raj Duraisamy</dc:creator>
		<pubDate>Wed, 30 Apr 2008 19:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1329</guid>
		<description>Refer the following AskTom link http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:232814159006 

to solve the problem
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at “SYS.OWA_UTIL”, line 354
ORA-06512: at “SYS.OWA_UTIL”, line 413
ORA-06512: at “RSS.RSS”, line 50

Initialize with the following below code will take care of the above error when running
exec owa_util.showpage;

declare
    nm  owa.vc_arr;
    vl  owa.vc_arr;
begin
    nm(1) := 'X';
    vl(1) := 'Y';
    owa.init_cgi_env( nm.count, nm, vl );
end;
/

-raj</description>
		<content:encoded><![CDATA[<p>Refer the following AskTom link <a href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:232814159006" rel="nofollow">http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:232814159006</a> </p>
<p>to solve the problem<br />
ORA-06502: PL/SQL: numeric or value error<br />
ORA-06512: at “SYS.OWA_UTIL”, line 354<br />
ORA-06512: at “SYS.OWA_UTIL”, line 413<br />
ORA-06512: at “RSS.RSS”, line 50</p>
<p>Initialize with the following below code will take care of the above error when running<br />
exec owa_util.showpage;</p>
<p>declare<br />
    nm  owa.vc_arr;<br />
    vl  owa.vc_arr;<br />
begin<br />
    nm(1) := &#8216;X&#8217;;<br />
    vl(1) := &#8216;Y&#8217;;<br />
    owa.init_cgi_env( nm.count, nm, vl );<br />
end;<br />
/</p>
<p>-raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerton ten Ham</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1300</link>
		<dc:creator>Gerton ten Ham</dc:creator>
		<pubDate>Thu, 20 Mar 2008 15:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1300</guid>
		<description>When obtaining the following error stack (in SQL plus, TOAD etc.)


When I try to execute it in toad I get:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at “SYS.OWA_UTIL”, line 354
ORA-06512: at “SYS.OWA_UTIL”, line 413
ORA-06512: at “RSS.RSS”, line 50


is because the owa_util package uses several tables of varchar2's (aka plsql array's).
These arrays are not properly initialized (they are empty!) when using tools other then SQL Developer (with OWA output) or Apache/mod_plsql(DAD)/browser.

You can mimic this by calling the function : owa.initialize (returning a number) before making any calls to owa_util.

Needless to say that the output for htp.p or htp.prn can only be seen within SQL Developer or in the browser.

Gerton</description>
		<content:encoded><![CDATA[<p>When obtaining the following error stack (in SQL plus, TOAD etc.)</p>
<p>When I try to execute it in toad I get:<br />
ORA-06502: PL/SQL: numeric or value error<br />
ORA-06512: at “SYS.OWA_UTIL”, line 354<br />
ORA-06512: at “SYS.OWA_UTIL”, line 413<br />
ORA-06512: at “RSS.RSS”, line 50</p>
<p>is because the owa_util package uses several tables of varchar2&#8217;s (aka plsql array&#8217;s).<br />
These arrays are not properly initialized (they are empty!) when using tools other then SQL Developer (with OWA output) or Apache/mod_plsql(DAD)/browser.</p>
<p>You can mimic this by calling the function : owa.initialize (returning a number) before making any calls to owa_util.</p>
<p>Needless to say that the output for htp.p or htp.prn can only be seen within SQL Developer or in the browser.</p>
<p>Gerton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Daniels</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1295</link>
		<dc:creator>Peter Daniels</dc:creator>
		<pubDate>Thu, 13 Mar 2008 20:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1295</guid>
		<description>Thanks Gerton, 9.2.0.5, and I verified that it can utilize xmltype which, honestly, was sort of a surprise to me.</description>
		<content:encoded><![CDATA[<p>Thanks Gerton, 9.2.0.5, and I verified that it can utilize xmltype which, honestly, was sort of a surprise to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerton ten Ham</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1292</link>
		<dc:creator>Gerton ten Ham</dc:creator>
		<pubDate>Mon, 10 Mar 2008 20:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1292</guid>
		<description>@Peter Daniels,

Which version of 9i are you running? All versions below Oracle 9.2.0.4 (?) does not support xmltype! 

Gerton</description>
		<content:encoded><![CDATA[<p>@Peter Daniels,</p>
<p>Which version of 9i are you running? All versions below Oracle 9.2.0.4 (?) does not support xmltype! </p>
<p>Gerton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1287</link>
		<dc:creator>Felipe</dc:creator>
		<pubDate>Thu, 06 Mar 2008 19:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1287</guid>
		<description>Hi, I want to know where in the Apex(oracle) I need to write the code showed above to me create the RSS file. Please tell me the rights steps to create this.

Thanks very much

peace!</description>
		<content:encoded><![CDATA[<p>Hi, I want to know where in the Apex(oracle) I need to write the code showed above to me create the RSS file. Please tell me the rights steps to create this.</p>
<p>Thanks very much</p>
<p>peace!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Daniels</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1285</link>
		<dc:creator>Peter Daniels</dc:creator>
		<pubDate>Wed, 05 Mar 2008 23:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1285</guid>
		<description>I initially edited the db fields &#38; such, but I just tried the straight from copy to clipboard option, same deal. I'll work at it and see if I can figure it out; and lord yes we're aware that we're in the final throes of support, it underlies a larger proprietary catalog that we run &#38; the company is a bit behind on delivering a version which works with 10g much less 11g.

Many thanks for the reply &#38; again, thanks for the tool, it's already taught me a thing or three.</description>
		<content:encoded><![CDATA[<p>I initially edited the db fields &amp; such, but I just tried the straight from copy to clipboard option, same deal. I&#8217;ll work at it and see if I can figure it out; and lord yes we&#8217;re aware that we&#8217;re in the final throes of support, it underlies a larger proprietary catalog that we run &amp; the company is a bit behind on delivering a version which works with 10g much less 11g.</p>
<p>Many thanks for the reply &amp; again, thanks for the tool, it&#8217;s already taught me a thing or three.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Muth</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1284</link>
		<dc:creator>Tyler Muth</dc:creator>
		<pubDate>Wed, 05 Mar 2008 20:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1284</guid>
		<description>Did you copy and paste it line for line or did you change it a bit?  I don't have a 9i database handy so I can't really test it there.  You are aware that 9i is now in error correction support and the first year of free error correction support ends this June or July, correct?

Tyler</description>
		<content:encoded><![CDATA[<p>Did you copy and paste it line for line or did you change it a bit?  I don&#8217;t have a 9i database handy so I can&#8217;t really test it there.  You are aware that 9i is now in error correction support and the first year of free error correction support ends this June or July, correct?</p>
<p>Tyler</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Daniels</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1283</link>
		<dc:creator>Peter Daniels</dc:creator>
		<pubDate>Wed, 05 Mar 2008 19:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1283</guid>
		<description>Practically a total newb to using Oracle's XML functionality so this was extremely helpful to find, thank you. I get errors when compiling in 9i, however:

Line # = 17 Column # = 14 Error Text = PL/SQL: SQL Statement ignored
Line # = 33 Column # = 97 Error Text = PL/SQL: ORA-00904: "X"."UPDATED_ON": invalid identifier
Line # = 45 Column # = 35 Error Text = PLS-00364: loop index variable 'I' use is invalid
Line # = 45 Column # = 9 Error Text = PL/SQL: Statement ignored

Should this work in 9i (at which we are, unfortunately, stuck) or no?  Thanks very much for any assistance.</description>
		<content:encoded><![CDATA[<p>Practically a total newb to using Oracle&#8217;s XML functionality so this was extremely helpful to find, thank you. I get errors when compiling in 9i, however:</p>
<p>Line # = 17 Column # = 14 Error Text = PL/SQL: SQL Statement ignored<br />
Line # = 33 Column # = 97 Error Text = PL/SQL: ORA-00904: &#8220;X&#8221;.&#8221;UPDATED_ON&#8221;: invalid identifier<br />
Line # = 45 Column # = 35 Error Text = PLS-00364: loop index variable &#8216;I&#8217; use is invalid<br />
Line # = 45 Column # = 9 Error Text = PL/SQL: Statement ignored</p>
<p>Should this work in 9i (at which we are, unfortunately, stuck) or no?  Thanks very much for any assistance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angelos Roumeliotis</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1272</link>
		<dc:creator>Angelos Roumeliotis</dc:creator>
		<pubDate>Mon, 03 Mar 2008 15:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1272</guid>
		<description>Don't worry about it, fixed!</description>
		<content:encoded><![CDATA[<p>Don&#8217;t worry about it, fixed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angelos Roumeliotis</title>
		<link>http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1271</link>
		<dc:creator>Angelos Roumeliotis</dc:creator>
		<pubDate>Mon, 03 Mar 2008 12:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/#comment-1271</guid>
		<description>Thank you for your reply.

I have several other procedure htp.p-ing things on the browser, so I'm pretty sure that works...

Any other ideas? Anything is appreciated...</description>
		<content:encoded><![CDATA[<p>Thank you for your reply.</p>
<p>I have several other procedure htp.p-ing things on the browser, so I&#8217;m pretty sure that works&#8230;</p>
<p>Any other ideas? Anything is appreciated&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
