?
Solved

Convert a pipelined table in a ref cursor

Posted on 2012-03-11
4
Medium Priority
?
327 Views
Last Modified: 2013-02-26
Hi,

I would want to know; in Oracle 9i, how I could convert a PIPELINED table in a ref cursor for using of a application developed in .NET.

Thanks.

Javier A. Granda
0
Comment
Question by:javiergrandat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 20

Accepted Solution

by:
flow01 earned 1000 total points
ID: 37707761
I don't know .NET  but the basic conversion to a ref_cursor would be:

function rc return sys_refcursor
is
  l_cur sys_refcursor;
begin
    open l_cur for (select * from table(pl-function));
    return sys_refcursor;
end;
0
 
LVL 16

Assisted Solution

by:Wasim Akram Shaik
Wasim Akram Shaik earned 1000 total points
ID: 37708633
follow flow01 suggestion and after that check the below link

this link has further details on how to use the refcursors in dot net code..

http://www.oracle.com/technetwork/articles/dotnet/williams-refcursors-092375.html
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question