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!

ORA-00001 on a disabled constraint?

181493Jul 19 2006 — edited Jul 19 2006
Hi,

I have a warehouse application, and to load the data we first of all disable the constraints using dynamic SQL and EXECUTE IMMEDIATE (code is ALTER TABLE <<table_name>> DISABLE CONSTRAINT <<constraint>>). We loop through all constraints on the table.
Then we make the inserts - again using dynamic SQL (with an /* +APPEND */ hint, if that's relevant) and it's at this point that the procedure throws the ORA-00001 error.

Checking on the table I can see that the unique key is disabled, but the associated index still exists.

We are migrating this app to 10g from 8i, and it works fine on 8i. I have tried checking the user privileges are the same, but otherwise I don't understand.

TIA
David.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2006
Added on Jul 19 2006
4 comments
1,847 views