一.通过系统进程id查找sql语句 SELECT /*+ ORDERED */ sql_text FROM v$sqltext a WHERE (a.hash_value, a.address) IN ( SELECT DECODE (sql_hash_value, , prev_hash_value, sql_hash_value ), DECODE (sql_hash_value, , prev_sql_addr, sql_address) FROM v$session b WHERE b.…