I love those demystifications !!!
Andre, June 06, 2002 - 1:23 pm UTC
I get "mystified" at how people think up such stuff. Have I told you about a former (luckily) boss of mine, a "senior" DBA, who asked me to reduce the number of free-lists because they were taking up too much space ? Yep, believe me, it's the naked truth...
June 06, 2002 - 5:43 pm UTC
Well, there is a nuggest of truth in there as well.
A session is associated with a freelist. If you have 10 freelists and a single session doing inserts -- it'll only use one of the freelists -- the others will not be used. We'll grab a new extent without considering the existing freespace that is there.
So the freelists don't take up space really -- but they can lead to "less efficient space utilization" if you have way more then you really need. (stress CAN -- eg might -- eg don't worry about it 99.999% of the time)
Great, thanks.
Owen, June 06, 2002 - 2:25 pm UTC
That's much what I had expected, but it's great to have it confirmed. Thanks very much!
continued
Andre, June 07, 2002 - 3:05 pm UTC
Thanks for the feedback on the freelist stuff. In fact I had heard of it and it makes sense, but surely it wasn't the case with my boss. As a matter of fact he had no idea what a free list was all about...
Package size
mani, March 23, 2004 - 12:39 pm UTC
Hi Tom,
We provide software services to our clients. One of the modules is reporting.
Currently we have created one package for each client.
Each package can have 15 to 20 huge procedures ( approx 150 lines each procedure ). Each procedure relates to custom report.
1) A client user may just request one report, in this case since the report procedure is in package, does the entire package get loaded in memory ( I know 4K chunks ).
That means extra 4K chunks are allocated , where in first place get could be avioded.
2) I know you say its common sense to group procedures in packages, does this mean only dependent procedures or procedures which belong to one transaction be put in one package.
3) In my case the Client wise package is a business wise logical package , but since client users may call reports independently the procedures doesn't seem to be logically
bound in terms of database angle.
4) When a procedure ( in a package ) is called , does oracle load the entire package in memory or just that procedure.
Please advice,
Mani
March 23, 2004 - 5:31 pm UTC
loads by piece, but 150 lines is hardly "huge".
use the package to make your life "easier", do what makes most sense from a programming point of view.
Mixed Sizes of Packages causes inefficiency?
Steve Booth, April 06, 2004 - 5:00 pm UTC
Hope you're having a good vacation. Thanks for the info regarding package sizes. If you wouldn't mind, do you have any rule of thumb regarding overall sizes of packages? What's too big? Does "Debug" make much of a difference? I used a compile command without seeing any change so I probably screwed it up.
I had been looking for where I could find out package sizes. Thanks again!
April 07, 2004 - 8:49 am UTC
packages (plsql) is paged in in pieces. the overall sizes do not matter, they are all managed in about 4k chunks.