Oracle Error QSM-01091: cost based optimizer found query rewrite is more expensive

Oracle Error Message

QSM-01091: cost based optimizer found query rewrite is more expensive

Reason for the Error

When cost based optimizer is ON, cost of the rewritten cursor is compared to the cursor generated without query rewrite, and the cheaper one is chosen for execution.

Solution

None