当前位置: 首页 > 工具软件 > osPID > 使用案例 >

Scripts:根据sid,ospid来查询进程信息的脚本os_pid.sql

阎啸
2023-12-01
set lines 132
SELECT s.username, s.user#, s.sid, s.serial#, s.prev_hash_value, p.spid os_pid
 FROM V$SESSION S, v$process p
 WHERE sid = nvl('&sid',sid)
and p.spid = nvl('&os_pid',p.spid)
and p.addr = s.paddr
 and s.username is not null
/
 类似资料: