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

36
mhouri/FindVW_all.sql Normal file
View File

@@ -0,0 +1,36 @@
/* ------------------------------------------------------------------------------------|
|Author : Mohamed Houri |
|Date : 03/07/2017 |
|Scope : gives all sql_id in memory and from AWR history using all VW_ transformation |
| |
---------------------------------------------------------------------------------------|*/
--
col sql_id format a15
col plan_hash_value format 999999999999
col object_name format a25
break on report
select
*
from
( select
sql_id
,plan_hash_value
,object_name
,cardinality
from
gv$sql_plan
where
object_name like '%VW%'
union
select
sql_id
,plan_hash_value
,object_name
,cardinality
from
dba_hist_sql_plan
where
object_name like '%VW%'
)
order by sql_id;