SQL Performance (MOSC)

MOSC Banner

ORA-00932 during outline creation with bind variables and date column

edited Apr 12, 2019 5:01AM in SQL Performance (MOSC) 1 commentAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center