**
一、开发环境
plsql
oracle
二、报错
提示记录被另一个用户锁住
三、解决方法
1、找出数据库的sid,serial#,以便于之后杀死:
select t2.username,t2.sid,t2.serial#,t2.logon_time from v l o c k e d o b j e c t t 1 , v locked_object t1,v lockedobjectt1,vsession t2 where t1.session_id=t2.sid order by t2.logon_time;
2、最后杀死session:
alter system kill session ‘11278,123’