My Oracle Support Banner

ORA-01555 From Flashback Query If Using AS OF TIMESTAMP Clause with TO_DATE or TO_TIMESTAMP Function Calls Having BIND Input Argument (Doc ID 3072404.1)

Last updated on FEBRUARY 18, 2025

Applies to:

Oracle Database - Enterprise Edition - Version 19.3.0.0.0 to 19.26.0.0.0 [Release 19]
Information in this document applies to any platform.

Symptoms

A flashback query that uses the AS OF TIMESTAMP clause with the TO_DATE or TO_TIMESTAMP function calls that have a bind input value will fail with error ORA-1555.

Example 1:

Changes

The error was noticed after changing parameter CURSOR_SHARING to FORCE because this results in the literals being changed into system generated bind values.   The triggering condition is the query passed to the optimizer uses the AS OF TIMESTAMP clauses and has a TO_DATE or TO_TIMESTAMP function call that uses a bind variable as a input argument.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.