SQL Tuning Advisor Running DS_SVC Internal Recursive SQL Statements
(Doc ID 2686026.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
- DS_SVC (dynamic sampling) internal queries are running as part of SQL Tuning Advisor(Auto/Manual) with default dynamic sampling level (OPTIMIZER_DYNAMIC_SAMPLING=2)
- Following parameters are set but still the DS_SVC queries run from SQL tuning advisor.
- _optimizer_dsdir_usage_control=0
- _sql_plan_directive_mgmt_control=0
- optimizer_dynamic_sampling=0
- optimizer_adaptive_statistics=FALSE
- "_fix_control"='14191778:OFF'
- "_fix_control"='20636003:OFF'
- Dropped all the directives from dba_sql_plan_directives.
Changes
Upgrade to 12.2 or higher.
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 |