Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why is UGA size so large?
Marcel D?rr apparently said,on my timestamp of 6/04/2005 1:28 AM:
>>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. >>
Not quite. IIRC (going back a while now, but it's hidden somewhere in
the PL/SQL manual) what you have to do is define an empty table.
One that you don't ever extend. Then when it comes time to
resize to zero the one you work with, you simply assign the empty
one to it. As in:
work_table := empty_table;
No indexes. This resets the work table to empty in one go, rather
than the more conventional:
for i in work_table.first..work_table.last loop
work_table[i].delete;
end loop;
> Now they use two times the same word "freed", when in fact there is
> quite a difference in what is happening if you delete the whole
> collection or only a part of it.
Semantics are the developer's worst enemy...
-- Cheers Nuno Souto in sunny Sydney, Australia wizofoz2k_at_yahoo.com.au.nospamReceived on Wed Apr 06 2005 - 08:10:23 CDT
![]() |
![]() |