通过进程找sql
select p.spid,s.machine,s.username,s.sid,s.serial#,s.status from v$session s,v$process p where s.sid in (select sid from v$session where username is not null) and s.paddr=p.addr;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28916011/viewspace-2845974/ ,如需转载,请注明出处,否则将追究法律责任。