Space Estimation Performance (numbers)

2001-05-21 Thread Walter K

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 1
does not seem to take up the same amount of space as
9.

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).



RE: Space Estimation Performance (numbers)

2001-05-21 Thread Toepke, Kevin M

Walter:

You use the VSIZE() function. And you are right about 1 not taking the
same amount of size as 9. 1 uses 2 bytes and 9 uses 4.

SQL select vsize(1), vsize(9) from dual;

VSIZE(1) VSIZE(9)
 
   24

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 1
does not seem to take up the same amount of space as
9.

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).