Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How does Oracle store NUMBER datatypes internally?

RE: How does Oracle store NUMBER datatypes internally?

From: Norrell, Brian <BNorrell_at_QuadraMed.com>
Date: Wed, 11 Jul 2001 10:56:53 -0700
Message-ID: <F001.00347A4C.20010711103233@fatcity.com>

Without checking the manual (corrections welcome):

Byte 1: number of bytes for storage (# of digits divided by 2) Byte 2: where the decimal goes (not sure of exact format) Byte 3-x: pairs of digits

1576.89
gets stored something akin to:

decimal:        4 2(4?) 15 76 89
HEX:            04 02 0f 4c 59

The key point is the pairing of digits into values in the range of 0 to 99 that waste minimal space in the byte while being quick to retrieve in human readable format. The big drawback here is that almost every mathematical function is more cumbersome in this notation, and therefore slower.

Brian Norrell
Manager, MPI Development
QuadraMed
511 E John Carpenter Frwy, Su 500
Irving, TX 75062
(972) 831-6600

-----Original Message-----
Sent: Wednesday, July 11, 2001 11:56 AM
To: Multiple recipients of list ORACLE-L

Can someone point me a document or something that explains how does Oracle store NUMBER datatypes internally?

TIA



Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente - http://messenger.yahoo.es
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Pablo=20ksksksk?=
  INET: p_rodri99_at_yahoo.es

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: ListGuru_at_fatcity.com (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: Norrell, Brian INET: BNorrell_at_QuadraMed.com 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: ListGuru_at_fatcity.com (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).
Received on Wed Jul 11 2001 - 12:56:53 CDT

Original text of this message

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