2026-05-01 07:25:46
This commit is contained in:
+7
-3
@@ -12,23 +12,26 @@ col pios_per_exec FOR 9999999999
|
||||
|
||||
prompt Show SQL text, child cursors and execution stats for SQLID &1 child &2
|
||||
|
||||
select
|
||||
select
|
||||
inst_id,
|
||||
hash_value,
|
||||
plan_hash_value,
|
||||
child_number sql_child_number,
|
||||
sql_text sql_sql_text
|
||||
from
|
||||
v$sql
|
||||
gv$sql
|
||||
where
|
||||
sql_id = ('&1')
|
||||
and child_number like '&2'
|
||||
order by
|
||||
inst_id,
|
||||
sql_id,
|
||||
hash_value,
|
||||
child_number
|
||||
/
|
||||
|
||||
select
|
||||
inst_id,
|
||||
child_number sql_child_number,
|
||||
plan_hash_value plan_hash,
|
||||
parse_calls parses,
|
||||
@@ -64,11 +67,12 @@ select
|
||||
, address parent_handle
|
||||
, child_address object_handle
|
||||
from
|
||||
v$sql
|
||||
gv$sql
|
||||
where
|
||||
sql_id = ('&1')
|
||||
and child_number like '&2'
|
||||
order by
|
||||
inst_id,
|
||||
sql_id,
|
||||
hash_value,
|
||||
child_number
|
||||
|
||||
Reference in New Issue
Block a user