With CURSOR_SHARING=FORCE, Oracle replaces literals with system-generated bind variables, so statements that become identical can share one plan even when that plan is inefficient for other bound values. Adaptive Cursor Sharing is independent of the CURSOR_SHARING setting and can create different plans for bind-sensitive equality or range predicates. A histogram on a skewed filtered column lets the optimizer recognize materially different selectivities for different bind values, enabling those different plans.
Community Discussion