DELETE Query Running For Long Time. (Doc ID 2097775.1)

Last updated on MARCH 30, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 and later
Information in this document applies to any platform.

Symptoms

Below query is running for 18 to 24 hrs in database.

DELETE /*+PARAllel(a,4)*/ FROM PPCMGR.PFP_ACCT_SNP_FCT a where time_key >=20151223;

.Table is portioned table
.query explain plan is given below.

PLAN_TABLE_OUTPUT
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value: 205266384

---------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
---------------------------------------------------------------------------------------------------------------------------------------
| 0 | DELETE STATEMENT | | 1441K| 34M| 38745 (1)| 00:09:03 | | | | | |
| 1 | DELETE | PFP_ACCT_SNP_FCT | | | | | | | | | |
| 2 | PX COORDINATOR | | | | | | | | | | |
| 3 | PX SEND QC (RANDOM)| :TQ10000 | 1441K| 34M| 38745 (1)| 00:09:03 | | | Q1,00 | P->S | QC (RAND) |
| 4 | PX BLOCK ITERATOR | | 1441K| 34M| 38745 (1)| 00:09:03 | 1 | 4 | Q1,00 | PCWC | |
|* 5 | TABLE ACCESS FULL| PFP_ACCT_SNP_FCT | 1441K| 34M| 38745 (1)| 00:09:03 | 57 | 64 | Q1,00 | PCWP | |
---------------------------------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

5 - filter("TIME_KEY">=20151222)

17 rows selected.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms