Oracle 跟踪

SELECT * FROM v$sql  where last_active_time>TO_DATE('2019-7-18 13:17:00','yyyy-mm-dd hh24:mi:ss')
ORDER BY LAST_ACTIVE_TIME DESC;

select
s.sql_text,
b.name,b.position,b.dup_position,
b.value_string,s.LAST_ACTIVE_TIME,s.SQL_FULLTEXT
from v$sql s,v$sql_bind_capture b
where s.last_active_time>TO_DATE('2019-7-18 13:17:00','yyyy-mm-dd hh24:mi:ss') and s.hash_value=b.hash_value
ORDER BY s.LAST_ACTIVE_TIME DESC,b.position;

 

posted @ 2020-08-01 17:38  NULL66  阅读(102)  评论(0编辑  收藏  举报