Re: Disabling Constraints

2001-11-27 Thread Ruth Gramolini
Here is a script which generates all of the 'alter table' statements to drop the referential constrains. Spool if or cut and paste and you should be all set. select 'alter table schema.'||table_name||' disable constraint '||constraint_name||';' from dba_constraints where CONSTRAINT_TYPE in

RE: Disabling Constraints

2001-11-27 Thread Ken Janusz
Ruth: Thanks, I found this to work also. ALTER TABLE 'TABLE_NAME DISABLE CONSTRAINGT CONSTRAINT_NAME; Ken -Original Message- Sent: Tuesday, November 27, 2001 7:00 AM To: Multiple recipients of list ORACLE-L Subject:Re: Disabling Constraints Here is a script which

RE: Disabling Constraints

2001-11-27 Thread Ramon Estevez
PM Para: Multiple recipients of list ORACLE-L Asunto: Disabling Constraints I need to disable some constraints to load table data for my DB conversion. I cannot find the syntax to do this. I think it should be ALTER TABLE something. Thanks, Ken Janusz, CPIM Database Conversion Lead Sufficient

Disabling Constraints

2001-11-26 Thread Ken Janusz
I need to disable some constraints to load table data for my DB conversion. I cannot find the syntax to do this. I think it should be ALTER TABLE something. Thanks, Ken Janusz, CPIM Database Conversion Lead Sufficient System, Inc. Minneapolis, MN -- Please see the official ORACLE-L FAQ:

Re: Disabling Constraints

2001-11-26 Thread Kent Wayson
To disable a constraint: alter table table-name disable constraint constraint-name ; should do the trick. Assuming you don't have any constraint violations, the following should work just fine to enable the constraint: alter table table-name enable constraint constraint-name ; Kent

Re: Disabling Constraints in a Schema!..??

2001-03-04 Thread Surjit Sharma
Arul You can use the following generic script to disable all the primary key and the corresponding foreign key constraints. set pages 0 feed off spool fk_dis.sql select 'alter table '||table_name || ' DISABLE constraint ' ||constraint_name ||' CASCADE '||';' from user_constraints ; spool off

Disabling Constraints in a Schema!..??

2001-03-02 Thread Arul kumar
Hi DBAs, We r using Oracle 8.1.6 . db. I would like to disable all the constraints on the Tables available under one schema. Is there any single command to do this in 8i . Any DBMS package available? Any other suggestions for doing the same?? Thank You. Arul. -- Please see the official

Re: Disabling Constraints in a Schema!..??

2001-03-02 Thread Joseph S. Testa
-- the FK select 'alter table '||table_name||' disable '||constraint_name||';' from user_constraints where constraint_type = 'R'; there is check constraints, primary key, and unique, but i'll not give you the entire answer. joe Arul kumar wrote: Hi DBAs, We r using Oracle 8.1.6 . db.