<?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: Oracle REF CURSOR and ColdFusion</title>
	<atom:link href="http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<pubDate>Fri, 21 Nov 2008 02:48:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Jeff Aust</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51530</link>
		<dc:creator>Jeff Aust</dc:creator>
		<pubDate>Tue, 11 Sep 2007 18:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51530</guid>
		<description>&lt;p&gt;Yes, indeed, it was as you recommended.  Thanks for the pointer!&lt;/p&gt;

&lt;p&gt;Just to add to the note my stored procedure is not contained within a package.  Not that I have anything against packages, mind you.  ;-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, indeed, it was as you recommended.  Thanks for the pointer!</p>
<p>Just to add to the note my stored procedure is not contained within a package.  Not that I have anything against packages, mind you.  <img src='http://awads.net/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51507</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Fri, 07 Sep 2007 23:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51507</guid>
		<description>&lt;p&gt;You may have to update the macromedia_drivers.jar file. The following TechNote has more information: http://www.adobe.com/go/42dcb10a&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You may have to update the macromedia_drivers.jar file. The following TechNote has more information: <a href="http://www.adobe.com/go/42dcb10a" rel="nofollow">http://www.adobe.com/go/42dcb10a</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Aust</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51506</link>
		<dc:creator>Jeff Aust</dc:creator>
		<pubDate>Fri, 07 Sep 2007 20:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51506</guid>
		<description>&lt;p&gt;Hmmm?  I get the same error as the other Jeff as well.  This has been bugging the heck out of me for the past few days because I have a proc I'd like to use in this fashion.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hmmm?  I get the same error as the other Jeff as well.  This has been bugging the heck out of me for the past few days because I have a proc I&#8217;d like to use in this fashion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Dugas</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51505</link>
		<dc:creator>Jeff Dugas</dc:creator>
		<pubDate>Fri, 07 Sep 2007 17:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51505</guid>
		<description>&lt;p&gt;Yikes, my CF code got dropped when I posted. No matter, it looked exactly like what you had originally, except I changed the procedure attribute to match the package procedure, used a variable for the DSN, and I wrapped it in a try/catch to dump the exception.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yikes, my CF code got dropped when I posted. No matter, it looked exactly like what you had originally, except I changed the procedure attribute to match the package procedure, used a variable for the DSN, and I wrapped it in a try/catch to dump the exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Dugas</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51504</link>
		<dc:creator>Jeff Dugas</dc:creator>
		<pubDate>Fri, 07 Sep 2007 17:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51504</guid>
		<description>&lt;p&gt;I created the package you provided as an example, and used this CF7 code, having provided a value for myDSN elsewhere.&lt;/p&gt;

&lt;p&gt;


 




&lt;/p&gt;

&lt;p&gt;The exception's Detail is:
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'TEST_PROC' ORA-06550: line 1, column 7: PL/SQL: Statement ignored&lt;/p&gt;

&lt;p&gt;Adding a cfprocparam tag that defines the output parameter does not fix the problem (it causes Parameter Type Conflict: sqlType=2006).&lt;/p&gt;

&lt;p&gt;So, no luck yet. After doing some further reading, I suspect this could be a problem with the driver we're using (Oracle JDBC thin driver).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I created the package you provided as an example, and used this CF7 code, having provided a value for myDSN elsewhere.</p>
</p>
<p>The exception&#8217;s Detail is:<br />
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to &#8216;TEST_PROC&#8217; ORA-06550: line 1, column 7: PL/SQL: Statement ignored</p>
<p>Adding a cfprocparam tag that defines the output parameter does not fix the problem (it causes Parameter Type Conflict: sqlType=2006).</p>
<p>So, no luck yet. After doing some further reading, I suspect this could be a problem with the driver we&#8217;re using (Oracle JDBC thin driver).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51503</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Fri, 07 Sep 2007 16:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51503</guid>
		<description>&lt;p&gt;Yes. In fact, we do that all the time. I'm not sure what you mean by "no luck".  Here is an example of a procedure returning a weak ref cursor:&lt;/p&gt;

&lt;pre&gt;
CREATE OR REPLACE PACKAGE test_pkg
AS
   PROCEDURE test_proc (out_cur OUT sys_refcursor);
END;
/

CREATE OR REPLACE PACKAGE BODY test_pkg
AS
   PROCEDURE test_proc (out_cur OUT sys_refcursor)
   AS
   BEGIN
      OPEN out_cur FOR
         SELECT object_id, object_type, object_name
           FROM all_objects
          WHERE ROWNUM &lt;= 15;
   END test_proc;
END test_pkg;
/
&lt;/pre&gt;

&lt;p&gt;you would then use the same ColdFusion code to call the procedure and access its returned query.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes. In fact, we do that all the time. I&#8217;m not sure what you mean by &#8220;no luck&#8221;.  Here is an example of a procedure returning a weak ref cursor:</p>
<pre>
CREATE OR REPLACE PACKAGE test_pkg
AS
   PROCEDURE test_proc (out_cur OUT sys_refcursor);
END;
/

CREATE OR REPLACE PACKAGE BODY test_pkg
AS
   PROCEDURE test_proc (out_cur OUT sys_refcursor)
   AS
   BEGIN
      OPEN out_cur FOR
         SELECT object_id, object_type, object_name
           FROM all_objects
          WHERE ROWNUM < = 15;
   END test_proc;
END test_pkg;
/
</pre>
<p>you would then use the same ColdFusion code to call the procedure and access its returned query.</p>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Dugas</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/#comment-51502</link>
		<dc:creator>Jeff Dugas</dc:creator>
		<pubDate>Fri, 07 Sep 2007 16:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-51502</guid>
		<description>&lt;p&gt;Is there a way to do the same thing via a stored procedure, returning the ref cursor as an output parameter? I have tried converting this function into a sproc with one output parameter with no luck (using Oracle 10g and CF7).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is there a way to do the same thing via a stored procedure, returning the ref cursor as an output parameter? I have tried converting this function into a sproc with one output parameter with no luck (using Oracle 10g and CF7).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
