SELECT s.username,l.OBJECT_ID,l.SESSION_ID,s.SERIAL#,
l.ORACLE_USERNAME,l.OS_USER_NAME,l.PROCESS,b.OBJECT_NAME,p.spid
FROM V$LOCKED_OBJECT l,V$SESSION S,dba_objects b,v$process p
WHERE l.SESSION_ID=S.SID and b.object_id=l.object_id and S.PADDR=p.ADDR and b.object_name='AAA'
1.alter system kill session 'sid,serial#';
2.直接上服务器杀进程 kill -9 spid
存储过程死锁查以下语句
select * from dba_ddl_locks l,V$SESSION S where l.SESSION_ID=S.SID