Unix Technical Forum

Storage Allocation Question

This is a discussion on Storage Allocation Question within the Oracle Database forums, part of the Database Server Software category; --> Oracle 10g R 10.2.0.3, Windows 2003 Server I know if I have a VARCHAR2(50) column and I update it ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 07:40 AM
Dereck L. Dietz
 
Posts: n/a
Default Storage Allocation Question

Oracle 10g R 10.2.0.3, Windows 2003 Server

I know if I have a VARCHAR2(50) column and I update it from a 15 character
string to 25 character string that I'll use more storage space in the data
blocks.

If I have a NUMERIC(10) column and I update it from a 0 value to a non-zero
value will that use more storage space or will the allocation for it being
NUMERIC(10) already have the storage space allocated?

Thanks.

P.S.: What is it with all these MI5 posts?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 07:40 AM
DA Morgan
 
Posts: n/a
Default Re: Storage Allocation Question

Dereck L. Dietz wrote:
> Oracle 10g R 10.2.0.3, Windows 2003 Server
>
> I know if I have a VARCHAR2(50) column and I update it from a 15 character
> string to 25 character string that I'll use more storage space in the data
> blocks.
>
> If I have a NUMERIC(10) column and I update it from a 0 value to a non-zero
> value will that use more storage space or will the allocation for it being
> NUMERIC(10) already have the storage space allocated?
>
> Thanks.
>
> P.S.: What is it with all these MI5 posts?


Depends. To determine how a number responds use DUMP.

SELECT dump(1) FROM dual;
SELECT dump(10) FROM dual;
SELECT dump(100) FROM dual;
SELECT dump(1000) FROM dual;
SELECT dump(1.1) FROM dual;
SELECT dump(1.11) FROM dual;
SELECT dump(11.111) FROM dual;

MI5? Some synapse-free troll. Please join us in reporting to spamcops
or other.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 07:40 AM
Brian Peasland
 
Posts: n/a
Default Re: Storage Allocation Question

Dereck L. Dietz wrote:
> Oracle 10g R 10.2.0.3, Windows 2003 Server
>
> I know if I have a VARCHAR2(50) column and I update it from a 15 character
> string to 25 character string that I'll use more storage space in the data
> blocks.
>
> If I have a NUMERIC(10) column and I update it from a 0 value to a non-zero
> value will that use more storage space or will the allocation for it being
> NUMERIC(10) already have the storage space allocated?
>
> Thanks.
>
> P.S.: What is it with all these MI5 posts?
>
>


Numbers are stored as a mantissa and exponent. If the size of those do
not change, then your storage requirements do not change.

Metalink Note:143256.1 has some more details which may be of interest to
you.

HTH,
Brian


--
================================================== =================

Brian Peasland
dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown

--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com