Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Constraint Enable/Disable
Hi,
Hope these script will help you..
Disable
Constraints..
select 'alter table &tab disable constraint
'||constraint_name||' cascade;' from dba_constraints where
owner = upper('&owner') and table_name = upper('&tab')
/
Enable
Constraints
select 'alter table &tab enable constraint
'||constraint_name||';' from dba_constraints where owner =
upper('&owner') and table_name = upper('&tab') /
Try these in your test environment.. and have
fun
Nikunj
------------------------------------Make a FREE long distance call fromyour PC!<A
Sent: Thursday, November 01, 2001 08:15
PM
Subject: Constraint Enable/Disable
Hi,
Is there a way to disable all constraints, and then enable them all
again?
Thanx
Sujatha
Received on Thu Nov 01 2001 - 22:51:22 CST
![]() |
![]() |