我所出现的错误是表被锁了,不能删除表
数据库:Oracle
我要修改表报错
alter table T_SALARY_OWETAXESENTERPRISE modify OWING_TAXES_BALANCE NUMBER(20,5);
alter table T_SALARY_OWETAXESENTERPRISE modify NEW_ADD_OWING NUMBER(20,5);
执行下面sql,查询会话id 和被锁的表
select l.session_id,o.owner,o.object_name
from v$locked_object l,dba_objects o
where l.object_id=o.object_id;
找出会话序列号
select s.username,s.sid,s.serial#,s.logon_time
from v$locked_object l,v$session s
where l.session_id=s.sid
order by s.logon_time;
杀掉会话
alter system kill session '11,2559'
参考:ORA-00054 资源正忙, 但指定以 NOWAIT 方式获取资源, 或者超时失效_ora00054 资源正忙要求指定nowait_1silence的博客-CSDN博客