![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I must say that I'm not quite clear about the conceptual differences among the two. I know that SQL Profiles put in a lot of OPT_ESTIMATE hints and adjust cardinality estimates. I know that baselines are actually plans but their usage seems extremely similar. Can anyone shed some light on the conceptual differences? --http://mgogala.byethost5.com |
#3
| |||
| |||
|
|
I must say that I'm not quite clear about the conceptual differences among the two. I know that SQL Profiles put in a lot of OPT_ESTIMATE hints and adjust cardinality estimates. I know that baselines are actually plans but their usage seems extremely similar. Can anyone shed some light on the conceptual differences? |
#4
| |||
| |||
|
|
I think a baseline contains the data on which profile creation is based: |
#5
| |||
| |||
|
|
On Mon, 10 Oct 2011 19:09:08 +0200, Robert Klemme wrote: I think a baseline contains the data on which profile creation is based: Baselines are plans. Profiles contain hints and therefore are used to influence plans. My problem is what happens when I have both. Will profiles influence the plans determined by baselines? What is the exact mechanism? Oracle has several mechanisms covering roughly the same area: outlines, profiles and baselines. I am trying to develop test cases to see what happens in the different situations, but it's slow. What I'm asking for is if somebody else has done that research. |
#6
| |||
| |||
|
|
Mladen Gogala <gogala.mladen (AT) gmail (DOT) com> wrote in news an.2011.10.10.18.35.46 (AT) gmail (DOT) com:On Mon, 10 Oct 2011 19:09:08 +0200, Robert Klemme wrote: I think a baseline contains the data on which profile creation is based: Baselines are plans. Profiles contain hints and therefore are used to influence plans. My problem is what happens when I have both. Will profiles influence the plans determined by baselines? What is the exact mechanism? Oracle has several mechanisms covering roughly the same area: outlines, profiles and baselines. I am trying to develop test cases to see what happens in the different situations, but it's slow. What I'm asking for is if somebody else has done that research. Mladen, Oracle's Optimizer Development team has written a very interesting 4-part serie of articles on their blog on the subject of SQL Plan Management: ... Parts 3 and 4 have examples of Baselines and Profiles working together for optimal results. As you also mentioned Outlines: They fairly recently wrote a blog article on why you should migrate them (especially if you're on 11g) to Baselines and how to do that: ===== http://blogs.oracle.com/optimizer/en...migrate_stored ===== Note: if you don't mind reading articles from bottom to top, you can use following link to get all articles mentioned above in one go: ===== http://blogs.oracle.com/optimizer/ta...lan_management ===== HTH Cheers! |
#7
| |||
| |||
|
|
Also have a look at these 2 articles on Kerry Osborne's blog, including an interesting discussion between Kerry and Jonathan: http://kerryosborne.oracle-guy.com/2...acle-using-my- outline-profile-baseline/ http://kerryosborne.oracle-guy.com/2...-sql-profiles/ |
#8
| |||
| |||
|
|
I must say that I'm not quite clear about the conceptual differences among the two. I know that SQL Profiles put in a lot of OPT_ESTIMATE hints and adjust cardinality estimates. I know that baselines are actually plans but their usage seems extremely similar. Can anyone shed some light on the conceptual differences? --http://mgogala.byethost5.com |
#9
| |||
| |||
|
|
I must say that I'm not quite clear about the conceptual differences among the two. I know that SQL Profiles put in a lot of OPT_ESTIMATE hints and adjust cardinality estimates. I know that baselines are actually plans but their usage seems extremely similar. Can anyone shed some light on the conceptual differences? --http://mgogala.byethost5.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |