waarp

4.批量解锁
declare cursor mycur is
select b.sid,b.serial# from v$locked_object a,v$session b
where a.session_id = b.sid group by b.sid,b.serial#;

 

begin
for cur in mycur
loop
execute immediate ( \'alter system kill session \'\'\'||cur.sid || \',\'|| cur.SERIAL# ||\'\'\' \');
end loop;
end;

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-19
  • 2021-11-29
  • 2021-12-05
  • 2021-11-29
  • 2022-12-23
  • 2021-04-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2023-03-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案