How to fix the Oracle error QSM-01091: cost based optimizer found query rewrite is more expensive?

In this post, you’ll learn more about the Oracle ErrorQSM-01091: cost based optimizer found query rewrite is more expensive with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

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

Reason for the Error QSM-01091: cost based optimizer found query rewrite is more expensive

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.

How to fix the Error QSM-01091: cost based optimizer found query rewrite is more expensive ?

You can fix this error in Oracle by following the below steps

None