Solved

Convert a pipelined table in a ref cursor

Posted on 2012-03-11
4
322 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
4 Comments
 
LVL 20

Accepted Solution

by:
flow01 earned 250 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 250 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now