My Oracle Support Banner

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

Last updated on SEPTEMBER 06, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A 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 <schema_name>.<table_name> 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 | <table_name> | | | | | | | | | |
| 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| <table_name> | 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.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.