Go to the FreeLists Home Page Home Signup Help Login
 



[oracle-l] || [Date Prev] [08-2006 Date Index] [Date Next] || [Thread Prev] [08-2006 Thread Index] [Thread Next]

Re: Add column(s) to an existing table

  • From: "Alex Gorbachev" <gorbyx@xxxxxxxxx>
  • To: Roger.Xu@xxxxxxxxxxx
  • Date: Tue, 1 Aug 2006 23:59:04 +0200
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@xxxxxxxxxxx>:
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






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.