It’s well known that the setting cursor_sharing=similar
has caused issues for many years.
Oracle has always had an issue with implementing
cursor peeking, a method whereby Oracle re-evaluates an
execution plan to consider the value of a reentrant host variable.
To use peeking, BOTH of the following condition must be
true:
- You have reentrant SQL using host variables.
- The referenced column is heavily skewed, such that
value of the host variable would influence the optimizer choice
of execution plan.
This is a very rare case, such as a host variable with a highly
skewed value, such that one host variable would have the “best”
explain plan with a full-table scan while a more unpopular host
variable value would be “best” with an index scan.
Starting with 11g, Oracle implemented a more intelligent
solution to this rare case with the
adaptive cursor sharing method to handle these rare cases,
making cursor_sharing=similar obsolete.
Oracle has decided to deprecate cursor_sharing=similar,
a smart move since the overhead of peeking into a bind variable is
more expensive than the unnecessary invocation of a full-table scan
for a super-popular bind variable value.
The My Oracle Support Community (MOSC) as announced the
depreciation of the cursor_sharing=similar setting, per
MOSC Note 1169017.1 titled
Deprecating the cursor_sharing = ‘SIMILAR’ setting:
“We recommend that customers discontinue
setting cursor_sharing = SIMILAR due to the many problematic
situations customers have experienced using it.
The ability to set this will be removed in
version 12 of the Oracle Database (the settings of EXACT and FORCE
will remain available).
Instead, we recommend the use of Adaptive
Cursor Sharing in 11g.”
|
|
|
|
Guarantee your Success!
Oracle is the
world's most complex, robust and flexible database, considered
impossible to master without a mentor.
That's why all BC
Oracle trainers are working professionals, experts in Oracle who
share their tips and secrets. |
|
| |
|
Burleson is the American Team

Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright ? 1996 - 2012
All rights reserved.
Oracle ?
is the registered trademark of Oracle Corporation.
|
|