Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: ENABLE NOVALIDATE behaviour bug
>
> One thought about adding a column with a default:
> the table has to be locked while every row is updated,
> and if the update fails, you have a massive rollback.
>
> If this is not something you can spare the time for,
> you might still want to do something like the following:
>
> add column
> add constraint disable novalidate
> update the column where null in batches - committing
> add the default
> enable the constraint novalidate
> update any columns still null
> validate the constraint
>
>
> Regards
>
> Jonathan Lewis
>
Thanks Jonathan. I had come up with the same solution as Tanel ( for once
).
We need to be reminded to ask the questions:
"How can this fail?"
and
"What are the consequences of failure?"
Jared
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Jun 29 2004 - 17:38:46 CDT