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: Add column(s) to an existing table

Re: Add column(s) to an existing table

From: Alex Gorbachev <gorbyx_at_gmail.com>
Date: Tue, 1 Aug 2006 23:59:04 +0200
Message-ID: <c2213f680608011459l1e1ae279me6718ed6a08b33cd@mail.gmail.com>


The columns will be created by default nullable and this will be very fast. Note, that Oracle still will nees an exclusive lock on the table for a very short moment (like a second). After that you can start populating columns.

What you should take care of is that you don't cause a situation with many migrated rows when populating these columns later.

2006/8/1, Roger Xu <Roger.Xu_at_dp7upbg.com>:
> Does the following SQL touch every single row immediately?
>
> ALTER TABLE supplier
> ADD (supplier_tax_id varchar2(10),
> supplier_timezone varchar2(5) );

-- 
Best regards,
Alex Gorbachev

http://blog.oracloid.com
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Aug 01 2006 - 16:59:04 CDT

Original text of this message

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