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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: View based on a procedure

Re: View based on a procedure

From: Mladen Gogala <mgogala_at_verizon.net>
Date: Mon, 19 Feb 2007 09:27:35 -0500
Message-id: <1171895255l.2966l.0l@medo.noip.com>


On 02/19/2007 02:06:26 AM, M. Alroy Mascrenghe wrote:
> Guys
> Is there a way to base a view/materialised view on a procedure? Everytime the view is selected from the procedure must be run. The procedure does a lot of heavy calculations writes to a table. And the view should read from that table. I know DML in select wont work. Is there a workaround, can use some other structure instead of a table in the procedure maybe like (varrays)?
>

You can create a pipelined procedure that returns PL/SQL table and then select * from table(proc), in a very similar fashion to select * from table(dbms_xplan.display);

-- 
Mladen Gogala
http://www.mladen-gogala.com

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Feb 19 2007 - 08:27:35 CST

Original text of this message

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