程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle教程 >> Oracle之sql追蹤

Oracle之sql追蹤

編輯:Oracle教程

Oracle之sql追蹤


select * from v$sqlarea t where t.sql_text like  '%_070%' order by t.LAST_ACTIVE_TIME desc
SELECT * FROM  v$session  st where st.SQL_ID='gabpcbzqjx0vc'

select t.hash_value,t.address from v$sqlarea t where t.sql_id  in ('gabpcbzqjx0vc','7bj040na7ky72')  order by t.LAST_ACTIVE_TIME desc
select b.server,b.username,b.sid,b.machine,b.*  FROM v$session b  WHERE b.SQL_ADDRESS='07000004A0F81A50'

07000004A0F81A50
070000050ACE5DC8

SELECT * FROM  v$active_session_history   t where  t.sql_id  in ('gabpcbzqjx0vc','7bj040na7ky72') 
select object_owner,object_name from dba_hist_sql_plan where sql_id='7bj040na7ky72';
SELECT * FROM v$active_session_history   t where  t.sql_id  in ('gabpcbzqjx0vc','7bj040na7ky72') 
select parsing_schema_id,parsing_schema_name,t.*  from dba_hist_sqlstat t where t.sql_id  in ('gabpcbzqjx0vc','7bj040na7ky72') 
SELECT * FROM DBA_HIST_ACTIVE_SESS_HISTORY t   where t.sql_id  in ('gabpcbzqjx0vc','7bj040na7ky72')

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved