Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to insert data using index unusable/rebuild
I am trying to rewrite a generic data load procedure for large tables
to use the INDEX REBUILD statements instead of dropping and recreating
the indexes. Trying to get rid of hard-coding the CREATE INDEX
statements for less maintenance.
We do have some PK and UNIQUE indexes on the tables that need to be loaded. I figured out how to get around the PK indexes by disabling the PK constraints prior to doing the INDEX REBUILD, but don't see how to get around or disable the UNQUE INDEX being UNUSABLE when I need to insert the data. There is no contraint on the table, just the unique index.
Here is my basic processing for loading the tables.
Any Help greatly appreciated. Received on Thu Jul 10 2003 - 15:06:16 CDT
![]() |
![]() |