<?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:media="http://search.yahoo.com/mrss/"
		>
<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>
	<lastBuildDate>Tue, 24 Jan 2012 20:49:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Aruna</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/comment-page-1/#comment-53082</link>
		<dc:creator>Aruna</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=81#comment-53082</guid>
		<description>&lt;p&gt;I want to lock the rows for update, while doing an update from cold fusion. My back end is oracle. Do you know how to use the select for update in procedures that I can call in CF?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I want to lock the rows for update, while doing an update from cold fusion. My back end is oracle. Do you know how to use the select for update in procedures that I can call in CF?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Aust</title>
		<link>http://awads.net/wp/2005/07/19/oracle-ref-cursor-and-coldfusion/comment-page-1/#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-page-1/#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-page-1/#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&#039;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-page-1/#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-page-1/#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&#039;s Detail is:
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to &#039;TEST_PROC&#039; 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&#039;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>

<p>The exception&#8217;s Detail is:
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-page-1/#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&#039;m not sure what you mean by &quot;no luck&quot;.  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-page-1/#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>

