Speeding up enable of constraints

I have various constraints that used to take seconds and now are taking up to half an hr to enable. The data in the tables is static, it has increased or decreased. Does anyone know how to speed up the enabling of constraints on a table? What goes on behind the scenes after issuing alter table <table_name> enable constraint <constraint_name>;
Thankis

Dear HouseofHunger,
Please tell me if that online documentation is enough for you or not?
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_3001.htm#i2183600
+"+
+Restrictions on Modifying Constraints Modifying constraints is subject to the following restrictions:+
+*You cannot change the state of a NOT DEFERRABLE constraint to INITIALLY DEFERRED.+
+*If you specify this clause for an index-organized table, then you cannot specify any other clauses in the same statement.+
+*You cannot change the NOT NULL constraint on a foreign key column of a reference-partitioned table, and you cannot change the state of a partitioning referential constraint of a reference-partitioned table.+
+See Also:+
+"*Changing the State of a Constraint: Examples*"+
+"+
+"+
+Changing the State of a Constraint: Examples The following statement places in ENABLE VALIDATE state an integrity constraint named emp_manager_fk in the employees table:+
+ALTER TABLE employees+
+ENABLE VALIDATE CONSTRAINT emp_manager_fk+
+EXCEPTIONS INTO exceptions;+
+Each row of the employees table must satisfy the constraint for Oracle Database to enable the constraint. If any row violates the constraint, then the constraint remains disabled. The database lists any exceptions in the table exceptions. You can also identify the exceptions in the employees table with the following statement:+
+SELECT e.*+
+FROM employees e, exceptions ex+
+WHERE e.rowid = ex.row_id+
+AND ex.table_name = 'EMPLOYEES'+
+AND ex.constraint = 'EMP_MANAGER_FK';+
+The following statement tries to place in ENABLE NOVALIDATE state two constraints on the employees table:+
+ALTER TABLE employees+
+ENABLE NOVALIDATE PRIMARY KEY+
+ENABLE NOVALIDATE CONSTRAINT emp_last_name_nn;+
+This statement has two ENABLE clauses:+
+*The first places a primary key constraint on the table in ENABLE NOVALIDATE state.+
+*The second places the constraint named emp_last_name_nn in ENABLE NOVALIDATE state.+
+In this case, Oracle Database enables the constraints only if both are satisfied by each row in the table. If any row violates either constraint, then the database returns an error and both constraints remain disabled.+
+Consider the foreign key constraint on the location_id column of the departments table, which references the primary key of the locations table. The following statement disables the primary key of the locations table:+
+ALTER TABLE locations+
+MODIFY PRIMARY KEY DISABLE CASCADE;+
+The unique key in the locations table is referenced by the foreign key in the departments table, so you must specify CASCADE to disable the primary key. This clause disables the foreign key as well.+
+"+
Hope That Helps.
Ogan

