1Z0-084 practice question 7 of 15
Which two statements are true about cursor sharing?
Full set: 55 questionsSetting CURSORSHARING to FORCE causes Oracle to replace literals with bind variables, leading to a single execution plan for SQL statements that differ only by those literals. If data is skewed, this single plan can be suboptimal for many literal values. Adaptive Cursor Sharing (ACS) is a feature that allows a single statement to use multiple plans based on bind variable selectivity. For the optimizer to recognize that different bind values have different selectivities, it relies on statistics, particularly histograms for columns with skewed data distributions.
B. Adaptive Cursor Sharing is a mechanism to improve plan selection but does not guarantee that a suboptimal plan will never be used.
C. optimizercapturesqlplanbaselines is a parameter related to SQL Plan Management (SPM) for capturing plans, not for loading adaptive plans into the cursor cache.
D. Adaptive Cursor Sharing is specifically designed to work when CURSORSHARING is set to EXACT to solve the bind variable peeking problem. It does not prevent it.
1. Oracle Database Reference 19c, "CURSORSHARING". The documentation notes for FORCE: "The plan may be suboptimal for some literals."
2. Oracle Database SQL Tuning Guide 19c, Chapter 14 Using Adaptive SQL Plans, "About Adaptive Cursor Sharing". The guide explains that the optimizer uses bind peeking and statistics to determine if a cursor should be bind-aware, which is the basis for ACS. The effectiveness of this feature depends on accurate statistics, including histograms.
3. Oracle Database SQL Tuning Guide 19c, Chapter 14 Using Adaptive SQL Plans, "Use Cases for Adaptive Cursor Sharing". The examples show ACS working with bind variables, which implies CURSORSHARING is EXACT.
Keep practicing
Take the free 1Z0-084 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-084 practice questions
- Question 1What are the least elevated values of statistics_level and C0NTR0LJ4ANAGEMENT_PACK_ACCESS…
- Question 2You execute the following: EXECUTE DBMS_AuTO_TASK_ADMIN.DISABLE; Which advisor remains en…
- Question 3You must produce a consolidated formatted trace file by combining all trace files generat…
- Question 4Which procedure gathers statistics that are always used in the generation of any executio…
- Question 5Which two statements are true about the use and monitoring of Buffer Cache Hit ratios and…
- Question 6Which two Oracle Database features use database services?
