Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: PLAN_HASH_VALUE in v$sql ?
select plan_hash_value, count(*)
from v$sql
group by plan_hash_value;
If you have a very large number of statements with the same plan_hash_value, they may be the "same" statement with different literal values - i.e. candidates for bind variables.
Regards
Jonathan Lewis
http://www.jlcomp.demon.co.uk
The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html
March 2004 Hotsos Symposium - The Burden of Proof
Dynamic Sampling - an investigation
March 2004 Charlotte OUG (www.cltoug.org) CBO Tutorial
April 2004 Iceland
June 2004 UK - Optimising Oracle Seminar
: Hi List,
:
: Just read from the documentation that PLAN_HASH_VALUE column (Hash value
: built on the execution plan) in the v$Sql is used to link V$SQL_PLAN view.
:
: But when I see in the database, normal HASH_VALUE column has been used to
: link these two views. Is there anything wrong here ?
:
: If HASH_VALUE column is used to link these views, then what is the use of
: PLAN_HASH_VALUE in v$sql ?
:
:
: Thanks,
: ~Dilip
:
:
:
:
: ----------------------------------------------------------------
: Please see the official ORACLE-L FAQ: http://www.orafaq.com
: ----------------------------------------------------------------
: To unsubscribe send email to: oracle-l-request_at_freelists.org
: put 'unsubscribe' in the subject line.
: --
: Archives are at http://www.freelists.org/archives/oracle-l/
: FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
: -----------------------------------------------------------------
:
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Fri Mar 05 2004 - 01:40:10 CST
![]() |
![]() |