我用select pid from v$process where spid=<进程号>查出来的pid用select program,machine,username from v$session where sid=<上条语句出来的pid>却找不到任何数据用select sid,program,machine,username from v$session where process like '%<进程号>%'查不到任何数据
这两个表有个关联字段,好像serial# select b.sid from v$process a , v$session b where a.serial#=b.serial# and a.pid=你的进程号也可以用v$session.paddr和v$process.addr关联
select b.sid
from v$process a , v$session b
where a.serial#=b.serial#
and a.pid=你的进程号也可以用v$session.paddr和v$process.addr关联