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: AVG_ROW_LEN inaccurate?

Re: AVG_ROW_LEN inaccurate?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 8 Jan 2001 19:12:31 -0000
Message-ID: <978980983.4442.0.nnrp-07.9e984b29@news.demon.co.uk>

Apart from Brian's comment on vsize, you also have to remember that trailing nulls (i.e. blanks at the end of the row) take up no space at all - not even a length byte.

For most purposes, vsize + 1 is good
enough for most columns, then add
5 (two for the overhead, one for the
used column count, and two for the
row directory entry) is a good enough
approximation - especially if you only
sample a small percentage of the rows
anyway.

--
Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Practical Oracle 8i:  Building Efficient Databases

Publishers:  Addison-Wesley
See a first review at:
http://www.ixora.com.au/resources/index.htm#practical_8i
More reviews at: http://www.jlcomp.demon.co.uk/book_rev.html



John Dorlon wrote in message
<5k166.6705$ge4.3760840_at_news2.rdc2.tx.home.com>...

>Thanks Jonathan.
>
> Funny that VSIZE does not include that. Is there another function that
>does, or do I just have to add
>some decodes in my query to get the 1 or the 3 added in?
>
>-John
>
>
Received on Mon Jan 08 2001 - 13:12:31 CST

Original text of this message

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