Ryan,

As Jonathan mentioned, global PL/SQL tables are allocated from the UGA.
In MTS, they will be allocated from the SGA's large pool (or, in the event one
has not been defined, which is a big no-no for MTS, then from the shared pool.)  Note 
in this case, if the large_pool is insufficient to satisfy the
demands, the user's session will encounter ORA-4031.  

In dedicated server, the UGA is allocated in the PGA.  The user's session
will allocate more private memory (by growing the PGA heap) from system
memory.  If/when the PL/SQL table grows so large as the process can no longer
allocate memory from the O/S, then the user's session will encounter ORA-4030.

Note the slightly different allocation mechanism, and the different Oracle
errors encountered (4031 vs. 4030).  Based on the fact that you're 
encountering ORA-4030, I'd guess that your user is connect via dedicated
server.

Hope that helps,

-Mark

PS  Note that when this error occurs, if you simply kill the background
process of the session that has allocated all that RAM, it should immediately
be freed and the problem should clear up.  It should not be necessary to
bounce the entire instance, just the problem user.



-----Original Message-----
From:   Ryan [mailto:[EMAIL PROTECTED]
Sent:   Sat 1/10/2004 4:34 PM
To:     Multiple recipients of list ORACLE-L
Cc:     
Subject:        Re: pga workarea and ora-04030
I have seen people bulk collect into pl/sql tables so much data that you
cannot even connect to the server. So I'm assuming that ones the UGA fills
up, Oracle will allocate whatever unused memory is left on the server for
pl/sql tables?
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Saturday, January 10, 2004 4:04 PM


>
> In the UGA, I should think (which also means the
> SGA if you are running MTS).  It can't be in the
> PGA (ignoring the fact that the UGA is in the PGA
> for non-MTS) or you couldn't have global pl/sql
> tables that persist across database calls.
>
> Regards
>
> Jonathan Lewis
> http://www.jlcomp.demon.co.uk
>
>   The educated person is not the person
>   who can answer the questions, but the
>   person who can question the answers -- T. Schick Jr
>
>
> Next public appearance2:
>  March 2004 Hotsos Symposium - Keynote
>  March 2004 Charlotte NC - OUG Tutorial
>  April 2004 Iceland
>
>
> One-day tutorials:
> http://www.jlcomp.demon.co.uk/tutorial.html
>
>
> Three-day seminar:
> see http://www.jlcomp.demon.co.uk/seminar.html
> ____UK___February
>
>
> The Co-operative Oracle Users' FAQ
> http://www.jlcomp.demon.co.uk/faq/ind_faq.html
>
>
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
> Sent: Saturday, January 10, 2004 6:04 PM
>
>
> > Where does oracle store pl/sql tables? I have run into problems with
> > developers doing massive bulk collects and I have to bounce the entire
> > server...
> >
> >
> > ----- Original Message -----
> > To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
> > Sent: Saturday, January 10, 2004 12:54 PM
> >
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jonathan Lewis
>   INET: [EMAIL PROTECTED]
>
> 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: [EMAIL PROTECTED] (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ryan
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


<<winmail.dat>>

Reply via email to