前段时间做一笔批量付款时候,一直处于已收集付款状态,从锁表、取消的角度去看,都正常。
于是按照图片的顺序操作,解决。
–锁表
select dob.object_name table_name,
lo.locked_mode,
lo.session_id,
vss.serial#,
vps.spid,
vss.action action,
vss.osuser osuser,
vss.process ap_pid,
vps.spid db_pid,
'alter system kill session ' || '''' || lo.session_id || ',' ||
vss.serial# || ''';' kill_command
from v$locked_object lo, dba_objects dob, v$session vss, v$process vps
where lo.object_id = dob.object_id
and lo.session_id = vss.sid
and vss.paddr = vps.addr
order by 2, 3, dob.object_name;