Oracle   Home  

 

Oracle Database 9i, 10g, 11g

Oracle Data Warehouse & BI

Oracle Applications EBS 11i, R12

 Oracle Middleware

SQL & PL/SQL

UNIX/ Linux

   Home  >  Oracle Database Administration (DBA)  >  Scripts  >  Enable/ disable constraints on a table

 

Oracle 10g, 11g Database Administration (DBA): Scripts

Enable/ disable constraints on a table

 

Generate the statements needed to enable a specific constraint type on a specific table:

 

SELECT 'alter table '  || table_name || ' ENABLE constraint '  || constraint_name || ';'  statements
FROM dba_constraints
WHERE owner = 'SCOTT'

      AND constraint_type = 'C'

      AND table_name = 'EMP';

 

 

Generate the statements needed to disable a specific constraint type on a specific table:

 

SELECT 'alter table '  || table_name || ' DISABLE constraint '  || constraint_name || ';'  statements
FROM dba_constraints
WHERE owner = 'SCOTT'

      AND constraint_type = 'C'

      AND table_name = 'EMP';

 

 

 

Oracle Database 9i, 10g, 11g

Oracle Data Warehouse & BI Oracle Applications EBS 11i, R12  Oracle Middleware

SQL & PL/SQL

UNIX/ Linux

   Home  >  Oracle Database Administration (DBA)  >  Scripts  >  Enable/ disable constraints on a table

 

 

Different Romanian Links/ Linkuri romanesti diferite

  1. Invata limba engleza (Learn English language if you are Romanian)

  Doresti un proiect de arhitectura ieftin (pentru zonele Buzau, Bucuresti sau Prahova) ?

Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk. Copyright (c) 2009-2011 Paul Catalin Tomoiu. All rights reserved.