日期:2014-05-16 浏览次数:20410 次
select a.owner, a.object_name, b.xidusn, b.xidslot, b.xidsqn, b.session_id, b.oracle_username, b.os_user_name, b.process, b.locked_mode, c.machine, c.status, c.server, c.sid, c.serial#, c.program from all_objects a, v$locked_object b, sys.gv_$session c where (a.object_id = b.object_id) and (b.process = c.process) order by 1, 2
select p.spid,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 sid='第一步查询出来的session_id';
alter system kill session 'sid,serial#';
select pro.spid from v$session ses,v$process pro where ses.sid=XX and ses.paddr=pro.addr;
1.exit 2.ps -ef|grep spid