PLSQL 执行下面语句
SELECT s.username,
decode(l.type, 'TM', 'TABLE LOCK', 'TX', 'ROW LOCK', NULL) LOCK_LEVEL,
o.owner,
o.object_name,
o.object_type,
s.sid,
s.serial#,
s.terminal,
s.machine,
s.program,
s.osuser
FROM v$session s, v$lock l, dba_objects o
WHERE l.sid = s.sid
AND l.id1 = o.object_id(+)
AND s.username is NOT NULL
找出来自己被锁的表名
object_name字段中,找到自己的机器
找到SID,SERIAL#字段放入下面语句运行即可解锁
alter system kill session 'SID,SERIAL#';
出现删错表数据的情况使用下面语句回滚到特定时间
select * from sys_info as of timestamp to_Date('2014-04-08 15:28:00', 'yyyy-mm-dd hh24:mi:ss')