代码拉取完成,页面将自动刷新
set verify off
col first_load_time format a20
col last_load_time format a20
col last_active_time format a20
col prog format a22
col sql_text format a41 trunc
col sid format 9999
col child_number format 99999 heading CHILD
col ocategory format a10
col avg_etime format 9,999,999.99
col avg_pio format 999,999,999,999,999
col avg_lio format 999,999,999,999,999
col etime format 9,999,999.99
break on sql_text
select sql_id, child_number, plan_hash_value plan_hash, FIRST_LOAD_TIME, last_load_time, LAST_ACTIVE_TIME, executions execs,
(elapsed_time/1000000)/decode(nvl(executions,0),0,1,executions) avg_etime,
disk_reads/decode(nvl(executions,0),0,1,executions) avg_pio,
buffer_gets/decode(nvl(executions,0),0,1,executions) avg_lio,
sql_text
from v$sql s
where upper(sql_text) like upper(nvl('&sql_text',sql_text))
and sql_text not like '%from v$sql where sql_text like nvl(%'
and sql_id like nvl('&sql_id',sql_id)
order by 1, 2, 3
/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。