Solved

How to change an existing database from rule based optimizer to cost based optimizer

Posted on 2010-11-23
5
294 Views
Last Modified: 2012-10-06
Hi can anyone tell me how we can change existing Database which is running on Rule based optimizer converting it to cost based optimizer.
0
Comment
Question by:iabhinay_dba
5 Comments
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 166 total points
Comment Utility
The optimizer_mode init parameter.  On mobile so I can't provide an exact link but it's in the online docs.
0
 
LVL 73

Accepted Solution

by:
sdstuber earned 168 total points
Comment Utility
http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams167.htm#i1131532

It's not documented after 9i but you can also set the value to "CHOOSE"
0
 
LVL 5

Assisted Solution

by:anand_20703
anand_20703 earned 166 total points
Comment Utility
Above answer is right and CHOOSE parameter is recommended because optimizer will select between RULE and COST , accordingly generates the explain plans. RULE based optimizer is old and was recommended only in Oracle ERP applications older than 11i.
.
To reap the benefits(performance) of  COST/CHOOSE optimizer enabled Databases, gathering statistics periodically is very important.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now