Message Oracle QSM-01001 - query rewrite not enabled

ERRORquery rewrite not enabled
CAUSEWhen query rewrite is disabled, no query rewrite will take place.
ACTIONEnable query rewrite with ALTER SESSION SET QUERY_REWRITE ENABLE command.