Oracle的show processlist
代码如下:
set linesize 400;set pagesize 400;
col sql_text format a100;
col machine format a25;
col username format a15;
SELECT a.username,a.machine,b.sql_id,b.sql_TEXT
FROM v$session a,v$sqlarea b
WHERE a.sql_address = b.address
AND a.sql_HASH_VALUE = b.HASH_VALUE;