Topic: SQL*Plus and PL/SQL >> USER_TAB_HISTOGRAMS use for analysis...
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: USER_TAB_HISTOGRAMS use for analysis... |
| Yogesh |
Posted: Dec 21, 2005 10:15:48 PM |
Total Post: 10
Joined: Dec, 2005
|
How the USER_TAB_HISTOGRAMS improve the analysis used by the cost-based optimizer?
Regards. |
|
|
Vigyan |
| Posted: Dec 22, 2005 10:07:30 PM | |
|
Total Post: 387
Joined: May, 2001
|
You can query this view to see the Histograms. Be careful when using histograms. Column histograms should be created only when you have highly-skewed values in a column.
Histograms affect performance and should only be used when they are required for a faster CBO execution plan. They incur additional overhead during the parsing phase of an SQL query. Histograms can be used effectively only when
- A table column is referenced in one or more queries
- A column's values cause the CBO to make an incorrect guess
- Significant skewing exists in the distribution of a column's data values
Hope it helps.
Vigyan
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 387 |
| Vinoth Kumar | 379 |
| Gopu Gopi | 350 |
| Gitesh Trivedi | 322 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|