Solved

cbo optimer

Posted on 2013-01-07
5
226 Views
Last Modified: 2013-01-10
In a simple way what is the meaning of cost base optimizer..
0
Comment
Question by:walkerdba
5 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38753243
It is code that uses statistics to choose the best execution plan for whatever the task is.

The old way was rule based.  It had strict rules to follow.  For example, if an index exists, use it no matter what.

The problem here is at times using an index will actually slow down the execution.

See if this helps fill in the gaps:
http://www.dba-oracle.com/art_otn_cbo.htm
0
 
LVL 23

Expert Comment

by:David
ID: 38753368
Hi walker, for every statement, the Oracle system will attempt to optimize the execution cost.  As slight mentioned, statistics provide the metadata used to evaluate the size and distribution of data.

Is that simple enough? <grins>
0
 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 38753711
it's all in the words
optimize the work based on the cost
the work is the exection of a query following a certain plan
every step in the plan has a certain cost
the best plan usually has the lowest cost

your next question could be what is a hard parse ...
hard parse is working out that execution plan
0
 
LVL 8

Expert Comment

by:ReliableDBA
ID: 38756172
Let me see if i can provide any inputs here.

In a simple way what is the meaning of cost base optimizer..
  => when we go to a market to buy something, we choose a product of low cost(ofcourse, not compromising on the quality).
  => Similarly, Oracle calculates the cost(for each unit of operation viz. performing a full table scan/index unique scan/range scan etc., )and gives us each step in the execution plan and the the cost associated with it.

Just my 2 cents.
0
 

Author Closing Comment

by:walkerdba
ID: 38765207
yes
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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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 video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

708 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

16 Experts available now in Live!

Get 1:1 Help Now