Query Does Not Use Bind Peeking If Predicate Is (Sysdate-N).

(Doc ID 457037.1)

Last updated on JUNE 20, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.4 to 10.2.0.3 [Release 8.1.7 to 10.2]
Information in this document applies to any platform.

Symptoms

Query Does Not Use Bind Peeking If Predicate Is (Sysdate-N). if query predicate (finish_time>sysdate-1) matches only few rows in table it should use "index range scan" and for predicate (finish_time>sysdate-100) which matches 99% of rows it should use "full table scan", but in both the cases its going for "index range scan"

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms