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: Ref cursor length limit...

RE: Ref cursor length limit...

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Mon, 22 Nov 2004 14:44:54 +0000 (GMT)
Message-ID: <20041122144454.64520.qmail@web86904.mail.ukl.yahoo.com>


when you have

and COL in
 ( select X
   from table(plsql_table_type)
  )

you might want to consider the cardinality hint in the sub query so that Oracle knows how rows in the PL/SQL table are expected and can (hopefully) optimize accordingly. Alternatively, you could try the WITH clause to lean Oracle toward evaluating that stuff first into temp tables.

hth
connor


Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions" ISBN: 1590592174 web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"


                                  

ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 22 2004 - 08:41:25 CST

Original text of this message

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