Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

When is cost based optimization triggered? (for DBA)

5 like 0 dislike
Helloo
When is cost based optimization triggered? (for DBA)
please reply me. i am waiting for your reply.
Thank you.
asked 1 year ago by sr_webmaster (21,000 points)

1 Answer

2 like 0 dislike
 
Best answer
It's important to have statistics on all tables for the CBO (Cost Based Optimizer) to work correctly. If one table involved in a statement does not have statistics, Oracle has to revert to rule-based optimization for that statement. So you really want for all tables to have statistics right away; it won't help much to just have the larger tables analyzed.
Generally, the CBO can change the execution plan when you:
1.    Change statistics of objects by doing an ANALYZE;
2.    Change some initialization parameters (for example: hash_join_enabled, sort_area_size, db_file_multiblock_read_count).
answered 1 year ago by eagles11 (179,830 points)

Related questions

9 like 0 dislike
1 answer
8 like 0 dislike
1 answer
4 like 0 dislike
1 answer
asked 1 year ago by Edward (33,730 points)
4 like 0 dislike
0 answers
7 like 0 dislike
0 answers