1、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;
2、SELECT sid, serial#, username, osuser FROM v$session where osuser = 'chmap'; 解释:osuser=’chmap’ chmap是你当前的数据库用户。 3、alter system kill session '1359,31245'; --sid, serial# alter system kill session '1464,4898'; --sid, serial#新闻热点
疑难解答