My Oracle Support Banner

Parallel Queries in 12c Spending Time on Recursive Query With /* DS_SKEW */ (Doc ID 2104350.1)

Last updated on FEBRUARY 21, 2024

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.


Some parallel queries seems to be stuck at when degree of parallelism is increased beyond 6 in 12c. Parallel 6 works without any problem, query completes in 2.5 seconds, parallel 8 and query doesn't complete after hours. With higher degree internal dynamic sampling query with /* DS_SKEW */ was taking long time to complete.

The query can be found to be as:


Same query was working fine before 12c upgrade.


 Database upgraded from to 12.10.2


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

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