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: Is ALTER TABLE ADD COLUMN a time-consuming operation ?

Re: Is ALTER TABLE ADD COLUMN a time-consuming operation ?

From: Tim Sawmiller <sawmillert_at_state.mi.us>
Date: Thu, 05 Apr 2001 04:34:13 -0700
Message-ID: <F001.002E242D.20010405043029@fatcity.com>

If the new column is nullable, it should very little time, since all that happens is an update to the dictionary. If it is not null, then the column will have to be physically added to each row with a value.

>>> EShevtsov_at_flagship.ru 04/05/01 07:15AM >>>
Hello List

We are going to change structure of a big table (more than 250.000.000 rows).
We need to add a column with NUMBER type. I'm unclear how Oracle do this operation.  Does it mean that Oracle have to read and reformat all table blocks in order to update each row header? If yes, I can suggest that estimation of the operation's time is about time of Full Table Scan on the table.
Is it correct? Please explain.

Ed

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Shevtsov, Eduard
  INET: EShevtsov_at_flagship.ru 

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: Tim Sawmiller
  INET: sawmillert_at_state.mi.us

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 Thu Apr 05 2001 - 06:34:13 CDT

Original text of this message

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