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

Home -> Community -> Usenet -> c.d.o.server -> Re: Why is UGA size so large?

Re: Why is UGA size so large?

From: Noons <wizofoz2k_at_yahoo.com.au>
Date: Sat, 02 Apr 2005 15:20:30 +1000
Message-ID: <424e2b9d$0$1886$5a62ac22@per-qv1-newsreader-01.iinet.net.au>


Marcel D?rr apparently said,on my timestamp of 1/04/2005 6:43 PM:

> /* only if we remove the last row, the UGA size will shrink again

> */

> globalTable.delete( globalTable.first);
> OutputUGASize( 'UGA after deleting whole table');
> dbms_session.free_unused_user_memory;
> OutputUGASize( 'UGA after DBMS_Session.free_unused_memory');
> end AllocateTable;

There you go: remove the last row and extend again. ;) That should solve your problem. I do recall this being documented somewhere in one of the old PL/SQL manuals. Only a total delete frees up the space. The other way used to be to keep an empty table around, same definition, and copy it to the large PL/SQL table. That shrunk the size, or so we were told.

Good piece of investigation you did!

-- 
Cheers
Nuno Souto
in sunny Sydney, Australia
wizofoz2k_at_yahoo.com.au.nospam
Received on Fri Apr 01 2005 - 23:20:30 CST

Original text of this message

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