Solved

Convert a pipelined table in a ref cursor

Posted on 2012-03-11
4
325 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 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Workhours Count beetween Workhours 3 49
oracle collections 2 41
oracle forms question 22 60
Reference datasets inside PL/SQL cursor and dumping queried datasets 3 51
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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 how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

739 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