Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

enabling disabling of constraints.

947771Dec 25 2012 — edited Dec 25 2012
Hi,

i want to migrate some data so i want to disable and then enable constraints

so i am following.
step 1
ALTER TABLE dept
DISABLE CONSTRAINT dname_ukey;

step2
ALTER TABLE dept
ENABLE NOVALIDATE CONSTRAINT dname_ukey;

step3
ALTER TABLE dept
MODIFY CONSTRAINT dname_key VALIDATE;

Q1)my doubt is can i write
ALTER TABLE dept
ENABLE CONSTRAINT dname_ukey;
in step3 and which one is better when compaired to above.

Q2) disabling constraint drops indexs
so does enabling Constantin creates them.

Q3) how can i find non existence of index of any disabled constraint.


note: i have four types P,R,U,C Types of constraints.

yours sincerely

Edited by: 944768 on Dec 24, 2012 10:51 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 22 2013
Added on Dec 25 2012
3 comments
343 views