Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.4K Intelligent Advisor
- 75 Insurance
- 537.7K On-Premises Infrastructure
- 138.7K Analytics Software
- 38.6K Application Development Software
- 6.1K Cloud Platform
- 109.6K Database Software
- 17.6K Enterprise Manager
- 8.8K Hardware
- 71.3K Infrastructure Software
- 105.4K Integration
- 41.6K Security Software
Child cursors for same sql id not using base line on Exadata

Sasa Petkovic
Member Posts: 1 Green Ribbon
Hi,
I have some sql_id and for the same sql id exist two different cursors .
One cursor is using base line with good execution plan but another cursor not.
Is there any trick i could force that all cursors are using same execution plan?
I have to mention that there are no any bind variables used for the query, except that one query (child cursor) is running under context of db job.
Answers
-
Hi,
we would need to analyze your specific case, but you have the option of fixing the plan with DBMS_SPM.alter_sql_plan_baseline.
attribute_name => 'fixed'
attribute_value => 'YES'