ORA-00932 during outline creation with bind variables and date column
I am trying to create an outline as followed (query modified for clarity):
CREATE OUTLINE OTLN_02
ON
SELECT *
FROM XXXX
WHERE A_DATE_COLUMN < TRUNC (:B2)
... and I am receiving "ORA-00932: inconsistent datatypes: expected DATE got NUMBER".
The actual query is a part of application code and I can't change it. Need to optimize the same.
Tried to create a stored outline by altering CREATE_STORED_OUTLINES to TRUE at system level but no luck.
using Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production