Re: ALTER TABLE ADD columns in parallel?

From: Rich Jesse <rjoralist3_at_society.servebeer.com>
Date: Wed, 5 Mar 2014 13:06:12 -0600 (CST)
Message-ID: <f78500258cb870810226313aba565a1d.squirrel_at_society.servebeer.com>



Mark replies:

> If you can separate the column add and the default, it will run w/
> DDL-only update, and not require the NOT NULL.
>
> SQL> set timing on
> SQL> alter table testme add(blah2 nchar(1));
>
> Table altered.
>
> Elapsed: 00:00:00.01
> SQL> alter table testme modify(blah2 default ' ');
>
> Table altered.
>
> Elapsed: 00:00:00.01

A line from the movie "O Brother Where Art Thou?" comes to mind: "That don't make no kinda sense."

While I can't use that method, I sure want to test it now!

Thanks!

Rich

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Mar 05 2014 - 20:06:12 CET

Original text of this message