Thanks, but the table doesn't exist yet. Also, I need
to estimate the space needs for a column of a numeric
datatype, not the row itself.

--- John Lewis <[EMAIL PROTECTED]> wrote:
> Oracle stores the avg_row_length in all_tables view.
> Use analyze_schema to get the most recent numbers.
> 
> -----Original Message-----
> Sent: Monday, May 21, 2001 12:12 PM
> To: Multiple recipients of list ORACLE-L
> 
> 
> Thanks for the info. I know about the VSIZE
> function,
> but "how" do I estimate the amount of space
> manually?
> What about negatives, fractional values, etc.? These
> all require differing amounts of space.
> 
> Thanks again.
> Walt
> 
> 
> 
> --- "Toepke, Kevin M" <[EMAIL PROTECTED]>
> wrote:
> > Walter:
> > 
> > You use the "VSIZE()" function. And you are right
> > about 10000 not taking the
> > same amount of size as 99999. 10000 uses 2 bytes
> and
> > 99999 uses 4.
> > 
> > SQL> select vsize(10000), vsize(99999) from dual;
> > 
> > VSIZE(10000) VSIZE(99999)
> > ------------ ------------
> >            2            4
> > 
> > Kevin
> > 
> > -----Original Message-----
> > Sent: Monday, May 21, 2001 1:56 PM
> > To: Multiple recipients of list ORACLE-L
> > 
> > 
> > Hi,
> > 
> > How do I calculate the amount of physical space
> > required for storing a number? (i.e. NUMBER,
> > NUMBER(5), NUMBER(10,5), etc.) I believe Oracle
> uses
> > "2's compliment" for storing numbers. A value of
> > 10000
> > does not seem to take up the same amount of space
> as
> > 99999.
> > 
> > TIA!
> > -wk
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> > prices
> > http://auctions.yahoo.com/
> > -- 
> > Please see the official ORACLE-L FAQ:
> > http://www.orafaq.com
> > -- 
> > Author: Walter K
> >   INET: [EMAIL PROTECTED]
> > 
> > Fat City Network Services    -- (858) 538-5051 
> FAX:
> > (858) 538-5051
> > San Diego, California        -- Public Internet
> > access / Mailing Lists
> >
>
--------------------------------------------------------------------
> > 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.com
> > -- 
> > Author: Toepke, Kevin M
> >   INET: [EMAIL PROTECTED]
> > 
> > Fat City Network Services    -- (858) 538-5051 
> FAX:
> > (858) 538-5051
> > San Diego, California        -- Public Internet
> > access / Mailing Lists
> >
>
--------------------------------------------------------------------
> > 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).
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
> -- 
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> -- 
> Author: Walter K
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX:
> (858) 538-5051
> San Diego, California        -- Public Internet
> access / Mailing Lists
>
--------------------------------------------------------------------
> 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.com
> -- 
> Author: John Lewis
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX:
> (858) 538-5051
> San Diego, California        -- Public Internet
> access / Mailing Lists
>
--------------------------------------------------------------------
> 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).


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Walter K
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

Reply via email to