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: ENABLE NOVALIDATE behaviour bug

Re: ENABLE NOVALIDATE behaviour bug

From: <Jared.Still_at_radisys.com>
Date: Tue, 29 Jun 2004 15:35:30 -0700
Message-ID: <OFEC8472F4.993F04ED-ON88256EC2.007BF87D-88256EC2.007C1509@radisys.com>


>
> 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



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
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

Original text of this message

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