-找到锁住表的sid和serial#
select sid,serial#
from v$session
where sid=
(
select sid
from v$lock
where id1=
(
select object_id
from user_objects
where object_name=upper('MYPAQ_TEMP')
)
);
--删除这个session
alter system kill session 'sid,serial#';
commit
select sid,serial#
from v$session
where sid=
(
select sid
from v$lock
where id1=
(
select object_id
from user_objects
where object_name=upper('MYPAQ_TEMP')
)
);
--删除这个session
alter system kill session 'sid,serial#';
commit