Similar Messages

  • Estimate time to enable all constraints and create all indexes

    Hi,
    To prepare a project to export/import for a whole database,
    How can I estimate time required to enable all constraints and create all indexes
    * Assume one full table scan per one FK constraint
    * Assume one full table scan plus one sort/merge operation per one index
    * Check it out whether we can use parallel DDL feature to speed up enabling of FK constraints
    how can I use core schema (which will be exp/imp) in the production db to get needed metric for the calcualtion?
    thanks
    Jerry

    There is no definative way to find the time it takes to enable a constraint / create a Index
    It toatally depends on the Size of the table / execution plan / resources available (In terms of CPU and Physical Memory ) /
    Amount of Temporary tablespace

  • Trying to implement a ENABLE NOVALIDATE constraint.....

    Hi ,
    In order to see how the ENABLE NOVALIDATE constraint in the DEPT table of SCOTT schema , i followed the following steps:
    1)Disable state
    SQL> alter table dept modify constraint pk_dept disable;
    Table altered2)Perform the operation (insert a row in for which the deptno preexists )
    SQL> insert into dept(deptno,dname) values(10,'dname10');
    1 row inserted
    SQL> commit;
    Commit complete3)Enable novalidate state
    SQL> alter table dept modify constraint pk_dept novalidate;
    Table altered4)Enable state
    SQL> alter table dept modify constraint pk_dept enable;
    alter table dept modify constraint pk_dept enable
    ORA-02437:cannot validate (SCOTT.PK_DEPT) - primary key violatedHow can i solve the problem.....?????
    Many thanks,
    Simon

    Hi,
    I haven't found any use of the NOVALIDATE parameter in the constraint.....
    In Oracle doc ... it's pointed out:
    "When a constraint is in the enable novalidate state, all subsequent statements are checked for conformity to the constraint. However, any existing data in the table is not checked. A table with enable novalidated constraints can contain invalid data, but it is not possible to add new invalid data to it. Enabling constraints in the novalidated state is most useful in data warehouse configurations that are uploading valid OLTP data.
    Enabling a constraint does not require validation. Enabling a constraint novalidate is much faster than enabling and validating a constraint. Also, validating a constraint that is already enabled does not require any DML locks during validation (unlike validating a previously disabled constraint). Enforcement guarantees that no violations are introduced during the validation. Hence, enabling without validating enables you to reduce the downtime typically associated with enabling a constraint."
    I have followed the steps in my first post to run a test case in order to see that the sentence above in bold, is implemented....
    But an error is displayed.....
    What should i have to do......????
    Many thanks ,
    Simon

  • How can I enable a constraint even ORA-00054

    Dear,
    ALTER TABLE CLC_TRM_DTS_ATRBT
    MODIFY CONSTRAINT CLC_TRM_DTS_ATRBT_02_FK ENABLE;
    ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired.
    Any way to enable the constraint even any uncommited session or locked?
    Regards

    It is possible, for a busy database, that you will NEVER get the lock you need to enable the constraint. Just because one transaction finishes does not mean that another has not already started. Even a loop as Mr Chitale suggests may never succeed.
    The answer is to quiesce the database with ALTER SYSTEM QUIESCE RESTRICTED. It will hang until all active sessions have committed while preventing inactive sessions from waking up. Then kick off your ENABLE command, and in another session UNQUIESCE. This can be very quick, and your users may not even notice: their sessions will just appear to hang for a couple of seconds.
    John Watson
    Oracle Certified Master DBA

  • ALTER TABLE privilege and CREATE/DROP/ENABLE/DISABLE constraint privilege

    Hi,
    I am looking for some detailed info regarding the below previleges
    ALTER TABLE, CREATE CONSTRAINT, DROP CONSTRAINT, ENABLE CONSTRAINT AND DISABLE CONSTRAINT PRiVILEGES.
    I have two schemas 'A' and 'B', I want to provide user 'A' with Alter table, create or drop constraint,Enable or Disable constraint on schema B.
    Please let me know how to make this work.
    Thank you

    I got the answer for my second question, I have an option to grant 'Alter ANY table' privilege to the user.Yes, but you should not do that.
    Regarding question one, Suppose I have two schemas A and B and I want Schema A to have alter table privilege on all tables of Schema B.
    Can I do this in one command No
    or I need to grant alter on each table saperately?Yes
    If I am chosing the second option for each table saperately then whenever a table is added in schema B we need to grant privilege on that table as well.Yes. But nothing strange there. Designing and creating objects includes the privileges on them.
    If user A is granted with alter table privilege on a table which user B owns then can user A drop/create/enable/disable constraints for that table?Yes, isn't that what all this about?
    Again, letting one user alter the objects of another user is generally not such a good idea. Hope you see this from our discussion.
    Alter table privilege includes adding and dropping columns. This is why I suggested writing a procedure that does exactly what you need. And then grant execute on that to A.
    The best thing of course would be NOT TO disable the constraints, they are probably there for a reason.
    I am currently handling an issue where one session doing this, deadlocks with another session doing only selects - From other tables, that is!
    Regards
    Peter

  • Paralell in enable unique constraint

    TO use the feature of EXCEPTION into when creating unique index, I run the folllwing command to enable a unique constraints:
    alter table TEST_DUP2 enable constraint UNQ_TEST_DUP2     
    using index tablespace EDWSALESINDEX nologging
    EXCEPTIONS into exceptions
    This will create the unique index and when duplicate uniqe key encountered, the command fails and store the rowid of the duplicating row to exceptions table.
    Now I want to run this commnad in parallel to enhance performance. I tried
    alter table TEST_DUP2 enable constraint UNQ_TEST_DUP2     
    using index tablespace EDWSALESINDEX nologging PARALLEL
    EXCEPTIONS into exceptions
    and I got SQL Error: ORA-00933: SQL command not properly ended.
    Can this be done, or are there any worka around ?
    I do not want create unique index explicitly as that does not have the EXCEPTION into feature.
    Thanks

    Here is an example for exceptions,
    SQL> create table e( a number);
    Table created.
    SQL> alter table add constraint a_uk unique(a);
    alter table add constraint a_uk unique(a)
    ERROR at line 1:
    ORA-00903: invalid table name
    SQL> alter table e add constraint a_uk unique(a);
    Table altered.
    SQL> alter table e modify constraint a_uk disable;
    Table altered.
    SQL> host
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Aman>d:
    D:\>cd oracle\product\11.1.0\db_1\RDBMS\ADMIN
    D:\oracle\product\11.1.0\db_1\RDBMS\ADMIN>exit
    SQL> @utlexcpt.sql
    SP2-0310: unable to open file "utlexcpt.sql"
    SQL> host dir utlex*
    Volume in drive C is VAIO
    Volume Serial Number is 54A5-8EF0
    Directory of C:\Documents and Settings\Aman
    File Not Found
    SQL> host dir utl*
    Volume in drive C is VAIO
    Volume Serial Number is 54A5-8EF0
    Directory of C:\Documents and Settings\Aman
    File Not Found
    SQL> hist
    SP2-0042: unknown command "hist" - rest of line ignored.
    SQL> host
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Aman>d:\oracle\product\11.1.0\db_1\RDBMS\ADMIN
    'd:\oracle\product\11.1.0\db_1\RDBMS\ADMIN' is not recognized as an internal or extern
    operable program or batch file.
    C:\Documents and Settings\Aman>cd d:\oracle\product\11.1.0\db_1\RDBMS\ADMIN
    C:\Documents and Settings\Aman>sqlplus aman/aman
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Sep 15 22:02:20 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    SQL>
    SQL> d:\oracle\product\11.1.0\db_1\RDBMS\ADMIN
    SP2-0734: unknown command beginning "d:\oracle\..." - rest of line ignored.
    SQL> @d:\oracle\product\11.1.0\db_1\RDBMS\ADMIN\utlexcpt.sql
    Table created.
    SQL> insert into e values(1);
    1 row created.
    SQL> /
    1 row created.
    SQL> /
    1 row created.
    SQL> alter table e modify constraint a_uk  enable validate exceptions into exceptions;
    alter table e modify constraint a_uk  enable validate exceptions into exceptions
    ERROR at line 1:
    ORA-02299: cannot validate (AMAN.A_UK) - duplicate keys found
    SQL> select * from exceptions;
    ROW_ID             OWNER                          TABLE_NAME
    CONSTRAINT
    AAARXIAAGAAAAAVAAC AMAN                           E
    A_UK
    AAARXIAAGAAAAAVAAB AMAN                           E
    A_UK
    AAARXIAAGAAAAAVAAA AMAN                           E
    A_UK
    SQL> select * from exceptions;Its on 11106.The same must work on pre 11g also.Do this and let me know.
    Yup,Parallel is unimplemented surely enough,
    SQL> alter table e
      2  enable validate constraint a_uk using index  tablespace nologging parallel;
    enable validate constraint a_uk using index  tablespace nologging parallel
    ERROR at line 2:
    ORA-03001: unimplemented featureAnd here is the reason for it,
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3001.htm#i2054940
    The clause Parallel is not a right clase for this command.
    Hope this helps
    Aman....
    Edited by: Aman.... on Sep 15, 2008 10:08 PM

  • ENABLE NOVALIDATE CONSTRAINT SYNTAX

    Hi,
    I have a table it's called loadsurvey which having some duplicate records. I would like to implement unique constraint on my table using following command which should not allow any new duplicate record into table and do not wants to validate existing record.
    ALTER TABLE LOADSURVEY ADD ENABLE NOVALIDATE
    CONSTRAINT LOAD_UNIQUE_CONS UNIQUE (METERNO,DAT,TIM);
    SQL COMMAND WINDOWS SHOWS "ORA-01735: INVALID ALTER TABLE OPTION"
    Any help me to come out the problem.
    Regards,
    Saravanan.

    The syntax is
    alter table .... add constraint ... (<column>) enable novalidate;
    Please try to avoid using all uppercase for the subject line.
    You don't need to shout.
    Sybrand Bakker
    Senior Oracle DBA

  • Enable/disable constraint

    Hi!
    Kindly help.
    I'm using 9207 on win server 2k3.
    I have a master table with 100M records, I need to retain only 10M of data. I plan to put the 10M of data to be retained to a temp table, I truncate the master table, then I put the 10M of data from the temp table back to the master table. I will use the parallel and nologging for the index and table and I'll use the skip_unusable_index option. Is it ok to disable the constraints? After the bulk load I'll still be able to enable them correct?
    I'm just worrying that I might not be able to enable the constraints.
    Thanks and Best REgards
    Dexter

    You can disable the constraints before the operation and enable them afterwards. It will not be a problem unless you insert invalid data not matching your constraints.
    You can insert the rows you want into a new table, create indexes and constraints and then rename that table. This way you do not need to reinsert the rows back to the original table from the temp table.

  • Use of DEFAULT tablespace while re-enabling constraint

    Using 8.1.7.2.
    While trying to re-enable a constraint on a table, we hit a ORA-01630. According to the error message, Oracle was trying to use the DEFAULT tablespace (USERS) instead of the TEMPORARY tablespace (TEMP) to do the work.
    Why would Oracle use a tablespace other than TEMP to do work that needed temporary space?
    [email protected]

    What is the 'temporary_tablespace' value when you query user_users as this user?
    Oracle will use the tablespace that is specified as the users TEMPORARY_TABLESPACE for all sorts. If that tablespace does not exists, it uses SYSTEM.

  • ENABLE CONSTRAINT

    Hello All,
    version details :
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    OS :
    SunOS 107 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V890
    Issue :
    I have executed a PLSQL which enables all the disabled constraints in a schema....
    Enabling one constraint is taking 15 hours...this step has not take this much time previously...
    There is no blocking session in V$lock....
    The object is locked by only the current session in v$locked_object...
    I know killing and reexecuting the step might solve the issue but i want to know for sure what is blocking it before killing it......'
    Alert log shows no sign execute for redo switch.......
    the hanging statement is below,
    ALTER TABLE UC_ADDRESS_INFO_TX ENABLE CONSTRAINT FK_ADDR_INFO_ROLE_MAP_CD
    Thanks in advance
    Vijay G

    No it`s not because the same table .. the process is below,
    i take an export of production DB, I do structure import ,then i disable the constraints ,then import few required tables alone for the application then i enable the constraints and then i do an analyze . The whole process takes 5 hours now it`s been fifteen hours.
    I have done individual enable before but why is this taking time... i am going to change this into enable novalidate sort but i wnated to know why it is hanging before i do any changes.......
    Regret for the inconvenience,
    Thanks ,
    Vijay G

  • Error in enabling constraints

    Hi everybody,
    i have 2 databases d01 and d02. i have same no and same objects on both the databases.
    i am exporting data for 1 subscriber from d01 and importing into d02.during importing data to d02 first i disable all constraints of the tables in d02 then importing the data which i have exported from d01 then i am enabling the constraints in d02.
    my problem is that at the time of enabling the data i have encountered some errors as follows.
    Error while Alter Table PORTFOLIO_CRITERIA_CONDITIONS enable novalidate
    constraint XFK3PRTF_CRITERIA_CONDITIONS
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error while Alter Table PORTFOLIO_CRITERIA_CONDITIONS enable novalidate
    constraint XFK3PRTF_CRITERIA_CONDITIONS
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error while Alter Table PORTFOLIO_CRITERIA_CONDITIONS enable novalidate
    constraint XFK3PRTF_CRITERIA_CONDITIONS
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error while Alter Table PORTFOLIO_TYPE2ATTRIBUTE enable novalidate constraint
    XFK12PORTFOLIO_TYPE2ATTRIBUTE
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error while Alter Table PORTFOLIO_TYPE2ATTRIBUTE enable novalidate constraint
    XFK12PORTFOLIO_TYPE2ATTRIBUTE
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error while Alter Table PORTFOLIO_TYPE2ATTRIBUTE enable novalidate constraint
    XFK12PORTFOLIO_TYPE2ATTRIBUTE
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Error while Alter Table PORTFOLIO_TYPE2ATTRIBUTE enable novalidate constraint
    XFK12PORTFOLIO_TYPE2ATTRIBUTE
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    PL/SQL procedure successfully completed.
    can u please tell me what is the error.
    Thanks and regards
    Subrata

    Hallo,
    i guess, that you use dynamic sql here, something like
    declare
    v_sql varchar2(30);
    begin
    v_sql := 'Alter Table PORTFOLIO_CRITERIA_CONDITIONS enable novalidate
    constraint XFK3PRTF_CRITERIA_CONDITIONS';
    execute immediate v_sql;
    Then, you have to increase the length of v_sql. It's too small !
    Regards
    Dmytro

  • Disable ingegrity constraint, then re-enable w/deletion of violations?

    Suppose table2 has a foreign-key relationship with table1. Is there any way to disable that constraint on table2, delete a huge number of records from table1, then re-enable the constraint on table 2... telling Oracle to simply delete any records it finds in table2 that no longer satisfy the constraint?
    Or, alternatively, is there a way to cascade the deletes, but defer the cascaded deletion until all the records that are going to be deleted from the current table have, in fact, been deleted (or at least marked for deletion)?
    For the record, the real situation is nowhere near this trivial... we have a table with ~2 billion records that's partitioned by range on its primary key (from which we want to drop a partition containing ~300 million records) and has dozens of downstream tables with foreign key relationships leading back to it.
    The good news is that this isn't a database that has to be kept online and available at all times for continual transaction processing. The foreign-key relationships are mainly there for the sake of academic correctness and self-documentation, and the records being purged are ancient and haven't even been part of a table scan for months. So we're not the least bit worried about having a row in table27 spend two hours on "death row" between the time its deletion becomes inevitable (by virtue of deleting an upstream record with a foreign-key chain leading back to it) and the time it gets physically deleted. Metaphorically, we just need a fast way to slice a chunk off from table1 with a chainsaw, then efficiently eliminate the witnesses from the downstream tables with a meat cleaver. :-)

    OK, let's suppose table1 is the big table with billions of records, from which I'm going to drop the first partition and ~250 million records contained within it.
    table2 has a foreign key relationship: table2.foo_id = table1.id
    table3 has a foreign key relationship to table2: table3.bar = table2.bar
    both foreign key relationships are deferrable, initially deferred.
    Now, partition #1 gets dropped, taking ~250 million records with it. I'm going to guess that the implicit commit comes at the end of that drop, and that's the point when Oracle officially notices that table2 has a foreign key relationship with table1 and parses through it to cascade the deletion and remove the newly-orphaned rows in table2.
    The big question is, when does table2's constraint come into effect? If Oracle defers the next implicit commit attempt until it finishes purging orphaned records from table2, then proceeds to cascade the deletion and purge orphaned records from table3 before its next attempted implicit commit, that's great.
    HOWEVER, I can see a conflict. DROP is a DDL statement that implicitly commits, but what about any DELETEs that get cascaded from it as an outcome of the drop? Do they fall under the single umbrella of the original DROP, or does something like this happen:
    Partition #1 of table1 gets dropped. implicit commit attempted, but foreign key relationship between table2 and table1 formally noticed. Oracle deletes the first orphaned row from table2, then tries to autocommit it... and notices that table3 has a FK relationship with table2. So it scans through table3, deletes any rows that the deletion of the first row from table2 will orphan, and autocommits that deletion. It then continues looking through table2 for the next orphaned row, deletes it, attempts to autocommit, notices the FK constraint (again) between table3 and table2, scans through table3 (again) looking for rows that will be orphaned by the deletion of the second row from table2, deletes them, and autocommits. Then repeats, over and over again, scanning all of table3 from top to bottom each time it deletes a row from table2.
    I have to admit I'm a little fuzzy about what exactly Oracle is doing ACID-wise behind the scenes, mainly because nothing I normally do really requires moment-to-moment integrity. All I really use transactions for is to conveniently undo the mess and restore the database to its original state if a program crashes for some reason, and try to sidestep them (and their overhead) entirely when I'm doing something manually with Toad or SQL*Plus that's time-consuming and doesn't need to keep the database in any kind of usable state between the time it starts and ends. But in the case of deferred integrity checks, I can see how encouraging Oracle to autocommit could actually make performance worse, by prematurely firing otherwise-deferrable constraints.

  • Enable constraint issue

    i want to enable a constraint but got error no such constraint.
    but when i select it from user_constraints it is available for that table.
    thanks
    SQL> select constraint_name from user_constraints where table_name='tbl_RefundCredit';
    CONSTRAINT_NAME
    SYS_C0016751
    SQL> ALTER TABLE tbl_RefundCredit enable CONSTRAINT SYS_C0016751;
    ALTER TABLE tbl_RefundCredit enable CONSTRAINT SYS_C0016751
    ERROR at line 1:
    ORA-02430: cannot enable constraint (SYS_C0016751) - no such constraint

    kindly put the constraint name inside single quote or double quote
    then try
    dont mind i dont have the s/w .. so you have test it...

  • Error while enabling  forien key constraint

    HI forum,
    I am facing a problem while enabling constraint..pls see the statement below.
    SQL> alter table EVENT enable validate constraint EVENT_4FK;
    alter table EVENT enable validate constraint EVENT_4FK
    ERROR at line 1:
    ORA-02298: cannot validate (APPO.EVENT_4FK) - parent keys not
    found
    EVENT_4FK FK is refering another table and that primary key is existing and it is in enabled ...
    Pls help me to solve this issue..
    Thanks

    alter table event enable validate constraint event_4fk exceptions into exceptions;check the offending row(s) in the exceptions table. (See the documentation for how to create an exceptions table if not present).

  • Primary key constraint disable -enable problem solution

    HI
    recently i have truncate some table. during the truncate process i have face below problem and solve as below way,
    SQL> TRUNCATE TABLE USER_STATE;
    TRUNCATE TABLE USER_STATE
    ERROR at line 1:
    ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    Then i have find the related CONSTRAINT on the table as per truncate table ORA-02266
    SQL> ALTER TABLE USER_STATE_PARAMETER disable CONSTRAINT FK1_USR_SES_ST_PAR;
    Table altered.
    SQL> ALTER TABLE USER_STATE disable CONSTRAINT SYS_C0030849;
    Table altered.
    Then successfully truncate the table as below
    SQL> TRUNCATE TABLE USER_STATE;
    Table truncated.
    then i have enable the CONSTRAINT
    SQL> ALTER TABLE USER_STATE enable CONSTRAINT SYS_C0030849;
    Table altered.
    SQL> ALTER TABLE USER_STATE_PARAMETER enable CONSTRAINT FK1_USR_SES_ST_PAR;
    Table altered.
    ---My Question is, after disable the CONSTRAINT, I did the truncate operation then I enable the CONSTRAINT. Is there anything I need to do which will make me confident to not face any problem during database DML OPERATION? i also found there is no disable CONSTRAINT in my database.

    At first i have successfully TRUNCATE foreign key constraints table
    SQL> TRUNCATE TABLE USER_STATE_PARAMETER;
    Table truncated.
    Then this allow me to disable foreign key constraints as below
    SQL> ALTER TABLE USER_STATE_PARAMETER disable CONSTRAINT FK1_USR_SES_ST_PAR;
    Table altered.
    ---i will update, if i found any problem occur during DML operation
    Thanks for your answer.
    Edited by: Fazlul Kabir Mahfuz on Apr 25, 2012 5:15 AM

Maybe you are looking for

  • Missing files - iTunes using wrong path, how can I change it?

    Hi, I store my itunes library on an external hard drive and I have over 1000 music files which itunes cannot locate even though they are there. Having done a bit of research I've discovered that the path for these files is incorrect. The path in "Get

  • Open in same window, when using simple finder window

    When I am using finder windows in simplified mode (no sidebar) any folder I open, pops up a new window. Is it possible to have folders open in the same window? Thanks

  • How to get data into the mySQL database?

    First some background. I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to

  • Cant open the bin- file ??

    I dont know why but recently my premiere project wont open whilst others will. i have a hunch it may be because my project bin in the project has over 1000 clips in it. i have 4gbs of memory on my imac. has anyone else ever had this message whilst it

  • Serial numbers in sales order/delivery

    Hi All I have a question question on Bar code number generation. Please note that this is NOT a question on bar code printing or issuing output to printer. One of our customers requires serial numbers for all the products that we supply to them and t