|Oracle® Database Reference
12c Release 1 (12.1)
|PDF · Mobi · ePub|
|Oracle RAC||Multiple instances can have different values.|
Use QUERY_REWRITE_ENABLED to enable or disable query rewriting globally for the database.
Oracle does not use rewrite.
Oracle costs the query with rewrite and without rewrite and chooses the method with the lower cost.
Oracle always uses rewrite and does not evaluate the cost before doing so. Use
force when you know that the query will always benefit from rewrite and when reduction in compile time is important.
To take advantage of query rewrite for a particular materialized view, you must enable query rewrite for that materialized view, and you must enable cost-based optimization.