oracle解锁表

select SESSION_ID ,o.*  from v$locked_object l join dba_objects o on (l.OBJECT_ID=o.object_id)
上面的sql中得到所有锁表的sid  然后执行下面这句:
select * from v$session where sid=108
从得到的结果中  serial字段(这里是 2769)然后执行:
alter system kill session '108,2769';

你可能感兴趣的:(sql,session,locked)