Oracle Error QSM-02091: mv references a non-repeatable or session-sensitive expression

Oracle Error Message

QSM-02091: mv references a non-repeatable or session-sensitive expression

Reason for the Error

The capability in question is not supported when the materialized view uses an expression that may not return the same value each time it is invoked against the same set of rows or that may return different values depending on session parameters.

Solution

Re-phrase the query to avoid the use of such expressions.