日期:2014-05-16  浏览次数:20427 次

oracle 查看用户进程

SELECT p.spid, a.serial#, c.object_name, b.session_id, b.oracle_username,

? ? ? ?b.os_user_name

? FROM v$process p, v$session a, v$locked_object b, all_objects c

?WHERE p.addr = a.paddr AND a.process = b.process

? ? ? ?AND c.object_id = b.object_id

?

?

SELECT sid, serial#, username, osuser FROM v$session ?where osuser = 'tangpj'

?

?alter system kill session 'sid,serial#';