Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> LONG-running DELETE -- please help
The following Oracle DELETE statement is EXTREMENTLY long-running:
delete from tmmAdministratorInitiative
where InitiativeID = 1
and employeeid = '00701280K'
Here's the DDL for the table:
CREATE TABLE TMMADMINISTRATORINITIATIVE (
EMPLOYEEID VARCHAR2(20) NOT NULL,CONSTRAINT U_ADMIN_INITIATIVE UNIQUE ( EMPLOYEEID, INITIATIVEID )
,INITIATIVEID NUMBER(10) NOT NULL
,CRTDT DATE
,CRTUSR VARCHAR2(50)
,MODDT DATE
,MODUSR VARCHAR2(50)
There's no primary key because this is a"linkage" table in a many-to-many relationship.
There are just two rows in the table!
Any help understanding why the DELETE statement takes so long would be greatly appreciated! Received on Sat Nov 16 2002 - 15:21:19 CST
![]() |
![]() |