DBA SGA SQL Execution Plan History

Description

Categories
Enginatics
Repository
GitHub
Execution plan history for a particular SQL id from the SGA

SQL 48 lines

Parameters 9

ParameterTypeList of values SQL
SQL IdChar
gsp.sql_id=:sql_id
Plan Hash ValueNumber
gsp.plan_hash_value=:plan_hash_value
SQL Text containsChar
gsp.sql_id=(select gsa.sql_id from gv$sqlarea gsa where lower(gsa.sql_fulltext) like lower('%'||:sql_text||'%') and (:module is null or lower(gsa.module) like '%'||lower(:module)||'%') order by gsa.last_active_time desc fetch first 1 rows only)
Module containsLOV
gsp.sql_id=(select gsa.sql_id from gv$sqlarea gsa where lower(gsa.module) like '%'||lower(:module)||'%' and (:sql_text is null or lower(gsa.sql_fulltext) like lower('%'||:sql_text||'%')) order by gsa.last_active_time desc fetch first 1 rows only)
Using IndexLOV
(gsp.inst_id,gsp.sql_id,gsp.plan_hash_value) in (select gsp0.inst_id, gsp0.sql_id, gsp0.plan_hash_value from gv$sql_plan gsp0 where gsp0.object_name=:index_name and gsp0.operation='INDEX')
Object NameLOV
gsp.object_name=:object_name
OptionsLOV
gsp.options=:options
Objects larger than x GBNumber
ds.object_size/1000>:min_object_size_gb
Show Object SizeLOV
Y