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: Pipelined functions

RE: Pipelined functions

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Wed, 10 Dec 2003 10:29:34 -0800
Message-ID: <F001.005D972B.20031210102934@fatcity.com>




Pipelined functions



Doh !!
 
I just figured it out .. "set arraysize 1" was the missing link ... one guy replied to my posting on forum://Metalink:oracle_plsql that it might be client side caching and that prompted me to experiment with arraysize.
 
So, it  was an issue with sqlplus setting and not pipelining, which I am happy to report works just fine ...  now lines for attempt 1 appear BEFORE attempt 2 (each attempt compiles invalid objects in the database), previously they used to appear at the same time. e.g.
 
13:18:20 SQL> set heading off pagesize 0 trimspool on line 200 arraysize 1
13:18:24 SQL> select * from table(system.dbf_compile_invalid());
--
-- Compile Attempt [1] Found 3 invalid objects.
-- Initial invalids "3", now "3". [time:    2.000 sec.]
--
-- Compile Attempt [2] Found 3 invalid objects.
-- Initial invalids "3", now "3". [time:    2.000 sec.]
--
-- # Of invalid objects is constant, so I'll stop now with "3" invalids.
--
-- Outputting a list of commands to recompile remaining invalid objects.
-- Listing Commands to be executed ...
--
-- select * from table(system.dbutil.show_errors(666615));
ALTER PACKAGE "SQLAB"."QUEST_SL_ERRORS_PKG" COMPILE BODY REUSE SETTINGS -- 666615;
--
-- select * from table(system.dbutil.show_errors(666649));
ALTER PACKAGE "SQLAB"."QUEST_SL_SCHEDULED_COLLECTOR" COMPILE BODY REUSE SETTINGS -- 666649;
--
-- select * from table(system.dbutil.show_errors(666662));
ALTER PACKAGE "SQLAB"."QUEST_SL_USER_MANAGER" COMPILE BODY REUSE SETTINGS -- 666662;
-- End Of Listing ...
--
Compile Invalid Objects, ESPN Oracle Utilities, © ESPN 2003
I feel so stupid now that I'll go home in an hour.
Raj
--------------------------------------------------------------------------------
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !
-----Original Message-----
From: Jamadagni, Rajendra
Sent: Wednesday, December 10, 2003 12:59 PM
To: Multiple recipients of list ORACLE-L
Subject: Pipelined functions

I have a question related to pipelined functions ...

I have a function which performs a task in a loop. I have piped messages at the beginning and end of the loop and expect them to appear as soon as they are piped. But there seems to be a difference of opinion between oracle's and my definition of "as soon as". I see these messages appear after 2/3 loops instead of each loop.

Does anyone know why this should happen? Any way to trace the piped messages? 10046 doesn't cut it for me. BTW this is 9202. I did search for Metalink for bugs but didn't find any obvious ones. Anyone know the internals (or heard any rumors) of pipelining ... like is there a buffer size, when reached messages are output? something like that?

Raj
--------------------------------------------------------------------------------
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !


**************************************************************************************
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************4


**************************************************************************************
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************5
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Dec 10 2003 - 12:29:34 CST

Original text of this message

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