--殺掉進程 sid,serial# alter system kill SESSION '64,177'; --查看被鎖的表 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_obj... ...
--殺掉進程 sid,serial# alter system kill SESSION '64,177'; --查看被鎖的表 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id; --查看會話 SELECT sid, serial#, username, osuser FROM v$session; --查看死鎖的進程 select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time; --相關數據字典 SELECT * FROM v$lock; SELECT * FROM v$sqlarea; SELECT * FROM v$session; SELECT * FROM v$process ; SELECT * FROM v$locked_object; SELECT * FROM all_objects; SELECT * FROM v$session_wait; --查出鎖定表的相關信息 SELECT s.sid, s.serial#, s.username, s.schemaname, s.osuser, s.process, s.machine,s.terminal, s.logon_time, l.type FROM v$session s, v$lock l WHERE s.sid = l.sid AND s.username IS NOT NULL ORDER BY sid;