Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: importing large tables
Most likely you have one or more FOREIGN KEY constraints which reference that PRIMARY KEY. Find out the definition(s) of those FK constraints and write them into a SQL script (you will need it later on). Run the following SQL statement:
ALTER TABLE <table_name> DROP PRIMARY KEY CASCADE;
This drops the PK constraint on your table, drops the unique index ORACLE creates to enforce the PK constraint and drops all the FK constraints based on that PK. After the load, re-create the PK constraint and the FK constraints (using the SQL script that you created previously).
Hope this helps.
Michael Serbanescu