2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

19
mhouri/phv2.sql Normal file
View File

@@ -0,0 +1,19 @@
/* -----------------------------------------------------------------------------|
|Author : Mohamed Houri |
|Date : 03/07/2017 |
|Scope : gives plan_hash_value and phv2 that includes the predicate part |
| |
--------------------------------------------------------------------------------|*/
SELECT
p.sql_id
,p.plan_hash_value
,p.child_number
,t.phv2
FROM v$sql_plan p
,xmltable('for $i in /other_xml/info
where $i/@type eq "plan_hash_2"
return $i'
passing xmltype(p.other_xml)
columns phv2 number path '/') t
WHERE p.sql_id = '&1'
and p.other_xml is not null;