Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> DBMS_OUTPUT and SYS_REFCURSOR

DBMS_OUTPUT and SYS_REFCURSOR

From: <seanbrasher_at_gmail.com>
Date: 10 Mar 2006 14:41:21 -0800
Message-ID: <1142030481.428137.307410@e56g2000cwe.googlegroups.com>


I have written a procedure that accepts a SYS_REFCURSOR as an input parameter and writes out the contents of that cursor using a FETCH and DBMS_OUTPUT. This works great as long as you know the structure of the cursor ahead of time.

I need to write a function that will work when I do not know the structure of the SYS_REFCURSOR. That means that I do not know what kind of variables to FETCH the cursor into. Is there some way to fetch the cursor into an array or generic table object, and then loop through that object to do the DBMS_OUTPUT step? Received on Fri Mar 10 2006 - 16:41:21 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US