Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 23041 invoked from network); 19 Sep 2007 14:44:53 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 19 Sep 2007 14:44:49 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A783075DB48;
 Wed, 19 Sep 2007 15:44:44 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 09983-07; Wed, 19 Sep 2007 15:44:44 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1AC3675D342;
 Wed, 19 Sep 2007 15:44:44 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 19 Sep 2007 14:59:14 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D17D875CCC8
 for <oracle-l@freelists.org>; Wed, 19 Sep 2007 14:20:07 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 25707-05 for <oracle-l@freelists.org>;
 Wed, 19 Sep 2007 14:20:07 -0400 (EDT)
Received: from mail87.messagelabs.com (mail87.messagelabs.com [216.82.250.19])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id 6F20675BB20
 for <oracle-l@freelists.org>; Wed, 19 Sep 2007 14:20:06 -0400 (EDT)
X-VirusChecked: Checked
X-Env-Sender: patrick.elliott@medtronic.com
X-Msg-Ref: server-10.tower-87.messagelabs.com!1190225999!52604807!1
X-StarScan-Version: 5.5.12.14.2; banners=-,-,-
X-Originating-IP: [144.15.156.71]
Received: (qmail 24297 invoked from network); 19 Sep 2007 18:20:05 -0000
Received: from mspinfra3.medtronic.com (HELO mspinfra3.medtronic.com) (144.15.156.71)
  by server-10.tower-87.messagelabs.com with AES256-SHA encrypted SMTP; 19 Sep 2007 18:20:05 -0000
Received: from MSPM1BMSGH02.ent.core.medtronic.com (localhost [127.0.0.1])
 by mspinfra3.medtronic.com (8.13.6/8.13.6) with ESMTP id l8JIJquT002001;
 Wed, 19 Sep 2007 13:19:59 -0500 (CDT)
Received: from MSPM1BMSGM09.ent.core.medtronic.com ([172.24.113.113]) by MSPM1BMSGH02.ent.core.medtronic.com with Microsoft SMTPSVC(6.0.3790.2499);
	 Wed, 19 Sep 2007 13:19:01 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis
Subject: RE: Parameterized Views
Date: Wed, 19 Sep 2007 13:19:00 -0500
Message-ID: <302F06193D7F4D48ABC997408E786BD002759466@MSPM1BMSGM09.ent.core.medtronic.com>
In-Reply-To: <46F15E5C.3020401@rice.edu>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Parameterized Views
References: <607D6181D9919041BE792D70EF2AEC48242F1C@LIMENS.sivsa.int> <46F15E5C.3020401@rice.edu>
From: "Elliott, Patrick" <patrick.elliott@medtronic.com>
To: <mhyder@rice.edu>, "Alvaro Jose Fernandez" <alvaro.fernandez@sivsa.com>
Cc: <oracle-l@freelists.org>
X-OriginalArrivalTime: 19 Sep 2007 18:19:01.0109 (UTC) FILETIME=[8D777A50:01C7FAE9]
X-archive-position: 1720
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: patrick.elliott@medtronic.com
Precedence: normal
Reply-to: patrick.elliott@medtronic.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain


What you want is a function that returns a refcursor.  You will need to look in the PL/SQL documentation or check out asktom to see how this is done.  


Pat

-----Original Message-----
From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] On Behalf Of Mir M. Mirhashimali
Sent: Wednesday, September 19, 2007 12:38 PM
To: Alvaro Jose Fernandez
Cc: oracle-l@freelists.org
Subject: Re: Parameterized Views

Hi Alvaro,

I mean i have a SQL statement something like this

select delegate_userid, orgid
  from table1
 where loginid = 'SOMEUSER'
union
select delegate_userid, orgid
  from table2
 where loginid = 'SOMEUSER'
union
select delegate_userid, orgid
  from table3
 where loginid = 'SOMEUSER'

I want to create the above sql as a view and want to pass the 'SOMEUSER'
as a parameter to the view.

Thanks

--
Mir M. Mirhashimali
Oracle Systems Manager
Database Architecture, Enterprise Applications Rice University
(713) 348 6365



Alvaro Jose Fernandez wrote:
> Hello Mir,
>
> I don't understand exactly the meaning of a parametrized view. Could you elaborate more on this?
>
> regards
> alvaro
>
> -----Mensaje original-----
> De: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] En nombre de Mir M. Mirhashimali
> Enviado el: miércoles, 19 de septiembre de 2007 18:47
> Para: oracle-l@freelists.org
> Asunto: Parameterized Views
>
> I was wondering if it is possible to parameterizes a view. did some
> googling but did not find any satisfactory results.
>
>  
--
http://www.freelists.org/webpage/oracle-l



___________________________________________________________________________________________________
CONFIDENTIALITY AND PRIVACY NOTICE
Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records.

To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com
--
http://www.freelists.org/webpage/oracle-l


