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: Limits on PL/SQL block?

RE: Limits on PL/SQL block?

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Fri, 08 Aug 2003 09:39:33 -0800
Message-ID: <F001.005C9A9A.20030808093933@fatcity.com>


Talking about breaking up into blocks ...  

one of my seniors in early days in college told me 'Never write a function longer than one page'. I was troubled by that then, but now now. Now my screen resolution set to 1280x1024 I can use vi on x windows with small font size to write long procedures and still be in one page ...  

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-----
Sent: Friday, August 08, 2003 1:30 PM
To: Multiple recipients of list ORACLE-L

That Diana is a b.....Oooops, I forgot that English is not my native tongue.    

--
Mladen Gogala
Oracle DBA 


-----Original Message-----
Jamadagni, Rajendra
Sent: Friday, August 08, 2003 12:59 PM
To: Multiple recipients of list ORACLE-L



You want more cryptic answer ?? 

pl/sql block is limited by 64K Diana nodes. my guess is each node is a
token. No one will tell you what a Diana node is, but it is used to parse
pl/sql (after all it is modeled after ADA).

Only solution, instead of testing the limits, break the long code into
manageable chunks. The people who will maintain it will speak fondly about
you.

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----- 
Sent: Friday, August 08, 2003 11:39 AM 
To: Multiple recipients of list ORACLE-L 



I'm seeing a "PLS-00123 program too large" error. Oracle's 
documentation says that the actual limit on the size of 
the block is dependant on the mix of statements in the 
PL/SQL block. Does anyone know how Oracle determines this 
limit? Is it a pure size of PL/SQL block in bytes, or is 
it number of unique statements in the block, or is it 
dependant on how much redo that the block may generate? 

(I know the recommended solution is to modularize and 
break up the statements into multiple blocks, but I'd 
like to know what are the limits to give us a better 
idea of determining where to break up the blocks 
dynamically, so the answer I'm really looking for is 
what is the limit or how Oracle determines the size 
limit, and not workarounds, which we're exploring 
anyway.) 

TIA 

..Rudy 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net

<http://www.orafaq.net>
-- Author: Rudy Zung INET: rzung_at_printcafe.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com
<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). _____ Note: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. _____

-- 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 Fri Aug 08 2003 - 12:39:33 CDT

Original text of this message

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